all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: PJ Weisberg <pj@irregularexpressions.net>
Cc: "9030@debbugs.gnu.org" <9030@debbugs.gnu.org>
Subject: bug#9030: `where-is' doesn't play well `with with-output-to-string'
Date: Sun, 07 Aug 2011 13:21:42 -0400	[thread overview]
Message-ID: <jwvzkjlm94e.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAJsNXT=nahFa+KO3_0ChExN7p4gonF1pz1ggEuVEYm3jg4Uz0A@mail.gmail.com> (PJ Weisberg's message of "Tue, 12 Jul 2011 21:44:26 -0700")

>>> Tangentially, I wonder why where-is needs an optional INSERT argument
>>> that means "don't print the result, instead insert it (oh, and use a
>>> slightly different format)".
>> It's clearly meant for interactive use.  I'm not sure if it answers your
>> question, tho.
> For what it's worth, the code that gives what I was actually trting to
> get from `what-is' is `(mapcar 'key-description (where-is-internal
> foo))'.  I don't know if there's a way to get that without using a
> function with "internal" in the name.

Yes, this is not quite right: where-is-internal is not nearly as
internal as the name implies.  It's just the natural function to use,
whereas where-is is the corresponding command.
Maybe we should fix the names to make where-is-internal less scary.


        Stefan





  reply	other threads:[~2011-08-07 17:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-09  2:39 bug#9030: `where-is' doesn't play well `with with-output-to-string' PJ Weisberg
2011-07-12 22:33 ` Glenn Morris
2011-07-13  3:54   ` Stefan Monnier
2011-07-13  4:44     ` PJ Weisberg
2011-08-07 17:21       ` Stefan Monnier [this message]
2011-09-13  7:18 ` Glenn Morris

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=jwvzkjlm94e.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=9030@debbugs.gnu.org \
    --cc=pj@irregularexpressions.net \
    /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.