GNU bug report logs -
#6151
mystery arguments of define-minor-mode + describe-function
Previous Next
Reported by: jidanni <at> jidanni.org
Date: Mon, 10 May 2010 10:04:02 UTC
Severity: minor
Tags: notabug
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 6151 in the body.
You can then email your comments to 6151 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6151
; Package
emacs
.
(Mon, 10 May 2010 10:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
jidanni <at> jidanni.org
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 10 May 2010 10:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Some describe-function results add a mystery argument ARG, not visible
in the corresponding lisp code.
Or maybe it is visible, but not to your average reader.
E.g., here's what describe-function says
longlines-mode is an interactive compiled Lisp function in
`longlines.el'.
(longlines-mode &optional ARG)
Toggle Long Lines mode.
In Long Lines mode, long lines are wrapped if they extend beyond
And here's where we get placed when clicking on longlines.el above
;;;###autoload
(define-minor-mode longlines-mode
"Toggle Long Lines mode.
In Long Lines mode, long lines are wrapped if they extend beyond
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6151
; Package
emacs
.
(Mon, 10 May 2010 10:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6151 <at> debbugs.gnu.org (full text, mbox):
On Mon, May 10, 2010 at 12:02, <jidanni <at> jidanni.org> wrote:
> Some describe-function results add a mystery argument ARG, not visible
> in the corresponding lisp code.
>
> Or maybe it is visible, but not to your average reader.
Among other things, `define-minor-mode' defines a function, in this
case longlines-mode; and that function, like all minor modes, has an
arg to turn it on or off. So it's not `describe-function' which adds a
"mystery argument", but the docstring for the modes, that sometimes
lacks the relevant info.
That said, any Emacs user should be by now used to minor modes having
such an argument...
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6151
; Package
emacs
.
(Mon, 10 May 2010 10:58:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 6151 <at> debbugs.gnu.org (full text, mbox):
>>>>> "JB" == Juanma Barranquero <lekktu <at> gmail.com> writes:
JB> "mystery argument", but the docstring for the modes, that sometimes
JB> lacks the relevant info.
Perhaps an inventory should be made of these defective docstrings, and
then they should be repaired.
JB> That said, any Emacs user should be by now used to minor modes having
JB> such an argument...
I'm the dud-type user sometimes referred to in http://www.useit.com/alertbox/ .
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6151
; Package
emacs
.
(Mon, 10 May 2010 11:03:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 6151 <at> debbugs.gnu.org (full text, mbox):
On Mon, May 10, 2010 at 12:57, <jidanni <at> jidanni.org> wrote:
> Perhaps an inventory should be made of these defective docstrings, and
> then they should be repaired.
There's such an inventory: it is called Emacs bugs list :-)
> I'm the dud-type user sometimes referred to in http://www.useit.com/alertbox/ .
That meaning?
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6151
; Package
emacs
.
(Mon, 10 May 2010 11:40:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 6151 <at> debbugs.gnu.org (full text, mbox):
On Mon, May 10, 2010 at 12:45 PM, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Mon, May 10, 2010 at 12:02, <jidanni <at> jidanni.org> wrote:
>
>> Some describe-function results add a mystery argument ARG, not visible
>> in the corresponding lisp code.
>>
>> Or maybe it is visible, but not to your average reader.
>
> Among other things, `define-minor-mode' defines a function, in this
> case longlines-mode; and that function, like all minor modes, has an
> arg to turn it on or off. So it's not `describe-function' which adds a
> "mystery argument", but the docstring for the modes, that sometimes
> lacks the relevant info.
Maybe the define-minor-mode should always add to the docstring that it
is a minor mode and provide links between the minor mod variable and
the minor mode function?
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6151
; Package
emacs
.
(Mon, 10 May 2010 15:34:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 6151 <at> debbugs.gnu.org (full text, mbox):
> Maybe the define-minor-mode should always add to the docstring that it
> is a minor mode and provide links between the minor mod variable and
> the minor mode function?
Yes, it could check the presence of "ARG" in the provided docstring or
something like that and add a standard blurb if the docstring doesn't
already have it.
Stefan
Added tag(s) notabug.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 21:32:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
6151 <at> debbugs.gnu.org and jidanni <at> jidanni.org
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 21:32:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6151
; Package
emacs
.
(Wed, 13 Jul 2011 22:01:04 GMT)
Full text and
rfc822 format available.
Message #27 received at 6151 <at> debbugs.gnu.org (full text, mbox):
jidanni <at> jidanni.org writes:
> Some describe-function results add a mystery argument ARG, not visible
> in the corresponding lisp code.
>
> Or maybe it is visible, but not to your average reader.
>
> E.g., here's what describe-function says
>
> longlines-mode is an interactive compiled Lisp function in
> `longlines.el'.
>
> (longlines-mode &optional ARG)
>
> Toggle Long Lines mode.
> In Long Lines mode, long lines are wrapped if they extend beyond
>
> And here's where we get placed when clicking on longlines.el above
>
> ;;;###autoload
> (define-minor-mode longlines-mode
> "Toggle Long Lines mode.
> In Long Lines mode, long lines are wrapped if they extend beyond
I don't see a bug here -- this is how `define-minor-mode' works.
--
(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#6151
; Package
emacs
.
(Wed, 13 Jul 2011 22:01:06 GMT)
Full text and
rfc822 format available.
Message #30 received at 6151 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> Maybe the define-minor-mode should always add to the docstring that it
>> is a minor mode and provide links between the minor mod variable and
>> the minor mode function?
>
> Yes, it could check the presence of "ARG" in the provided docstring or
> something like that and add a standard blurb if the docstring doesn't
> already have it.
Opening a new "wishlist" bug report for this would be appropriate.
--
(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#6151
; Package
emacs
.
(Thu, 14 Jul 2011 00:58:01 GMT)
Full text and
rfc822 format available.
Message #33 received at 6151 <at> debbugs.gnu.org (full text, mbox):
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
LMI> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>>> Maybe the define-minor-mode should always add to the docstring that it
>>> is a minor mode and provide links between the minor mod variable and
>>> the minor mode function?
>>
>> Yes, it could check the presence of "ARG" in the provided docstring or
>> something like that and add a standard blurb if the docstring doesn't
>> already have it.
LMI> Opening a new "wishlist" bug report for this would be appropriate.
Somebody who understands the issue please do. Even though I was the
submitter, this is all now beyond my comprehension abilities.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 11 Aug 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 310 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.