emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-24 r117094: * lisp/subr.el (function-put): Add funct


From: Stefan Monnier
Subject: [Emacs-diffs] emacs-24 r117094: * lisp/subr.el (function-put): Add function.
Date: Fri, 09 May 2014 16:51:30 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117094
revision-id: address@hidden
parent: address@hidden
committer: Stefan Monnier <address@hidden>
branch nick: emacs-24
timestamp: Fri 2014-05-09 12:51:17 -0400
message:
  * lisp/subr.el (function-put): Add function.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/subr.el                   subr.el-20091113204419-o5vbwnq5f7feedwu-151
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2014-05-09 07:50:42 +0000
+++ b/lisp/ChangeLog    2014-05-09 16:51:17 +0000
@@ -1,3 +1,7 @@
+2014-05-09  Stefan Monnier  <address@hidden>
+
+       * subr.el (function-put): Add function.
+
 2014-05-09  Stephen Berman  <address@hidden>
 
        * calendar/todo-mode.el (todo-insert-item-from-calendar):

=== modified file 'lisp/subr.el'
--- a/lisp/subr.el      2014-03-01 03:54:47 +0000
+++ b/lisp/subr.el      2014-05-09 16:51:17 +0000
@@ -2683,6 +2683,14 @@
 form."
   (secure-hash 'sha1 object start end binary))
 
+(defalias 'function-put #'put
+  ;; This is only really used in Emacs>24.4, but we add it to 24.4 already, so
+  ;; as to ease the pain when people use future autoload files that contain
+  ;; function-put.
+  "Set function F's property PROP to VALUE.
+The namespace for PROP is shared with symbols.
+So far, F can only be a symbol, not a lambda expression.")
+
 (defun function-get (f prop &optional autoload)
   "Return the value of property PROP of function F.
 If AUTOLOAD is non-nil and F is autoloaded, try to autoload it


reply via email to

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