unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* possible `with-current-buffer' bug
@ 2011-02-06 17:30 Le Wang
  2011-02-06 19:10 ` Stephen Berman
  0 siblings, 1 reply; 9+ messages in thread
From: Le Wang @ 2011-02-06 17:30 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

Hi,

Could someone follow these steps and tell me if I'm going insane?
 "compilation-disable-input" seems to be set by with-current-buffer.

1. emacs -Q

2. paste into scratch:

(require 'compile)

(defun foo ()
  (interactive)
  (compilation-start "blahasdfasdf" 'grep-mode))

3. M-x eval-current-buffer
4. M-x foo
5. (confirm "compilation-disable-input" is nil) C-h v
compilation-disable-input
5. (instrument compilation-start and step through it) C-h f
compilation-start C-x o <tab> <return> M-x edebug-defun M-x foo

As soon as I get inside the first "(with-current-buffer () ... " form, the
value of "compilation-disable-input" changes from nil to t.  I''ve seen this
with NTEmacs 23.2.1 and CVS build 20110112.

Thanks.

-- 
Le

[-- Attachment #2: Type: text/html, Size: 1102 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-02-07 12:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-06 17:30 possible `with-current-buffer' bug Le Wang
2011-02-06 19:10 ` Stephen Berman
2011-02-07  7:26   ` Le Wang
2011-02-07  8:44     ` Tassilo Horn
2011-02-07  9:23       ` Le Wang
2011-02-07  9:43         ` Tassilo Horn
2011-02-07  9:44         ` Thierry Volpiatto
2011-02-07 10:16         ` Eli Zaretskii
2011-02-07 12:10           ` Le Wang

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).