* (thing-at-point 'defun)
@ 2010-04-06 15:28 Leo
2010-04-06 15:49 ` Drew Adams
0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2010-04-06 15:28 UTC (permalink / raw)
To: emacs-devel
Hello,
'defun is listed in thing-at-point's doc string. What is this supposed
to do? I eval (thing-at-point 'defun) in various places and it seems
always return nil.
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: (thing-at-point 'defun)
2010-04-06 15:28 (thing-at-point 'defun) Leo
@ 2010-04-06 15:49 ` Drew Adams
2010-04-06 15:53 ` Leo
0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2010-04-06 15:49 UTC (permalink / raw)
To: 'Leo', emacs-devel
> 'defun is listed in thing-at-point's doc string. What is this supposed
> to do? I eval (thing-at-point 'defun) in various places and it seems
> always return nil.
It's a bug (IMO). I use this in thingatpt+.el; it is missing from thingatpt.el:
;; `defun' type
(put 'defun 'beginning-op 'beginning-of-defun)
(put 'defun 'end-op 'end-of-defun)
(put 'defun 'forward-op 'end-of-defun)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (thing-at-point 'defun)
2010-04-06 15:49 ` Drew Adams
@ 2010-04-06 15:53 ` Leo
0 siblings, 0 replies; 3+ messages in thread
From: Leo @ 2010-04-06 15:53 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs-devel
On 6 April 2010 16:49, Drew Adams <drew.adams@oracle.com> wrote:
>> 'defun is listed in thing-at-point's doc string. What is this supposed
>> to do? I eval (thing-at-point 'defun) in various places and it seems
>> always return nil.
>
> It's a bug (IMO). I use this in thingatpt+.el; it is missing from thingatpt.el:
>
> ;; `defun' type
> (put 'defun 'beginning-op 'beginning-of-defun)
> (put 'defun 'end-op 'end-of-defun)
> (put 'defun 'forward-op 'end-of-defun)
Many thanks for this.
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-06 15:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-06 15:28 (thing-at-point 'defun) Leo
2010-04-06 15:49 ` Drew Adams
2010-04-06 15:53 ` Leo
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).