diff options
| -rw-r--r-- | lisp/subr.el | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index ad6e07437ab..51297611edb 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -456,6 +456,7 @@ The order of bindings in a keymap matters when it is used as a menu." | |||
| 456 | (setq inserted t))) | 456 | (setq inserted t))) |
| 457 | (setq tail (cdr tail))))) | 457 | (setq tail (cdr tail))))) |
| 458 | 458 | ||
| 459 | |||
| 459 | (defmacro kbd (keys) | 460 | (defmacro kbd (keys) |
| 460 | "Convert KEYS to the internal Emacs key representation. | 461 | "Convert KEYS to the internal Emacs key representation. |
| 461 | KEYS should be a string constant in the format used for | 462 | KEYS should be a string constant in the format used for |
| @@ -1868,21 +1869,6 @@ If TOGGLE has a `:menu-tag', that is used for the menu item's label." | |||
| 1868 | (setq minor-mode-map-alist (cons (cons toggle keymap) | 1869 | (setq minor-mode-map-alist (cons (cons toggle keymap) |
| 1869 | minor-mode-map-alist)))))))) | 1870 | minor-mode-map-alist)))))))) |
| 1870 | 1871 | ||
| 1871 | ;; XEmacs compatibility/convenience. | ||
| 1872 | (if (fboundp 'play-sound) | ||
| 1873 | (defun play-sound-file (file &optional volume device) | ||
| 1874 | "Play sound stored in FILE. | ||
| 1875 | VOLUME and DEVICE correspond to the keywords of the sound | ||
| 1876 | specification for `play-sound'." | ||
| 1877 | (interactive "fPlay sound file: ") | ||
| 1878 | (let ((sound (list :file file))) | ||
| 1879 | (if volume | ||
| 1880 | (plist-put sound :volume volume)) | ||
| 1881 | (if device | ||
| 1882 | (plist-put sound :device device)) | ||
| 1883 | (push 'sound sound) | ||
| 1884 | (play-sound sound)))) | ||
| 1885 | |||
| 1886 | ;; Clones ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1872 | ;; Clones ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1887 | 1873 | ||
| 1888 | (defun text-clone-maintain (ol1 after beg end &optional len) | 1874 | (defun text-clone-maintain (ol1 after beg end &optional len) |