emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r116486: Some doc for defalias-fset-function


From: Glenn Morris
Subject: [Emacs-diffs] trunk r116486: Some doc for defalias-fset-function
Date: Thu, 20 Feb 2014 07:39:02 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116486
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2014-02-19 23:38:47 -0800
message:
  Some doc for defalias-fset-function
  
  * doc/lispref/functions.texi (Defining Functions):
  Mention defalias-fset-function.
  
  * src/data.c (Fdefalias): Doc fix.
  
  * etc/NEWS: Related edit.
modified:
  doc/lispref/ChangeLog          changelog-20091113204419-o5vbwnq5f7feedwu-6155
  doc/lispref/functions.texi     
functions.texi-20091113204419-o5vbwnq5f7feedwu-6182
  etc/NEWS                       news-20100311060928-aoit31wvzf25yr1z-1
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/data.c                     data.c-20091113204419-o5vbwnq5f7feedwu-251
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2014-02-17 02:12:50 +0000
+++ b/doc/lispref/ChangeLog     2014-02-20 07:38:47 +0000
@@ -1,3 +1,7 @@
+2014-02-20  Glenn Morris  <address@hidden>
+
+       * functions.texi (Defining Functions): Mention defalias-fset-function.
+
 2014-02-17  Glenn Morris  <address@hidden>
 
        * minibuf.texi (Text from Minibuffer): Update read-regexp details.

=== modified file 'doc/lispref/functions.texi'
--- a/doc/lispref/functions.texi        2014-01-10 19:40:32 +0000
+++ b/doc/lispref/functions.texi        2014-02-20 07:38:47 +0000
@@ -592,6 +592,11 @@
 of @var{name}.  Otherwise, any documentation provided by
 @var{definition} is used.
 
address@hidden defalias-fset-function property
+Internally, @code{defalias} normally uses @code{fset} to set the definition.
+If @var{name} has a @code{defalias-fset-function} property, however,
+the associated value is used as a function to call in place of @code{fset}.
+
 The proper place to use @code{defalias} is where a specific function
 name is being defined---especially where that name appears explicitly in
 the source file being loaded.  This is because @code{defalias} records

=== modified file 'etc/NEWS'
--- a/etc/NEWS  2014-02-19 08:34:45 +0000
+++ b/etc/NEWS  2014-02-20 07:38:47 +0000
@@ -1094,8 +1094,10 @@
 Generic commands are interactive functions whose implementation can be
 selected among several alternatives, as a matter of user preference.
 
-** The `defalias-fset-function' property lets you catch `defalias'
-calls, and redirect them to your own function, instead of `fset'.
++++
+** If you give a symbol a `defalias-fset-function' property, `defalias'
+on that symbol will use the associated value as a function to call
+in place of `fset'.
 
 +++
 ** New variable `enable-dir-local-variables'.

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-02-19 17:32:29 +0000
+++ b/src/ChangeLog     2014-02-20 07:38:47 +0000
@@ -1,3 +1,7 @@
+2014-02-20  Glenn Morris  <address@hidden>
+
+       * data.c (Fdefalias): Doc fix.
+
 2014-02-19  Eli Zaretskii  <address@hidden>
 
        * xdisp.c (display_line): Fix horizontal scrolling of large images

=== modified file 'src/data.c'
--- a/src/data.c        2014-01-31 09:41:54 +0000
+++ b/src/data.c        2014-02-20 07:38:47 +0000
@@ -738,6 +738,10 @@
 The optional third argument DOCSTRING specifies the documentation string
 for SYMBOL; if it is omitted or nil, SYMBOL uses the documentation string
 determined by DEFINITION.
+
+Internally, this normally uses `fset', but if SYMBOL has a
+`defalias-fset-function' property, the associated value is used instead.
+
 The return value is undefined.  */)
   (register Lisp_Object symbol, Lisp_Object definition, Lisp_Object docstring)
 {


reply via email to

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