GNU bug report logs -
#2291
23.0.90; finder-commentary
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2291 in the body.
You can then email your comments to 2291 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#2291
; Package
emacs
.
(Wed, 11 Feb 2009 18:45:02 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>
.
(Wed, 11 Feb 2009 18:45:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
1. This sexp in finder-commentary is inappropriate:
(delete-other-windows). The original buffer is current when this is
called, and it makes no sense to delete the other windows. And the
call is immediately followed by pop-to-buffer to display and select
the Finder commentary buffer.
2. The Commentary buffer name should not be "*Finder-package*". That
prohibits you from having more than one such buffer. Also, the name
should reflect the content: this is the Commentary section of a
particular Lisp file. Please use something like this:
(pop-to-buffer
(concat "*Commentary, " (file-name-sans-extension file) "*"))
instead of this:
(pop-to-buffer "*Finder-package*")
The result will then be a name like this: *Commentary, buff-menu*
Among other things, being able to have more than one Finder commentary
buffer lets you use the Commentary section of Lisp files for
documentation that refers to other Lisp file Commentary sections.
With a simple link facility (e.g. `linkd.el' or Org mode), this doc
becomes hypertext among Commentary sections, each in Finder mode, with
the comment characters removed etc.
In GNU Emacs 23.0.90.1 (i386-mingw-nt5.1.2600)
of 2009-02-01 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#2291
; Package
emacs
.
(Wed, 11 Feb 2009 23:45: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>
.
(Wed, 11 Feb 2009 23:45:03 GMT)
Full text and
rfc822 format available.
Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
I forgot to mention this:
3. The doc string of `finder-commentary' does not describe argument LIBRARY. The
doc string:
"Display FILE's commentary section.
FILE should be in a form suitable for passing to `locate-library'."
But the doc string of `locate-library' also does not say what is suitable for
its LIBRARY argument:
"Show the precise file name of Emacs library LIBRARY.
This command searches the directories in `load-path' like `M-x load-library'
to find the file that `M-x load-library RET LIBRARY RET' would load.
Optional second arg NOSUFFIX non-nil means don't add suffixes `load-suffixes'
to the specified name LIBRARY.
If the optional third arg PATH is specified, that list of directories
is used instead of `load-path'.
When called from a program, the file name is normally returned as a
string. When run interactively, the argument INTERACTIVE-CALL is t,
and the file name is displayed in the echo area."
That says absolutely nothing about argument LIBRARY, except that it is a
library. However, it refers you to `load-library'. But the doc string of
`load-library' also says absolutely nothing about argument LIBRARY. It refers
you to `load'...
The user should be told, somewhere along the line (preferably everywhere, if
short), just which Lisp objects are acceptable as values of argument LIBRARY.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2291
; Package
emacs
.
(Wed, 11 Feb 2009 23:45: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, 11 Feb 2009 23:45:04 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#2291
; Package
emacs
.
(Fri, 13 Feb 2009 15:25:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 13 Feb 2009 15:25:05 GMT)
Full text and
rfc822 format available.
Message #20 received at 2291 <at> emacsbugs.donarmstrong.com (full text, mbox):
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Date: Wed, 11 Feb 2009 15:35:44 -0800
> Cc:
>
> I forgot to mention this:
>
> 3. The doc string of `finder-commentary' does not describe argument LIBRARY. The
> doc string:
>
> "Display FILE's commentary section.
> FILE should be in a form suitable for passing to `locate-library'."
>
> But the doc string of `locate-library' also does not say what is suitable for
> its LIBRARY argument:
>
> "Show the precise file name of Emacs library LIBRARY.
> This command searches the directories in `load-path' like `M-x load-library'
> to find the file that `M-x load-library RET LIBRARY RET' would load.
> Optional second arg NOSUFFIX non-nil means don't add suffixes `load-suffixes'
> to the specified name LIBRARY.
>
> If the optional third arg PATH is specified, that list of directories
> is used instead of `load-path'.
>
> When called from a program, the file name is normally returned as a
> string. When run interactively, the argument INTERACTIVE-CALL is t,
> and the file name is displayed in the echo area."
>
> That says absolutely nothing about argument LIBRARY, except that it is a
> library. However, it refers you to `load-library'. But the doc string of
> `load-library' also says absolutely nothing about argument LIBRARY. It refers
> you to `load'...
>
> The user should be told, somewhere along the line (preferably everywhere, if
> short), just which Lisp objects are acceptable as values of argument LIBRARY.
I fixed the doc strings of `load-library' and `locate-library'.
Reply sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
You have taken responsibility.
(Sun, 08 Mar 2009 20:05:08 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Sun, 08 Mar 2009 20:05:08 GMT)
Full text and
rfc822 format available.
Message #25 received at 2291-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> 1. This sexp in finder-commentary is inappropriate:
> (delete-other-windows).
I've removed it. Thanks for pointing this out.
> 2. The Commentary buffer name should not be "*Finder-package*". That
> prohibits you from having more than one such buffer.
That would be problematic, as it leaves a trail of finder-commentary
buffers that you have to delete manually. That's the same reason we
don't uniquify *Help* buffers.
Message #26 received at 2291-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> > 2. The Commentary buffer name should not be
> > "*Finder-package*". That prohibits you from having
> > more than one such buffer.
>
> That would be problematic, as it leaves a trail of finder-commentary
> buffers that you have to delete manually. That's the same reason we
> don't uniquify *Help* buffers.
There is no relation between this and *Help*. There is a good reason for having
multiple commentary buffers, which I mentioned:
> being able to have more than one Finder commentary buffer
> lets you use the Commentary section of Lisp files for
> documentation that refers to other Lisp file Commentary sections.
>
> With a simple link facility (e.g. `linkd.el' or Org mode),
> this doc becomes hypertext among Commentary sections, each in
> Finder mode, with the comment characters removed etc.
It is not difficult to delete a buffer you no longer want. But without the
requested change there is no easy way for a user to view the commentaries of
more than one library.
bug reopened, originator not changed.
Request was from
"Drew Adams" <drew.adams <at> oracle.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Sun, 08 Mar 2009 20:35:03 GMT)
Full text and
rfc822 format available.
Severity set to `wishlist' from `normal'
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> emacsbugs.donarmstrong.com
.
(Fri, 27 Mar 2009 03:05:09 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2291
; Package
emacs
.
(Wed, 27 Apr 2016 17:44:02 GMT)
Full text and
rfc822 format available.
Message #33 received at 2291 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> 1. This sexp in finder-commentary is inappropriate:
> (delete-other-windows). The original buffer is current when this is
> called, and it makes no sense to delete the other windows. And the
> call is immediately followed by pop-to-buffer to display and select
> the Finder commentary buffer.
This looks like it's fixed now?
> 2. The Commentary buffer name should not be "*Finder-package*". That
> prohibits you from having more than one such buffer. Also, the name
> should reflect the content: this is the Commentary section of a
> particular Lisp file. Please use something like this:
>
> (pop-to-buffer
> (concat "*Commentary, " (file-name-sans-extension file) "*"))
>
> instead of this:
> (pop-to-buffer "*Finder-package*")
>
> The result will then be a name like this: *Commentary, buff-menu*
Wouldn't it make more sense just to use the *Help* buffer? It has a
nice history and stuff...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2291
; Package
emacs
.
(Wed, 27 Apr 2016 17:54:01 GMT)
Full text and
rfc822 format available.
Message #36 received at 2291 <at> debbugs.gnu.org (full text, mbox):
> > 1. This sexp in finder-commentary is inappropriate:
> > (delete-other-windows). The original buffer is current when this is
> > called, and it makes no sense to delete the other windows. And the
> > call is immediately followed by pop-to-buffer to display and select
> > the Finder commentary buffer.
>
> This looks like it's fixed now?
Yes, I guess so - it seems to have been removed in Emacs 23.
Dunno whether the bad effect is gone, but I'll assume so.
> > 2. The Commentary buffer name should not be "*Finder-package*". That
> > prohibits you from having more than one such buffer. Also, the name
> > should reflect the content: this is the Commentary section of a
> > particular Lisp file. Please use something like this:
> >
> > (pop-to-buffer
> > (concat "*Commentary, " (file-name-sans-extension file) "*"))
> >
> > instead of this:
> > (pop-to-buffer "*Finder-package*")
> >
> > The result will then be a name like this: *Commentary, buff-menu*
>
> Wouldn't it make more sense just to use the *Help* buffer? It has a
> nice history and stuff...
No, certainly not. It should be commentary-specific, and file-specific,
as described in the bug report.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2291
; Package
emacs
.
(Wed, 27 Apr 2016 17:59:02 GMT)
Full text and
rfc822 format available.
Message #39 received at 2291 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
>> > 2. The Commentary buffer name should not be "*Finder-package*". That
>> > prohibits you from having more than one such buffer. Also, the name
>> > should reflect the content: this is the Commentary section of a
>> > particular Lisp file. Please use something like this:
>> >
>> > (pop-to-buffer
>> > (concat "*Commentary, " (file-name-sans-extension file) "*"))
>> >
>> > instead of this:
>> > (pop-to-buffer "*Finder-package*")
>> >
>> > The result will then be a name like this: *Commentary, buff-menu*
>>
>> Wouldn't it make more sense just to use the *Help* buffer? It has a
>> nice history and stuff...
>
> No, certainly not. It should be commentary-specific, and file-specific,
> as described in the bug report.
It would be unusual. Most of these help-ish commands reuse the same
buffer, and if you want to keep several of them around, you just rename
the buffer yourself.
So I don't think there's anything more to be done on this report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
2291 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 27 Apr 2016 17:59:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#2291
; Package
emacs
.
(Wed, 27 Apr 2016 18:06:02 GMT)
Full text and
rfc822 format available.
Message #44 received at 2291 <at> debbugs.gnu.org (full text, mbox):
> >> Wouldn't it make more sense just to use the *Help* buffer? It has a
> >> nice history and stuff...
> >
> > No, certainly not. It should be commentary-specific, and file-specific,
> > as described in the bug report.
>
> It would be unusual. Most of these help-ish commands reuse the same
> buffer, and if you want to keep several of them around, you just rename
> the buffer yourself.
>
> So I don't think there's anything more to be done on this report.
This is nuts. `finder-commentary' is file-specific. Anyone
who uses it (and admittedly it is underused - most users know
nothing about its existence) uses it on multiple files.
You might have noticed recently a bunch of mails about having
multiple grep buffers etc. Well this is even more important
than that - and simpler, as this is just file-specific. Each
file should get its own finder-commentary buffer, named after it.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 26 May 2016 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 31 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.