unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19834: Specifying File Variables - does not allow setting comment-start to semicolon
@ 2015-02-11  8:33 Jari Aalto
  2015-02-11  9:26 ` Nicolas Richard
  0 siblings, 1 reply; 4+ messages in thread
From: Jari Aalto @ 2015-02-11  8:33 UTC (permalink / raw)
  To: 19834

Package: emacs
Version: 46.1
Severity: normal

The following causes systax error if put on file. It seems
that ";" isn't taken as the comment-start. This example is
from Windows AHK configuration file <http://www.autohotkey.com>.

;; Local Variables:
;; mode: text ;
;; comment-start: ;
;; End:

-- System Information
Debian Release: jessie/sid
  APT Prefers testing
  APT policy: (990, testing) (500, unstable)
Architecture: amd64
Kernel: Linux picasso 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64 GNU/Linux
Locale: LANG=en_DK.UTF-8

-- Versions of packages `emacs depends on'.
Depends:
emacs24         24.4+1-4.1      GNU Emacs editor (with GTK+ GUI support)
emacs24-lucid   24.4+1-4.1      GNU Emacs editor (with Lucid GUI support)
emacs24-nox     24.4+1-4.1      GNU Emacs editor (without GUI support)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#19834: Specifying File Variables - does not allow setting comment-start to semicolon
  2015-02-11  8:33 bug#19834: Specifying File Variables - does not allow setting comment-start to semicolon Jari Aalto
@ 2015-02-11  9:26 ` Nicolas Richard
  2015-02-11 18:18   ` jari
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Richard @ 2015-02-11  9:26 UTC (permalink / raw)
  To: Jari Aalto; +Cc: 19834

Jari Aalto <jari.aalto@cante.net> writes:

> ;; Local Variables:
> ;; mode: text ;
> ;; comment-start: ;
> ;; End:

it seems to me this should be written as

;; Local Variables:
;; mode: text
;; comment-start: ";"
;; End:

-- 
Nico.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#19834: Specifying File Variables - does not allow setting comment-start to semicolon
  2015-02-11  9:26 ` Nicolas Richard
@ 2015-02-11 18:18   ` jari
  2015-02-11 18:46     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: jari @ 2015-02-11 18:18 UTC (permalink / raw)
  To: Nicolas Richard; +Cc: 19834

On 2015-02-11 10:26, Nicolas Richard wrote:
| Jari Aalto <jari.aalto@cante.net> writes:
| 
| > ;; Local Variables:
| > ;; mode: text ;
| > ;; comment-start: ;
| > ;; End:
| 
| it seems to me this should be written as
| 
| ;; Local Variables:
| ;; mode: text
| ;; comment-start: ";"
| ;; End:

Please document this in

https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables

as semicolon seems to be a special case.

Jari





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#19834: Specifying File Variables - does not allow setting comment-start to semicolon
  2015-02-11 18:18   ` jari
@ 2015-02-11 18:46     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2015-02-11 18:46 UTC (permalink / raw)
  To: jari; +Cc: 19834, Nicolas Richard

jari wrote:

> Please document this in
>
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables
>
> as semicolon seems to be a special case.

comment-start is a string, so trying to set it to ; rather than ";" is
simply a user-error.

I don't think "how to set a variable to a literal semicolon" is worth
documenting, since it's not something that you need to do.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-11 18:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11  8:33 bug#19834: Specifying File Variables - does not allow setting comment-start to semicolon Jari Aalto
2015-02-11  9:26 ` Nicolas Richard
2015-02-11 18:18   ` jari
2015-02-11 18:46     ` 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).