From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: bug#1406: backward-up-list reports scan error incorrectly? Date: Thu, 27 Nov 2008 07:52:05 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <20081121231944.GB2089@muc.de> <5F3AB054-C158-4518-9C93-6938EB2D123D@xahlee.org> <20081122123644.GA3330@muc.de> <12CBE034-485F-49CE-9EF6-2C33A51AF0C1@xahlee.org> <9331FB10-71C6-4B1B-94B6-B5C9B3667B74@xahlee.org> <20081122140446.GC3330@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1227815903 15219 80.91.229.12 (27 Nov 2008 19:58:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2008 19:58:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 27 20:59:25 2008 Return-path: Envelope-to: geh-help-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 1L5n1F-0005tH-Qq for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 20:59:22 +0100 Original-Received: from localhost ([127.0.0.1]:32810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5n06-0000Su-5e for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2008 14:58:10 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s9g2000prm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1227801126 14034 127.0.0.1 (27 Nov 2008 15:52:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 27 Nov 2008 15:52:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s9g2000prm.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164831 X-Mailman-Approved-At: Thu, 27 Nov 2008 14:56:57 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60162 Archived-At: On Nov 27, 4:19 am, Alan Mackenzie wrote: > Hi, Xah! > > > > though, isn't this something easy to fix? > > No, because it isn't a bug. It's the way the function is meant to work= . > > If there is a bug, it's that the doc-string (and maybe the elisp manual= , > > I haven't looked) is vague and incomplete. > > I've amended the Emacs manual (.../doc/emacs/programs.texi) and the doc > strings of `backward-up-list' and several similar functions > (.../lisp/emacs-lisp/lisp.el). > > If you're interested, have a look at the changes in > . Thanks Alan. I'd rather hope for a fix instead of change wording to reflect current situation. You argued in bug list that the issue is not simple essentially due to the fact that straight quote chars are not matching. That is true, but i think given today's tech and computing power, we should over come this. Just assume that double quotes in the source code are matched, since they are most of the time. In the few cases when the backward-up-list went to the wrong place due to un-matched double quote, i think that's ok. alternatively, if the cursor is inside double quote, then issue a warning in the messag area that the result may not be correct. Also, since this works in text-mode, so another solution is to temporarily switch to that mode, do the cursor move, then switch back. Or temp set the syntax table to whatever chat that made text-mode work and emacs-lisp-mode not work. In general, my feeling is that moving around nested pairs is a trivial issue, that given today's technology and software, it seems wimpy to tell users that backward-up-list won't work if it's inside double quotes due to some complexities. Much complex problems are solved today in emacs, in other IDEs, etc. Thanks though for the fix on the doc. Xah =E2=88=91 http://xahlee.org/ =E2=98=84