From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: bug#1406: backward-up-list reports scan error incorrectly?
Date: Thu, 27 Nov 2008 07:52:05 -0800 (PST) [thread overview]
Message-ID: <a7660207-10f1-4354-ab1f-b2e46cc2c544@s9g2000prm.googlegroups.com> (raw)
In-Reply-To: mailman.1345.1227787599.26697.help-gnu-emacs@gnu.org
On Nov 27, 4:19 am, Alan Mackenzie <a...@muc.de> 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
> <http://cvs.savannah.gnu.org/viewvc/emacs/?root=emacs>.
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
∑ http://xahlee.org/
☄
next prev parent reply other threads:[~2008-11-27 15:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-21 21:24 bug#1406: backward-up-list reports scan error incorrectly? xah lee
[not found] ` <handler.1406.B.122730266611840.ack@emacsbugs.donarmstrong.com>
2008-11-21 21:39 ` bug#1406: Acknowledgement (backward-up-list reports scan error incorrectly?) xah lee
2008-11-21 23:19 ` bug#1406: backward-up-list reports scan error incorrectly? Alan Mackenzie
2008-11-21 23:26 ` xah lee
2008-11-22 12:36 ` Alan Mackenzie
2008-11-22 12:53 ` xah lee
2008-11-22 13:01 ` xah lee
2008-11-22 14:04 ` Alan Mackenzie
2008-11-27 12:19 ` Alan Mackenzie
2008-11-27 15:56 ` xah lee
2008-11-27 22:09 ` Alan Mackenzie
2008-11-27 22:49 ` xah lee
[not found] ` <mailman.1345.1227787599.26697.help-gnu-emacs@gnu.org>
2008-11-27 15:52 ` Xah Lee [this message]
2011-07-09 18:04 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a7660207-10f1-4354-ab1f-b2e46cc2c544@s9g2000prm.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.