unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4030: forward-sexp parses character literal ?; as comment
@ 2009-08-04 12:07 era+emacsbugs
  2009-08-04 12:43 ` martin rudalics
  0 siblings, 1 reply; 12+ messages in thread
From: era+emacsbugs @ 2009-08-04 12:07 UTC (permalink / raw)
  To: submit

Package: emacs
Version: 23.1.50.1
Severity: normal
X-Debbugs-Cc: era+emacsbugs@iki.fi

This is a pared-down version of Ubuntu bug report #405498
https://bugs.launchpad.net/bugs/405498 -- please see the URL for the
full bug report.

It seems that forward-sexp (and its underlying C implementation) does
not cope correctly with a character literal semicolon, seeing instead
(effectively) end of line.

In the *scratch* buffer if you write (insert ?;) you can evaluate this
Lisp code and it behaves as intended (inserts a semicolon in the current
buffer) but doing M-x forward-sexp just before the expression results in
an "Unbalanced parentheses" error.

This causes problems e.g. when Customize wants to edit an .emacs file
which contains the character constant ?; anywhere in it, because
Customize uses forward-sexp to parse the user's .emacs file.

/* era */

-- 
If this were a real .signature, it would suck less.  Well, maybe not.

/* era */

-- 
If this were a real .signature, it would suck less.  Well, maybe not.






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

end of thread, other threads:[~2017-05-13  2:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-04 12:07 bug#4030: forward-sexp parses character literal ?; as comment era+emacsbugs
2009-08-04 12:43 ` martin rudalics
2009-08-05  8:17   ` era+emacsbugs
2009-08-05 14:29     ` martin rudalics
2009-08-06  8:55       ` era+emacsbugs
2009-08-06 18:51       ` Stefan Monnier
2009-08-07 13:01         ` martin rudalics
2009-08-10 19:59           ` Stefan Monnier
2009-08-11  9:17             ` martin rudalics
2016-06-18  3:47               ` Andrew Hyatt
2016-06-18  4:31                 ` Stefan Monnier
2017-05-13  2:55                   ` npostavs

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).