From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#4030: forward-sexp parses character literal ?; as comment Date: Tue, 04 Aug 2009 14:43:44 +0200 Message-ID: <4A782D00.4040808@gmx.at> References: <1249387642.18128.1328220453@webmail.messagingengine.com> Reply-To: martin rudalics , 4030@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249391305 22194 80.91.229.12 (4 Aug 2009 13:08:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 13:08:25 +0000 (UTC) Cc: submit@emacsbugs.donarmstrong.com To: era+emacsbugs@iki.fi, 4030@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 15:08:18 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYJkW-000736-G5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 15:08:16 +0200 Original-Received: from localhost ([127.0.0.1]:51518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYJkV-0004MH-Va for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 09:08:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYJjE-0003XO-9W for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 09:06:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYJj9-0003VG-Ad for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 09:06:55 -0400 Original-Received: from [199.232.76.173] (port=59272 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYJj8-0003V9-Oi for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 09:06:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39689) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYJj7-0004WH-W9 for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 09:06:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n74D6l7W006386; Tue, 4 Aug 2009 06:06:47 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n74Co5JX004146; Tue, 4 Aug 2009 05:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 04 Aug 2009 12:50:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4030 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12493898393620 (code B ref -1); Tue, 04 Aug 2009 12:50:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 4 Aug 2009 12:43:59 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n74ChqfV003609 for ; Tue, 4 Aug 2009 05:43:54 -0700 Original-Received: (qmail invoked by alias); 04 Aug 2009 12:43:46 -0000 Original-Received: from 62-47-34-20.adsl.highway.telekom.at (EHLO [62.47.34.20]) [62.47.34.20] by mail.gmx.net (mp010) with SMTP; 04 Aug 2009 14:43:46 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18D9dVGSXIDiRKAwAs0Q7dcVR/kod+rp55LmG7EGh orh+OJxZM/CAZd User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <1249387642.18128.1328220453@webmail.messagingengine.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.71 X-CrossAssassin-Score: 2 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 04 Aug 2009 09:06:55 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29852 Archived-At: > 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. A similar thing happens with (insert ?") so why don't you escape such a character by writing (insert ?\;) instead? From the Elisp manual: You can use the same syntax for punctuation characters, but it is often a good idea to add a `\' so that the Emacs commands for editing Lisp code don't get confused. For example, `?\(' is the way to write the open-paren character. If the character is `\', you _must_ use a second `\' to quote it: `?\\'. martin