all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Miles Bader'" <miles@gnu.org>, <emacs-devel@gnu.org>
Subject: RE: read-buffer-completion-ignore-case
Date: Tue, 5 May 2009 22:42:57 -0700	[thread overview]
Message-ID: <001201c9ce0d$8370bc30$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <87zldrgckk.fsf@catnip.gol.com>

> No, I mean, make your code generic, and only pay attention to
> `completion-ignore-case', as it will have the correct value in the
> various different circumstances.

Not in what I have in mind.

> > For what I have in mind that test wouldn't be sufficient. I really
> > want to know whether buffer-name completion is happening.
> 
> Why?  Maybe the fact that you want to know indicates the completion
> interface is missing something...

No, nevermind, but thanks. I would like to be able to know whether completion
involves buffer names, but there is ultimately no complete solution to that
anyway, obviously. There is in the end no way for completing-read to know
whether its COLLECTION argument involves buffer names. Sticking with
recognizable commands and functions (e.g. read-buffer), as I'm doing anyway, is
a partial solution.

I was thinking of something akin to `minibuffer-completing-file-name', but the
buffer case is not really parallel. (Yes, even for file names there is no 100%
solution, since you can complete them using completing-read instead of
read-file-name, but `minibuffer-completing-file-name' is a pretty good
indicator.)





  reply	other threads:[~2009-05-06  5:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-05 17:46 read-buffer-completion-ignore-case Drew Adams
2009-05-06  2:29 ` read-buffer-completion-ignore-case Miles Bader
2009-05-06  2:38   ` read-buffer-completion-ignore-case Drew Adams
2009-05-06  3:00     ` read-buffer-completion-ignore-case Miles Bader
2009-05-06  5:42       ` Drew Adams [this message]
2009-05-06  7:27         ` read-buffer-completion-ignore-case Miles Bader
2009-05-06  8:29           ` read-buffer-completion-ignore-case Drew Adams
2009-05-06  3:20 ` read-buffer-completion-ignore-case Stefan Monnier

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='001201c9ce0d$8370bc30$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=miles@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.