GNU bug report logs -
#14710
add-file-local-variable vs. unquoted string
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Mon, 24 Jun 2013 21:05:03 UTC
Severity: wishlist
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 14710 <at> debbugs.gnu.org (full text, mbox):
>> displayed, you won't see it anyway because it will be instantaneously
>> overwritten in the echo area by another recently added message:
>> "For this change to take effect revisit file using `revert-buffer'".
>
> Could use display-warning.
display-warning pops up a new window, and this changes the
window configuration that might be undesirable for users.
I wonder why display-warning doesn't support the warning display
in the echo area? I see no problem with displaying multi-line
messages in the echo area.
But anyway for the given report it seems too late to display
the warning after a wrong value is inserted to the buffer.
I suggest to display the warning before entering a string value
by changing the prompt from
Add compile-command with value: a b c
to
Add compile-command with value (use quotes for strings): "a b c"
=== modified file 'lisp/files-x.el'
--- lisp/files-x.el 2013-06-19 22:39:41 +0000
+++ lisp/files-x.el 2013-06-25 06:09:04 +0000
@@ -88,7 +88,8 @@ (defun read-file-local-variable-value (v
(format "Add %s with value: " variable))
default))
(t
- (read (read-string (format "Add %s with value: " variable)
+ (read (read-string (format "Add %s with value (use quotes for strings): "
+ variable)
nil 'set-variable-value-history
(format "%S"
(cond ((eq variable 'unibyte) t)
This bug report was last modified 12 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.