bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash calling md5 for a list of buffers


From: Dmitry Antipov
Subject: Re: Crash calling md5 for a list of buffers
Date: Wed, 21 Jan 2004 11:56:49 +0300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Kevin Rodgers wrote:

I cannot reproduce that on GNU Emacs 21.3.1 (i386-pc-solaris2.7, X
toolkit) of 2003-04-24 on briard.  If I go to the emacs-21.3/src
directory, start Emacs as `./emacs-21.3.1 -q --no-site-file *.c',
then type `M-: (mapcar 'md5 (buffer-list)) RET', I get the following
*Backtrace*:

Debugger entered--Lisp error: (args-out-of-range 1 459097)
  find-coding-systems-region-internal(1 459097)
 find-coding-systems-region(1 459097)
 select-safe-coding-system(1 459097 undecided-unix)
 md5(#<buffer xdisp.c>)

Apparently that's because the xdisp.c buffer only has 459096 characters.
Whether I visit it with find-file or find-file-literally, `M->' followed
by `C-x =' reports "point=459097 of 459096 (100%) column 0".

Try to eval (mapcar '(lambda (b) (md5 b nil nil 'raw-text)) (buffer-list)).
(mapcar 'md5 (buffer-list)) doesn't work for all buffers (really I don't understand why - probably the coding system determined automagically is
not always valid for Fmd5).

Dmitry






reply via email to

[Prev in Thread] Current Thread [Next in Thread]