emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pure strings (Re: Compilation to native)


From: Richard Stallman
Subject: Re: Pure strings (Re: Compilation to native)
Date: Sun, 18 Apr 2004 17:47:12 -0400

    This error is raised on the string "Buffers" by the macro CHECK_IMPURE.

    Could someone explain why should this string be "impure"?

The problem occurs because the string is pure.  It looks like it
is pure because it comes from menu-bar-update-buffers,
which is in a preloaded file.

Does this patch fix it?

*** menu-bar.el 11 Sep 2003 09:45:49 -0400      1.244
--- menu-bar.el 18 Apr 2004 14:34:39 -0400      
***************
*** 1557,1563 ****
  
         (setq buffers-menu (cons 'keymap (cons "Select Buffer" buffers-menu)))
         (define-key (current-global-map) [menu-bar buffer]
!          (cons "Buffers" buffers-menu)))))
  
  (add-hook 'menu-bar-update-hook 'menu-bar-update-buffers)
  
--- 1557,1563 ----
  
         (setq buffers-menu (cons 'keymap (cons "Select Buffer" buffers-menu)))
         (define-key (current-global-map) [menu-bar buffer]
!          (cons (copy-sequence "Buffers") buffers-menu)))))
  
  (add-hook 'menu-bar-update-hook 'menu-bar-update-buffers)
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]