emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lispref/loading.texi


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/lispref/loading.texi
Date: Mon, 14 Feb 2005 05:16:24 -0500

Index: emacs/lispref/loading.texi
diff -c emacs/lispref/loading.texi:1.52 emacs/lispref/loading.texi:1.53
*** emacs/lispref/loading.texi:1.52     Tue Dec 28 12:34:26 2004
--- emacs/lispref/loading.texi  Mon Feb 14 10:16:24 2005
***************
*** 365,374 ****
  just @var{filename} with no added suffix.
  
  The argument @var{docstring} is the documentation string for the
! function.  Normally, this should be identical to the documentation string
! in the function definition itself.  Specifying the documentation string
! in the call to @code{autoload} makes it possible to look at the
! documentation without loading the function's real definition.
  
  If @var{interactive} is address@hidden, that says @var{function} can be
  called interactively.  This lets completion in @kbd{M-x} work without
--- 365,376 ----
  just @var{filename} with no added suffix.
  
  The argument @var{docstring} is the documentation string for the
! function.  Specifying the documentation string in the call to
! @code{autoload} makes it possible to look at the documentation without
! loading the function's real definition.  Normally, this should be
! identical to the documentation string in the function definition
! itself.  If it isn't, the function definition's documentation string
! takes effect when it is loaded.
  
  If @var{interactive} is address@hidden, that says @var{function} can be
  called interactively.  This lets completion in @kbd{M-x} work without
***************
*** 526,533 ****
    The simplest way to add an element to an alist is like this:
  
  @example
! (setq minor-mode-alist
!       (cons '(leif-mode " Leif") minor-mode-alist))
  @end example
  
  @noindent
--- 528,534 ----
    The simplest way to add an element to an alist is like this:
  
  @example
! (push '(leif-mode " Leif") minor-mode-alist)
  @end example
  
  @noindent
***************
*** 536,547 ****
  
  @example
  (or (assq 'leif-mode minor-mode-alist)
!     (setq minor-mode-alist
!           (cons '(leif-mode " Leif") minor-mode-alist)))
  @end example
  
!   To add an element to a list just once, you can also use @code{add-to-list}
! (@pxref{Setting Variables}).
  
    Occasionally you will want to test explicitly whether a library has
  already been loaded.  Here's one way to test, in a library, whether it
--- 537,551 ----
  
  @example
  (or (assq 'leif-mode minor-mode-alist)
!     (push '(leif-mode " Leif") minor-mode-alist))
  @end example
  
! @noindent
! or this:
! 
! @example
! (add-to-list '(leif-mode " Leif") minor-mode-alist)
! @end example
  
    Occasionally you will want to test explicitly whether a library has
  already been loaded.  Here's one way to test, in a library, whether it
***************
*** 746,757 ****
  @item @var{var}
  The symbol @var{var} was defined as a variable.
  @item (defun . @var{fun})
! The @var{fun} was defined by this library.
  @item (t . @var{fun})
  The function @var{fun} was previously an autoload before this library
! redefined it as a function.  The following element is always the
! symbol @var{fun}, which signifies that the library defined @var{fun}
! as a function.
  @item (autoload . @var{fun})
  The function @var{fun} was defined as an autoload.
  @item (require . @var{feature})
--- 750,761 ----
  @item @var{var}
  The symbol @var{var} was defined as a variable.
  @item (defun . @var{fun})
! The function @var{fun} was defined.
  @item (t . @var{fun})
  The function @var{fun} was previously an autoload before this library
! redefined it as a function.  The following element is always
! @code{(defun . @var{fun}), which represents defining @var{fun} as a
! function.
  @item (autoload . @var{fun})
  The function @var{fun} was defined as an autoload.
  @item (require . @var{feature})




reply via email to

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