From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lars Magne Ingebrigtsen'" <larsi@gnus.org>
Cc: 3395@debbugs.gnu.org
Subject: bug#3395: 23.0.94; Remove colon after option etc. name
Date: Mon, 11 Jul 2011 09:53:39 -0700 [thread overview]
Message-ID: <8DDC936FF10748F9978A1579E9DB7946@us.oracle.com> (raw)
In-Reply-To: <m3d3hg7pnc.fsf@quimbies.gnus.org>
> > Please remove the colon after the option (or face etc.)
> > name, at least when `custom-unlispify-*' is nil.
> >
> > A colon is a symbol consituent. A command that picks up the
> > symbol at point will conveniently pick up the variable etc.
> > name, but it will also include the colon (assuming that it
> > correctly respects Lisp symbol syntax), which is incorrect.
>
> If I have (setq custom-unlispify-tag-names nil)
> and I customize (randomly) `calculator-bind-escape', then
> `C-h v' on the variable name picks this up as expected (without
> the colon).
>
> So has this been fixed, or do you still see it with other options?
It has not been fixed. You do not see it because `variable-at-point' (used by
`describe-variable') compensates here. (Likewise, `symbol-at-point'.)
The wrong syntax table is being used for Customize, AFAICT. As the bug report
says, a Customize buffer should use Emacs Lisp syntax, not something else. And
with Emacs Lisp syntax a `:' is a symbol constituent.
After fixing the syntax table, a command or other function that picks up a Lisp
symbol name at that point will pick up the `:' too (since it is a symbol
constituent).
If you do (set-syntax-table emacs-lisp-mode-syntax-table), which is missing
(part of this bug report), and then you put the cursor on the `:', and then you
do `C-u x =', you will see that the `:' is a symbol constituent.
The buffer syntax should be that of Emacs Lisp. Arbitrary functions that pick
up (Lisp) symbol names should and will then pick up a `:' as part of a symbol
name. Because of this, we should remove this colon, which is anyway
unnecessary.
next prev parent reply other threads:[~2011-07-11 16:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-26 23:38 bug#3395: 23.0.94; Remove colon after option etc. name Drew Adams
2009-05-26 23:54 ` Drew Adams
2009-05-28 15:15 ` martin rudalics
2009-05-28 15:34 ` Drew Adams
2009-05-28 15:43 ` martin rudalics
2009-05-28 16:08 ` Drew Adams
2009-05-28 17:11 ` martin rudalics
2009-05-28 18:24 ` Drew Adams
2009-05-28 20:40 ` martin rudalics
2009-05-28 20:57 ` Drew Adams
2011-07-11 16:23 ` Lars Magne Ingebrigtsen
2011-07-11 16:53 ` Drew Adams [this message]
2011-07-11 17:04 ` Lars Magne Ingebrigtsen
2011-07-11 17:19 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8DDC936FF10748F9978A1579E9DB7946@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=3395@debbugs.gnu.org \
--cc=larsi@gnus.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 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).