diff options
| author | Stefan Monnier | 2014-05-09 12:51:17 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-05-09 12:51:17 -0400 |
| commit | a3eda656eeeddb7db59fceba1842007778447e46 (patch) | |
| tree | b7105a8248328584461dc4bd5ddb9b2b11527d52 | |
| parent | 0f09bbfa7fe4fd98ff317a469b82cedde081b2eb (diff) | |
| download | emacs-a3eda656eeeddb7db59fceba1842007778447e46.tar.gz emacs-a3eda656eeeddb7db59fceba1842007778447e46.zip | |
* lisp/subr.el (function-put): Add function.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/subr.el | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 76db4ee829c..cd073cdb985 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-05-09 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * subr.el (function-put): Add function. | ||
| 4 | |||
| 1 | 2014-05-09 Stephen Berman <stephen.berman@gmx.net> | 5 | 2014-05-09 Stephen Berman <stephen.berman@gmx.net> |
| 2 | 6 | ||
| 3 | * calendar/todo-mode.el (todo-insert-item-from-calendar): | 7 | * calendar/todo-mode.el (todo-insert-item-from-calendar): |
diff --git a/lisp/subr.el b/lisp/subr.el index e4350bffff8..48cb33f098b 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2683,6 +2683,14 @@ computing the hash. If BINARY is non-nil, return a string in binary | |||
| 2683 | form." | 2683 | form." |
| 2684 | (secure-hash 'sha1 object start end binary)) | 2684 | (secure-hash 'sha1 object start end binary)) |
| 2685 | 2685 | ||
| 2686 | (defalias 'function-put #'put | ||
| 2687 | ;; This is only really used in Emacs>24.4, but we add it to 24.4 already, so | ||
| 2688 | ;; as to ease the pain when people use future autoload files that contain | ||
| 2689 | ;; function-put. | ||
| 2690 | "Set function F's property PROP to VALUE. | ||
| 2691 | The namespace for PROP is shared with symbols. | ||
| 2692 | So far, F can only be a symbol, not a lambda expression.") | ||
| 2693 | |||
| 2686 | (defun function-get (f prop &optional autoload) | 2694 | (defun function-get (f prop &optional autoload) |
| 2687 | "Return the value of property PROP of function F. | 2695 | "Return the value of property PROP of function F. |
| 2688 | If AUTOLOAD is non-nil and F is autoloaded, try to autoload it | 2696 | If AUTOLOAD is non-nil and F is autoloaded, try to autoload it |