unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: 12615@debbugs.gnu.org
Subject: bug#12615: 24.2.50; Non-ignored case in insert-char
Date: Wed, 10 Oct 2012 20:03:41 +0200 (CEST)	[thread overview]
Message-ID: <20121010.200341.1735119142677865822.hanche@math.ntnu.no> (raw)
In-Reply-To: <20121010.173658.77853335142870486.hanche@math.ntnu.no>

Thinking about this on my way home from work, I think I figured out
the reason for this problem:

The let binding of completion-ignore-case takes place in the current
buffer, and so overrides the buffer-local binding. However, the
variable is used in the minibuffer, in which the buffer-local binding
(and with it, the let binding) is not visible; it uses the global
binding instead.

I am not totally sure about this; however, a simple experiment shows
that buffer-local bindings and let bindings interact in the way
described.

If I am right, then making completion-ignore-case buffer-local makes
no sense, as it can't have any effect. (If you're curious, mew does
this. I should contact the author to find out why.)

As to whether this is an emacs bug, I am no longer sure.

But I can't find anything in the elisp manual about how let operates
on buffer-local variables.

- Harald





  reply	other threads:[~2012-10-10 18:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-10 15:36 bug#12615: 24.2.50; Non-ignored case in insert-char Harald Hanche-Olsen
2012-10-10 18:03 ` Harald Hanche-Olsen [this message]
2012-10-10 19:30   ` Andreas Schwab
2012-10-10 21:31   ` Glenn Morris
2012-10-11  6:32     ` Harald Hanche-Olsen
2012-10-11  0:56 ` Stefan Monnier
2012-10-11  6:37   ` Harald Hanche-Olsen
2012-10-11 20:12     ` Stefan Monnier
2012-12-29 22:56   ` Juri Linkov
2013-01-04  0:13     ` Juri Linkov
2013-01-08  0:45       ` Juri Linkov
2013-01-08  3:19       ` Stefan Monnier
2013-01-09  0:20         ` Juri Linkov
2013-01-09  2:41           ` Stefan Monnier
2013-01-10  0:24           ` Juri Linkov
2013-01-10  2:50             ` Stefan Monnier
2020-09-13 16:33               ` Lars Ingebrigtsen
2022-04-22 12:35                 ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121010.200341.1735119142677865822.hanche@math.ntnu.no \
    --to=hanche@math.ntnu.no \
    --cc=12615@debbugs.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 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).