GNU bug report logs -
#3395
23.0.94; Remove colon after option etc. name
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Tue, 26 May 2009 23:45:03 UTC
Severity: minor
Tags: wontfix
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3395 in the body.
You can then email your comments to 3395 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Tue, 26 May 2009 23:45:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 26 May 2009 23:45:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
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.
The colon serves no purpose here, anyway.
In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600)
of 2009-05-24 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Wed, 27 May 2009 00:00:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 27 May 2009 00:00:07 GMT)
Full text and
rfc822 format available.
Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Sorry, I forgot to say that this is for Customize buffers. This is about the
colon immediately after the name of the thing being customized.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Wed, 27 May 2009 00:00:09 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Wed, 27 May 2009 00:00:09 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 15:25:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 15:25:05 GMT)
Full text and
rfc822 format available.
Message #20 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
> 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.
Maybe we should improve or expand the regexp of `variable-at-point'
"\\`\\W*\\(.*?\\)\\W*\\'"
to strip _any_ symbol characters surrounding a word-bounded substring at
point. Or add yet another condition with a laxer regexp.
martin
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 15:40:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 15:40:05 GMT)
Full text and
rfc822 format available.
Message #25 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
> > 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.
>
> Maybe we should improve or expand the regexp of `variable-at-point'
> "\\`\\W*\\(.*?\\)\\W*\\'" to strip _any_ symbol characters
> surrounding a word-bounded substring at point. Or add yet
> another condition with a laxer regexp.
There is no need to envisage complicated fixes that in any case do not address
the inconvenience I raised. That is not the point of this bug report. Please
open a separate thread if you want to propose such a thing.
I specifically went to the trouble of speaking in generic terms, talking about
"a command that picks up the symbol at point", without referring to any specific
such command, such as `variable-at-point'.
The fix I mentioned lets you use any command at all that picks up symbol syntax
here. A change to `variable-at-point' is not what I'm asking for - that will not
affect other commands that (already DTRT) pick up a symbol name at or near
point.
Simply removing the colon solves the problem, and it has absolutely no negative
effect. Besides being bothersome here, the colon is 100% useless.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 15:50:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 15:50:05 GMT)
Full text and
rfc822 format available.
Message #30 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
> I specifically went to the trouble of speaking in generic terms, talking about
> "a command that picks up the symbol at point", without referring to any specific
> such command, such as `variable-at-point'.
The colon _has_ punctuation syntax in custom buffers. It's the syntax
table chosen by `variable-at-point' which messes up things in your case.
> The fix I mentioned lets you use any command at all that picks up symbol syntax
> here. A change to `variable-at-point' is not what I'm asking for - that will not
> affect other commands that (already DTRT) pick up a symbol name at or near
> point.
Commands that do not change the syntax table do get this right. Try,
for example, info-lookup on such an item. It should even work for
unlispified items.
> Simply removing the colon solves the problem, and it has absolutely no negative
> effect. Besides being bothersome here, the colon is 100% useless.
Changing customization code is 100% dangerous.
martin
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 16:15:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 16:15:04 GMT)
Full text and
rfc822 format available.
Message #35 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
> > I specifically went to the trouble of speaking in generic
> > terms, talking about "a command that picks up the symbol
> > at point", without referring to any specific
> > such command, such as `variable-at-point'.
>
> The colon _has_ punctuation syntax in custom buffers. It's the syntax
> table chosen by `variable-at-point' which messes up things in
> your case.
I don't use `variable-at-point'. I do use a command that uses Emacs-Lisp symbol
syntax, which is the right syntax to use here.
Please stop trying to fix the command. The fix is to remove the useless colon.
Trivial.
> > The fix I mentioned lets you use any command at all that
> > picks up symbol syntax here. A change to `variable-at-point'
> > is not what I'm asking for - that will not
> > affect other commands that (already DTRT) pick up a symbol
> > name at or near point.
>
> Commands that do not change the syntax table do get this right. Try,
> for example, info-lookup on such an item. It should even work for
> unlispified items.
That's fine, but it is totally unrelated to what I reported and requested.
(FWIW, the interactive spec of `info-lookup'
(`info-lookup-interactive-arguments') is very complex, requires specific
knowledge of the given mode, and so on.)
This is not about changing the command. It is simply about removing the useless
colon. Is that too hard?
> > Simply removing the colon solves the problem, and it has
> > absolutely no negative effect. Besides being bothersome here,
> > the colon is 100% useless.
>
> Changing customization code is 100% dangerous.
Don't be ridiculous. You are making, in several separate ways, a mountain out of
a mole hill.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 17:20:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 17:20:05 GMT)
Full text and
rfc822 format available.
Message #40 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
> I don't use `variable-at-point'. I do use a command that uses Emacs-Lisp symbol
> syntax, which is the right syntax to use here.
So you request a change of cus-edit.el just because you're not able to
write a command that DTRT here ;-)
>> Commands that do not change the syntax table do get this right. Try,
>> for example, info-lookup on such an item. It should even work for
>> unlispified items.
>
> That's fine, but it is totally unrelated to what I reported and requested.
It is related because it can find things you're not able to find.
> This is not about changing the command. It is simply about removing the useless
> colon. Is that too hard?
It might be.
>> Changing customization code is 100% dangerous.
>
> Don't be ridiculous. You are making, in several separate ways, a mountain out of
> a mole hill.
Hence code like
(unless (string-match ":" format)
(error "Bad format"))
in cus-edit.el is something you understand and can explain.
martin
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 18:30:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 18:30:03 GMT)
Full text and
rfc822 format available.
Message #45 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
> > I don't use `variable-at-point'. I do use a command that
> > uses Emacs-Lisp symbol
> > syntax, which is the right syntax to use here.
>
> So you request a change of cus-edit.el just because you're not able to
> write a command that DTRT here ;-)
Don't be ridiculous. No one needs to write a command to accommodate this defect.
> >> Commands that do not change the syntax table do get this
> >> right. Try, for example, info-lookup on such an item.
> >> It should even work for unlispified items.
> >
> > That's fine, but it is totally unrelated to what I
> > reported and requested.
>
> It is related because it can find things you're not able to find.
This bug report is only about what it states: removing the colon.
> > This is not about changing the command. It is simply about
> > removing the useless colon. Is that too hard?
>
> It might be.
Then I guess you'll have to mark it too hard to fix, and move on.
> >> Changing customization code is 100% dangerous.
> >
> > Don't be ridiculous. You are making, in several separate
> > ways, a mountain out of a mole hill.
>
> Hence code like
> (unless (string-match ":" format)
> (error "Bad format"))
>
> in cus-edit.el is something you understand and can explain.
I don't understand the question or comment. What's the point?
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 20:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 20:50:03 GMT)
Full text and
rfc822 format available.
Message #50 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> > This is not about changing the command. It is simply about
>> > removing the useless colon. Is that too hard?
>>
>> It might be.
>
> Then I guess you'll have to mark it too hard to fix, and move on.
You have to find someone who agrees that this is a bug.
>> Hence code like
>> (unless (string-match ":" format)
>> (error "Bad format"))
>>
>> in cus-edit.el is something you understand and can explain.
>
> I don't understand the question or comment.
Obviously because you didn't try to.
> What's the point?
That colons sometimes serve additional purposes in custom buffers
besides of being displayed as visible characters.
martin
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3395
; Package
emacs
.
(Thu, 28 May 2009 21:05:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 28 May 2009 21:05:08 GMT)
Full text and
rfc822 format available.
Message #55 received at 3395 <at> emacsbugs.donarmstrong.com (full text, mbox):
> >> > This is not about changing the command. It is simply about
> >> > removing the useless colon. Is that too hard?
> >>
> >> It might be.
> >
> > Then I guess you'll have to mark it too hard to fix, and move on.
>
> You have to find someone who agrees that this is a bug.
I don't have to do any such thing.
This is an enhancement request. Like all bug reports and enhancement requests,
Emacs developers are free to choose not to fix it. I make a request or report a
problem. You decide whether to fix it.
> >> Hence code like
> >> (unless (string-match ":" format)
> >> (error "Bad format"))
> >>
> >> in cus-edit.el is something you understand and can explain.
> >
> > I don't understand the question or comment.
>
> Obviously because you didn't try to.
Nothing obvious about it. I do not understand what you are trying to say. You
state that I understand and can explain something, but I have no idea what that
means. What is it that you think I understand and can explain? And why?
> > What's the point?
>
> That colons sometimes serve additional purposes in custom buffers
> besides of being displayed as visible characters.
Ah, I see.
I cannot speak to the difficulty of implementing the enhancement. I reported
this from a user point of view, not that of an implementor.
I would _guess_ that this particular colon would be easily identifiable, but I
don't claim that. I have not looked at the code.
I asked if this was hard. You said it might be. I said that if it is too hard
then you will likely need to just move on. Dunno what more I can say. It is you
who estimates the difficulty, not I. It is you who decides whether to make this
enhancement.
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 26 Jan 2010 18:42:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3395
; Package
emacs
.
(Mon, 11 Jul 2011 16:33:02 GMT)
Full text and
rfc822 format available.
Message #60 received at 3395 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 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?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3395
; Package
emacs
.
(Mon, 11 Jul 2011 16:54:02 GMT)
Full text and
rfc822 format available.
Message #63 received at 3395 <at> debbugs.gnu.org (full text, mbox):
> > 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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3395
; Package
emacs
.
(Mon, 11 Jul 2011 17:06:01 GMT)
Full text and
rfc822 format available.
Message #66 received at 3395 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> It has not been fixed. You do not see it because `variable-at-point'
> (used by `describe-variable') compensates here. (Likewise,
> `symbol-at-point'.)
If these functions pick up the symbol as intended, I don't see what the
problem is.
> The buffer syntax should be that of Emacs Lisp.
It's not an Emacs Lisp buffer. It's a text buffer that may have some
Emacs Lisp symbols in it.
> Arbitrary functions that pick up (Lisp) symbol names should and will
> then pick up a `:' as part of a symbol name.
The arbitrary functions should use `symbol-at-point' or the like.
> Because of this, we should remove this colon, which is anyway
> unnecessary.
It looks nice. I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) wontfix.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2011 17:06:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
3395 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2011 17:06:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3395
; Package
emacs
.
(Mon, 11 Jul 2011 17:20:03 GMT)
Full text and
rfc822 format available.
Message #73 received at 3395 <at> debbugs.gnu.org (full text, mbox):
> If these functions pick up the symbol as intended, I don't
> see what the problem is.
Right, you do not see.
> > The buffer syntax should be that of Emacs Lisp.
>
> It's not an Emacs Lisp buffer. It's a text buffer that may have some
> Emacs Lisp symbols in it.
True. If you can make all of the Lisp symbols in the buffer have Lisp syntax,
without making the rest of the buffer have Lisp syntax, then fine.
> > Arbitrary functions that pick up (Lisp) symbol names should and will
> > then pick up a `:' as part of a symbol name.
>
> The arbitrary functions should use `symbol-at-point' or the like.
Then they aren't arbitrary. Why argue about that?
A function that picks up a Lisp symbol name will & should pick up `:' as part of
that name, provided the buffer syntax is `emacs-lisp-mode-syntax-table'.
And yes, that's true also of `symbol-at-point', BTW. In an Emacs-Lisp mode
buffer, type `foo:bar', put the cursor on the `:', and do `M-:
(symbol-at-point)'. The value is `foo:bar'.
> > Because of this, we should remove this colon, which is anyway
> > unnecessary.
>
> It looks nice. I'm closing this bug report.
It hampers usability. And it adds nothing to readability in that position. It
is followed by a menu button or an editable field (gray background).
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2011 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 314 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.