From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Property list key names
Date: Sat, 09 Aug 2008 20:18:30 +0200 [thread overview]
Message-ID: <489DDF76.5070805@gmail.com> (raw)
In-Reply-To: <yoijskteytxt.fsf@remote5.student.chalmers.se>
Johan Bockgård wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>
>> Johan Bockgård wrote:
>>> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>>>
>>>> If there for example is something like this
>>>>
>>>> (defstruct ert-stats
>>>> (selector (assert nil)))
>>>>
>>>> then a defstruct selector function `ert-stats-selector' is defined. It
>>>> would be nice to go to that function directly from the link in
>>>> describe-function', but currently the position in the file is not
>>>> found.
>>> Indeed, defstruct should put a `definition-name' property on the names
>>> it constructs. Like
>>>
>>> (put 'ert-stats-selector 'definition-name 'ert-stats)
>> Yes, something like that. Is 'definition-name special in some way or
>> could/should it be something else?
>
> Try C-h f again after adding the property above.
Hey, that is the black box game again ... ;-)
Yes, you are right, but I do not understand how it works. I guess C-h f
searches the buffer for the "definition-name".
So this looks like more or less a bug.
I tried to look at defstruct to see where to add 'definition-name. There
seems to be 4 uses of `defun' and `defsubst*'. Should not all this 4 be
adding 'definition-name?
next prev parent reply other threads:[~2008-08-09 18:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-09 13:56 Property list key names Lennart Borgman (gmail)
2008-08-09 14:52 ` Juanma Barranquero
2008-08-09 15:02 ` Lennart Borgman (gmail)
2008-08-09 15:07 ` Juanma Barranquero
2008-08-09 15:11 ` Lennart Borgman (gmail)
2008-08-09 15:16 ` Juanma Barranquero
2008-08-09 16:17 ` Lennart Borgman (gmail)
2008-08-09 16:58 ` Johan Bockgård
2008-08-09 17:18 ` Lennart Borgman (gmail)
2008-08-09 17:20 ` Lennart Borgman (gmail)
2008-08-09 17:33 ` Johan Bockgård
2008-08-09 18:18 ` Lennart Borgman (gmail) [this message]
2008-08-09 18:52 ` Lennart Borgman (gmail)
2008-08-09 18:54 ` Lennart Borgman (gmail)
2008-08-09 15:08 ` Johan Bockgård
2008-08-09 15:15 ` Juanma Barranquero
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=489DDF76.5070805@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=emacs-devel@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.