all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* autoloading of defvaralias possible?
@ 2005-02-09 22:14 Stephan Stahl
  2005-02-10 18:40 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan Stahl @ 2005-02-09 22:14 UTC (permalink / raw)


Hi.

The reason i ask if autoloading of an defvaralias is possible is
because of the new variable disabled-command-function and its
obsoleted alias disabled-command-hook.  I used to (setq
disabled-command-hook nil) in my .emacs.  With CVS emacs this does no
longer work because at the time .emacs is loaded the alias is unknown
to emacs.  Would it be possible and desirable to add this alias to
autoload? I think it would be nice not to break such things..

Thanks,
Stephan

PS:
Just in case someone ran into the same problem.. i try to keep my
.emacs as version independent as possible and this is what i came up
with:

(or (and (boundp 'disabled-command-function)
	 (setq disabled-command-function nil))
    (and (boundp 'disabled-command-hook)
	 (setq disabled-command-hook nil)))
-- 
Stephan Stahl

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

* Re: autoloading of defvaralias possible?
  2005-02-09 22:14 autoloading of defvaralias possible? Stephan Stahl
@ 2005-02-10 18:40 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2005-02-10 18:40 UTC (permalink / raw)
  Cc: emacs-devel

Does this fix it?

*** novice.el	10 Feb 2005 01:13:28 -0500	1.36
--- novice.el	10 Feb 2005 12:39:35 -0500	
***************
*** 41,50 ****
    "Function to call to handle disabled commands.
  If nil, the feature is disabled, i.e., all commands work normally.")
  
  (defvaralias 'disabled-command-hook 'disabled-command-function)
! (make-obsolete-variable
!  'disabled-command-hook
!  'disabled-command-function "22.1")
  
  ;;;###autoload
  (defun disabled-command-function (&rest ignore)
--- 41,49 ----
    "Function to call to handle disabled commands.
  If nil, the feature is disabled, i.e., all commands work normally.")
  
+ ;;;###autoload
  (defvaralias 'disabled-command-hook 'disabled-command-function)
! ;;;###autoload (make-obsolete-variable 'disabled-command-hook 'disabled-command-function "22.1")
  
  ;;;###autoload
  (defun disabled-command-function (&rest ignore)

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

end of thread, other threads:[~2005-02-10 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-09 22:14 autoloading of defvaralias possible? Stephan Stahl
2005-02-10 18:40 ` Richard Stallman

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.