diff options
| author | Joakim Verona | 2013-08-16 09:07:17 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-16 09:07:17 +0200 |
| commit | 4c10e4a6625e48c063473d77685c15ec8bba374a (patch) | |
| tree | 49a2a70045527bd418b2d030d1f9ecbf25b2d682 | |
| parent | daf8a7f2f4cf2df4dcb686d505b05b0e773a0c84 (diff) | |
| parent | 58c4682f76b2417640a6789aaa8ee0ad9ab4bad9 (diff) | |
| download | emacs-4c10e4a6625e48c063473d77685c15ec8bba374a.tar.gz emacs-4c10e4a6625e48c063473d77685c15ec8bba374a.zip | |
merge from trunk
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 2 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 31 |
3 files changed, 12 insertions, 27 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cad6788f0e8..c35252b184c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2013-08-16 Glenn Morris <rgm@gnu.org> | 1 | 2013-08-16 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-make-variable-buffer-local): | ||
| 4 | Tweak warning. (Bug#14926) | ||
| 5 | |||
| 6 | * menu-bar.el (send-mail-item-name, read-mail-item-name): Remove. | ||
| 7 | (menu-bar-tools-menu): Simplify news and mail items. (Bug#15095) | ||
| 8 | |||
| 3 | * image-mode.el (image-mode-map): Add menu items to reverse, | 9 | * image-mode.el (image-mode-map): Add menu items to reverse, |
| 4 | increase, decrease, reset animation speed. | 10 | increase, decrease, reset animation speed. |
| 5 | (image--set-speed, image-increase-speed, image-decrease-speed) | 11 | (image--set-speed, image-increase-speed, image-decrease-speed) |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 5baef042757..c6612024fa6 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -4274,7 +4274,7 @@ binding slots have been popped." | |||
| 4274 | (if (and (eq (car-safe (car-safe (cdr-safe form))) 'quote) | 4274 | (if (and (eq (car-safe (car-safe (cdr-safe form))) 'quote) |
| 4275 | (byte-compile-warning-enabled-p 'make-local)) | 4275 | (byte-compile-warning-enabled-p 'make-local)) |
| 4276 | (byte-compile-warn | 4276 | (byte-compile-warn |
| 4277 | "`make-variable-buffer-local' should be called at toplevel")) | 4277 | "`make-variable-buffer-local' not called at toplevel")) |
| 4278 | (byte-compile-normal-call form)) | 4278 | (byte-compile-normal-call form)) |
| 4279 | (put 'make-variable-buffer-local | 4279 | (put 'make-variable-buffer-local |
| 4280 | 'byte-hunk-handler 'byte-compile-form-make-variable-buffer-local) | 4280 | 'byte-hunk-handler 'byte-compile-form-make-variable-buffer-local) |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index be459fe38d5..34cfc68295e 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1307,26 +1307,6 @@ mail status in mode line")) | |||
| 1307 | 1307 | ||
| 1308 | ;; The "Tools" menu items | 1308 | ;; The "Tools" menu items |
| 1309 | 1309 | ||
| 1310 | (defun send-mail-item-name () | ||
| 1311 | (let* ((known-send-mail-commands '((sendmail-user-agent . "sendmail") | ||
| 1312 | (mh-e-user-agent . "MH") | ||
| 1313 | (message-user-agent . "Gnus Message") | ||
| 1314 | (gnus-user-agent . "Gnus"))) | ||
| 1315 | (name (assq mail-user-agent known-send-mail-commands))) | ||
| 1316 | (if name | ||
| 1317 | (setq name (cdr name)) | ||
| 1318 | (setq name (symbol-name mail-user-agent)) | ||
| 1319 | (if (string-match "\\(.+\\)-user-agent" name) | ||
| 1320 | (setq name (match-string 1 name)))) | ||
| 1321 | name)) | ||
| 1322 | |||
| 1323 | (defun read-mail-item-name () | ||
| 1324 | (let* ((known-rmail-commands '((rmail . "RMAIL") | ||
| 1325 | (mh-rmail . "MH") | ||
| 1326 | (gnus . "Gnus"))) | ||
| 1327 | (known (assq read-mail-command known-rmail-commands))) | ||
| 1328 | (if known (cdr known) (symbol-name read-mail-command)))) | ||
| 1329 | |||
| 1330 | (defvar menu-bar-games-menu | 1310 | (defvar menu-bar-games-menu |
| 1331 | (let ((menu (make-sparse-keymap "Games"))) | 1311 | (let ((menu (make-sparse-keymap "Games"))) |
| 1332 | 1312 | ||
| @@ -1473,18 +1453,17 @@ mail status in mode line")) | |||
| 1473 | (bindings--define-key menu [directory-search] | 1453 | (bindings--define-key menu [directory-search] |
| 1474 | '(menu-item "Directory Search" eudc-tools-menu)) | 1454 | '(menu-item "Directory Search" eudc-tools-menu)) |
| 1475 | (bindings--define-key menu [compose-mail] | 1455 | (bindings--define-key menu [compose-mail] |
| 1476 | '(menu-item (format "Send Mail (with %s)" (send-mail-item-name)) compose-mail | 1456 | '(menu-item "Compose New Mail" compose-mail |
| 1477 | :visible (and mail-user-agent (not (eq mail-user-agent 'ignore))) | 1457 | :visible (and mail-user-agent (not (eq mail-user-agent 'ignore))) |
| 1478 | :help "Send a mail message")) | 1458 | :help "Start writing a new mail message")) |
| 1479 | (bindings--define-key menu [rmail] | 1459 | (bindings--define-key menu [rmail] |
| 1480 | '(menu-item (format "Read Mail (with %s)" (read-mail-item-name)) | 1460 | '(menu-item "Read Mail" menu-bar-read-mail |
| 1481 | menu-bar-read-mail | ||
| 1482 | :visible (and read-mail-command | 1461 | :visible (and read-mail-command |
| 1483 | (not (eq read-mail-command 'ignore))) | 1462 | (not (eq read-mail-command 'ignore))) |
| 1484 | :help "Read your mail and reply to it")) | 1463 | :help "Read your mail")) |
| 1485 | 1464 | ||
| 1486 | (bindings--define-key menu [gnus] | 1465 | (bindings--define-key menu [gnus] |
| 1487 | '(menu-item "Read Net News (Gnus)" gnus | 1466 | '(menu-item "Read Net News" gnus |
| 1488 | :help "Read network news groups")) | 1467 | :help "Read network news groups")) |
| 1489 | 1468 | ||
| 1490 | (bindings--define-key menu [separator-vc] | 1469 | (bindings--define-key menu [separator-vc] |