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 19:38:19 -0700 [thread overview]
Message-ID: <000e01c9cdf3$b810b720$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <87k54vhskw.fsf@catnip.gol.com>
> > There is no real use of
> > `read-buffer-completion-ignore-case' in the Emacs Lisp
> > files, and I haven't bothered to download the C source code
> > to check all the places it might be used (besides `read-buffer').
> >
> > Question: How can Emacs-Lisp code know whether completion
> > involves buffer names?
> >
> > Suppose I want to do something depending on the value of
> > `read-buffer-completion-ignore-case', but only when
> > completion is for buffer names - how can I test that?
> > It's relatively easy to test for file-name
> > completion, but how to do that for buffer-name completion?
>
> Do you really need to know explicitly? Could you instead just test
> `completion-ignore-case', which is let-bound to the value of
> read-buffer-completion-ignore-case inside of read-buffer?
Not sure I follow you. Do you mean compare the values of
`completion-ignore-case' and `read-buffer-completion-ignore-case', and assume
that a buffer name is being read if (and only if) they are different?
For what I have in mind that test wouldn't be sufficient. I really want to know
whether buffer-name completion is happening.
But I wouldn't go so far as to say I "need" this. I don't really need any
particular feature - or Emacs itself, for that matter. ;-)
next prev parent reply other threads:[~2009-05-06 2:38 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 ` Drew Adams [this message]
2009-05-06 3:00 ` read-buffer-completion-ignore-case Miles Bader
2009-05-06 5:42 ` read-buffer-completion-ignore-case Drew Adams
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='000e01c9cdf3$b810b720$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.