* bug#15215: 24.3; quit abnormally when find-file
@ 2013-08-30 6:06 forward
2013-08-30 7:04 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: forward @ 2013-08-30 6:06 UTC (permalink / raw)
To: 15215
[-- Attachment #1: Type: text/plain, Size: 687 bytes --]
In definition of function `find-file-noselect' in file "files.el"
from line 1807 to 1816
;; Certain files should be reverted automatically
;; if they have changed on disk and not in the buffer.
((and (not (buffer-modified-p buf))
(let ((tail revert-without-query)
(found nil))
(while tail
(if (string-match (car tail) filename) ===>
(setq found t))
(setq tail (cdr tail)))
found))
==> when tail is `t' since `revert-without-query' is `t' , it signals a
"Wrong type argument: listp, t". Should it be checked? Thanks.
[-- Attachment #2: Type: text/html, Size: 893 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#15215: 24.3; quit abnormally when find-file
2013-08-30 6:06 bug#15215: 24.3; quit abnormally when find-file forward
@ 2013-08-30 7:04 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-08-30 7:04 UTC (permalink / raw)
To: forward; +Cc: 15215
forward wrote:
> In definition of function `find-file-noselect' in file "files.el"
> from line 1807 to 1816
>
> ;; Certain files should be reverted automatically
> ;; if they have changed on disk and not in the buffer.
> ((and (not (buffer-modified-p buf))
> (let ((tail revert-without-query)
> (found nil))
> (while tail
> (if (string-match (car tail) filename) ===>
> (setq found t))
> (setq tail (cdr tail)))
> found))
>
> ==> when tail is `t' since `revert-without-query' is `t' , it signals a
> "Wrong type argument: listp, t".
`t' is not a documented value for revert-without-query.
It is supposed to be a list of regexps.
Set it to '(".") if you really want to revert everything without asking.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-30 7:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30 6:06 bug#15215: 24.3; quit abnormally when find-file forward
2013-08-30 7:04 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).