all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Keymaps on images have pretty much stopped working
Date: 07 Jan 2004 01:49:37 +0100	[thread overview]
Message-ID: <x5hdz837mm.fsf@lola.goethe.zz> (raw)
In-Reply-To: <m38ykkfxp9.fsf@kfs-l.imdomain.dk>

no-spam@cua.dk (Kim F. Storm) writes:

> > David Kastrup <dak@gnu.org> writes:
> > > Pressing C-h k followed by a middle mouse click on either icon causes
> > > an error (with backtrace if debug-on-error is t).
> 
> This works now.

I get the following here (as an example):

<mouse-3> (translated from <down-mouse-3> <mouse-3>) at that spot runs the command (lambda (event) (interactive "e") (preview-context-menu #<overlay from 1327 to 1345 in diffspeed.tex> event))
   which is an interactive Lisp function.
(anonymous EVENT)

Not documented.


This is quite correct and nice, except for the mysterious
(anonymous EVENT)
line which fails to look like something recognizable by ordinary
humans.  If I wanted to bicker (not me, would I?), I might also
notive that the line breaking and indendation seems a bit odd.  If I
compare this with, say, C-g, I have

C-g runs the command keyboard-quit
   which is an interactive compiled Lisp function in `simple'.
It is bound to C-g.
(keyboard-quit)

Signal a `quit' condition.
During execution of Lisp code, this character causes a quit directly.

Now it is apparent that the (anonymous EVENT) line is probably
supposed to be equivalent to the (keyboard-quit) line.  I find even
the (keyboard-quit) line quite disingenious: its purpose is not
obvious.  It becomes more apparent with commands like M-!:

ESC ! (translated from <escape> !) runs the command shell-command
   which is an interactive compiled Lisp function in `simple'.
It is bound to M-!, <menu-bar> <tools> <shell>.
(shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER)

Execute string COMMAND in inferior shell; display output, if any.
With prefix argument, insert the COMMAND's output at point.

[...]

So it would appear to be a synopsis to go with the DOC string.  I'd
say at least an empty line before it would make sense (after all, it
goes with the DOC string and _that_ is separated from it with a blank
line).  Personally, I'd say to remove that blank line above the DOC
string and instead insert it before the function call synopsis.

And I think in case of anonymous functions, the synopsis is wasted.
Will we ever have a documentation string to go with it in the first
place?  Unlikely.  And the arguments it takes are already apparent
from the whole blurb quoting its lambda expression above.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  parent reply	other threads:[~2004-01-07  0:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <x5vfnsk99n.fsf@lola.goethe.zz>
     [not found] ` <E1AdDOG-0002DB-DH@fencepost.gnu.org>
     [not found]   ` <x5r7yfqz6c.fsf@lola.goethe.zz>
     [not found]     ` <m3d69ztg1e.fsf@kfs-l.imdomain.dk>
2004-01-06 23:45       ` Keymaps on images have pretty much stopped working Kim F. Storm
2004-01-07  0:23         ` David Kastrup
2004-01-07  0:49         ` David Kastrup [this message]
2004-01-07  6:09         ` Eli Zaretskii
2004-01-07 11:03           ` Kim F. Storm

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=x5hdz837mm.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --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.