unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5971: 23.1.95; `delete' modifies default value instead of buffer-local value
@ 2010-04-19  2:41 Drew Adams
  2010-04-19  4:23 ` Stefan Monnier
  0 siblings, 1 reply; 20+ messages in thread
From: Drew Adams @ 2010-04-19  2:41 UTC (permalink / raw)
  To: 5971

Visit this file, without loading it:
http://www.emacswiki.org/emacs/wide-n.el
 
Change this line:
(setq wide-n-restrictions
      (remove (cons mrk1 mrk2) wide-n-restrictions))
 
To this:
(setq wide-n-restrictions
      (delete (cons mrk1 mrk2) wide-n-restrictions))
 
Then load the file (with `delete'). Then:
 
In some buffer X, do `C-x n n', then `C-x n x'.
Check the value of variable `wide-n-restrictions'.
 
In another buffer Y, just check the value of the variable. You will see
that the default value, which should be `(all)', has been changed to be what the
new value is for buffer X.
 
Try the same thing again (starting from scratch), but using `remove' (the
original code) instead of `delete'. There is no problem now: only the
buffer-local value is ever set.

This doesn't seem right to me.
 
In GNU Emacs 23.1.95.1 (i386-mingw-nt5.1.2600)
 of 2010-04-03 on G41R2F1
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/imagesupport/include'









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

end of thread, other threads:[~2011-07-09  5:47 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-19  2:41 bug#5971: 23.1.95; `delete' modifies default value instead of buffer-local value Drew Adams
2010-04-19  4:23 ` Stefan Monnier
2010-04-19  5:24   ` Drew Adams
2010-04-19  6:25     ` Stefan Monnier
2010-04-19 15:09       ` Drew Adams
2010-04-19 15:56         ` Glenn Morris
2010-04-19 16:05         ` Andreas Schwab
2010-04-19 16:15           ` Drew Adams
2010-04-19 16:31             ` Andreas Schwab
2010-04-19 17:03               ` Drew Adams
2010-04-19 18:42                 ` Andreas Schwab
2010-04-19 18:58                   ` Drew Adams
2010-04-19 20:18                     ` Andreas Schwab
2010-04-19 20:31                       ` Drew Adams
2010-04-19 20:38                         ` Andreas Schwab
2010-04-19 22:06                           ` Drew Adams
2010-04-21  7:29                             ` Kevin Rodgers
2010-04-21 11:58                               ` Drew Adams
2011-07-09  5:47                               ` Glenn Morris
2010-04-19 15:09     ` bug#5971: - reopen Drew Adams

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