From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bad C-j behavior in Emacs-Lisp mode Date: Sun, 30 Mar 2008 09:05:40 -0700 Message-ID: <000201c8927f$e73fd040$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206893182 28271 80.91.229.12 (30 Mar 2008 16:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 16:06:22 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 30 18:06:52 2008 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 1Jg03F-0002nG-9n for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 18:06:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg02d-0001i4-FI for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 12:05:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jg02X-0001gA-QB for bug-gnu-emacs@gnu.org; Sun, 30 Mar 2008 12:05:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jg02W-0001fu-9r for bug-gnu-emacs@gnu.org; Sun, 30 Mar 2008 12:05:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg02W-0001fr-71 for bug-gnu-emacs@gnu.org; Sun, 30 Mar 2008 12:05:48 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jg02V-0005o7-MZ for bug-gnu-emacs@gnu.org; Sun, 30 Mar 2008 12:05:47 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m2UG5iRG028164 for ; Sun, 30 Mar 2008 10:05:45 -0600 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m2UAKCsK016607 for ; Sun, 30 Mar 2008 10:05:44 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3631293881206893125; Sun, 30 Mar 2008 09:05:25 -0700 Original-Received: from dradamslap1 (/141.144.64.157) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 30 Mar 2008 09:05:25 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AciSf+Zd3U7Qd8O5RniEtnBpZHMmZw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:17767 Archived-At: emacs -Q In Emacs-Lisp mode, put cursor after (bar m) and hit C-j. (if (string= foo "a") (bar m) ; Comment The cursor is put after the semicolon. It should be put before it, ready for you to type the second "then" clause of the `if'. This is what happens (with the cursor at |): (if (string= foo "a") (bar m) ;| Comment This behavior would be better: (if (string= foo "a") (bar m) | ; Comment It doesn't make sense for the cursor to move from outside to inside the comment. In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'