Eli Zaretskii
0016fa11a7
Minor fix of the last commit in menu-bar-open.
...
lisp/menu-bar.el (menu-bar-open): Fix last change: use the PC
'(redisplay)' instead of '(sit-for 0)'.
2014-06-03 12:50:04 +03:00
Eli Zaretskii
3359086911
Fix TTY menu invocation via M-x.
...
lisp/menu-bar.el (menu-bar-open): Fix invocation via M-x by forcing
the update of the menu bar.
2014-06-02 21:58:36 +03:00
Eli Zaretskii
13a83f0501
Fix bug #17532 with unclear docs of setting frame's font.
...
lisp/frame.el (set-frame-font): Doc fix.
lisp/menu-bar.el (menu-set-font): Doc fix.
doc/emacs/frames.texi (Fonts): Clarify which frames are affected by
setting font from the menu and in default-frame-alist.
2014-05-21 19:35:31 +03:00
Glenn Morris
d136f18462
Doc fixes
...
* doc/misc/autotype.texi (Skeleton Language):
* doc/misc/message.texi (Header Commands):
* lisp/allout-widgets.el (allout-widgets-tally)
(allout-decorate-item-guides):
* lisp/menu-bar.el (menu-bar-positive-p):
* lisp/minibuffer.el (completion-pcm-complete-word-inserts-delimiters):
* lisp/cedet/ede.el (ede-project-directories, ede-check-project-directory):
* lisp/cedet/semantic/ia-sb.el (semantic-ia-sb-show-doc):
* lisp/cedet/semantic/tag.el (semantic-tag-in-buffer-p):
* lisp/cedet/semantic/bovine/c.el (semantic-tag-abstract-p):
* lisp/gnus/gnus-registry.el (gnus-registry-install-p): Doc fix.
* lisp/progmodes/gdb-mi.el (gdbmi-same-start, gdbmi-is-number):
* lisp/progmodes/js.el (js--inside-param-list-p)
(js--inside-dojo-class-list-p, js--forward-destructuring-spec):
* lisp/progmodes/prolog.el (region-exists-p):
* lisp/progmodes/verilog-mode.el (verilog-scan-cache-ok-p):
* lisp/textmodes/reftex-parse.el (reftex-using-biblatex-p):
* lisp/url/url-parse.el (url-generic-parse-url):
* src/floatfns.c (Fisnan):
* src/profiler.c (Fprofiler_cpu_running_p):
Doc fixes (replace `iff').
Fixes: debbugs:17309
2014-05-01 19:55:25 -04:00
Glenn Morris
0b908bf2ef
Small codes update for revert-buffer-function no longer being nil by default
...
* lisp/menu-bar.el (menu-bar-file-menu):
* lisp/vc/ediff.el (ediff-current-file):
Update for revert-buffer-function no longer being nil by default.
2014-04-02 00:07:11 -07:00
Glenn Morris
34dc21db6e
Replace "Maintainer: FSF" with the emacs-devel mailing address
2014-02-09 17:34:22 -08:00
Glenn Morris
b59e2fba12
* lisp/menu-bar.el: Fix author header comment
...
(accidentally omitted from previous commit)
2014-01-16 22:22:55 -05:00
Glenn Morris
0030ec15c3
* lisp/menu-bar.el (menu-bar-help-extra-packages): Remove.
...
(menu-bar-help-menu): Use view-external-packages instead.
* doc/misc/faq.texi: Comment.
2014-01-07 08:50:03 -08:00
Glenn Morris
e9be0a138c
Reference efaq.info in preference to etc/MORE.STUFF
...
* lisp/help.el (view-external-packages):
* lisp/menu-bar.el (menu-bar-help-extra-packages):
Visit efaq.info rather than etc/MORE.STUFF.
2014-01-07 00:38:58 -08:00
Paul Eggert
ba3189039a
Update copyright year to 2014 by running admin/update-copyright.
2014-01-01 07:43:34 +00:00
Juri Linkov
7a409b3005
* lisp/menu-bar.el (menu-bar-tools-menu): Add `browse-web'.
...
* lisp/startup.el (fancy-startup-screen, fancy-about-screen):
Set browse-url-browser-function to eww-browse-url locally.
(Bug#14751)
* lisp/net/browse-url.el (browse-url-browser-function): Move `eww'
closer to similar functions.
* lisp/net/eww.el (browse-web): Add alias to `eww'.
(eww-mode-map): Bind "r" to `eww-forward-url' like in Info.
Bind "S-SPC" to `scroll-down-command'. (Bug#16178)
2013-12-17 23:17:05 +02:00
Juri Linkov
d5ccb7be02
* lisp/uniquify.el (uniquify-buffer-name-style): Change default to `post-forward-angle-brackets'.
...
* lisp/menu-bar.el (menu-bar-options-menu): Don't require preloaded `uniquify'.
Change default to `post-forward-angle-brackets'.
http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00317.html
2013-12-12 02:42:16 +02:00
Stefan Monnier
6f8dfccfe3
Use delete-selection-mode in cua-mode.
...
* lisp/emulation/cua-base.el (cua--prefix-copy-handler)
(cua--prefix-cut-handler): Rely on region-extract-function rather than
checking cua--rectangle.
(cua-delete-region): Use region-extract-function.
(cua-replace-region): Delete function.
(cua-copy-region, cua-cut-region): Obey region-extract-function.
(cua--pre-command-handler-1): Don't do the delete-selection thing.
(cua--self-insert-char-p): Ignore `self-insert-iso'.
(cua--init-keymaps): Don't remap delete-selection commands.
(cua-mode): Use delete-selection-mode instead of rolling our own.
* lisp/emulation/cua-rect.el (cua--rectangle-region-extract): New function.
(region-extract-function): Use it.
(cua-mouse-save-then-kill-rectangle): Use cua-copy-region.
(cua-copy-rectangle, cua-cut-rectangle, cua-delete-rectangle):
Delete functions.
(cua--init-rectangles): Don't re-remap copy-region-as-kill,
kill-ring-save, kill-region, delete-char, delete-forward-char.
Ignore self-insert-iso.
* lisp/menu-bar.el (clipboard-kill-ring-save, clipboard-kill-region):
Obey region-extract-function.
* lisp/emulation/cua-gmrk.el (cua--init-global-mark):
Ignore `self-insert-iso'.
Fixes: debbugs:16085
2013-12-08 01:24:54 -05:00
Stefan Monnier
5ca114d1a8
* lisp/menu-bar.el (popup-menu): Use key-binding.
2013-11-06 12:18:02 -05:00
Eli Zaretskii
f72552bd38
Fix bug #15817 with TTY menus produced by minor modes.
...
lisp/menu-bar.el (popup-menu, menu-bar-open): When displaying TTY
menus, support also the menus produced by minor modes.
2013-11-06 12:10:22 +02:00
Jan Djärv
5f161884b3
Make Info menu for GNUStep only for GUI.
...
* menu-bar.el: Put help-menu in menu-bar-final-items unconditionally.
Move Info menu item creation to ns-win.el.
* term/ns-win.el (ns-initialize-window-system): Rename Help to Info
in menu bar.
2013-10-20 11:26:15 +02:00
Jan Djärv
aca5fcdc4c
Fix GNUStep specific menu items.
...
* lisp/menu-bar.el: Move GNUStep specific menus...
* lisp/term/ns-win.el (ns-initialize-window-system): ... to here.
* src/nsterm.m (Qcocoa, Qgnustep): New variables.
(syms_of_nsterm): Defsym Qcocoa, Qgnustep. Fprovide appropriate one.
2013-10-20 10:50:34 +02:00
Eli Zaretskii
58ce0cfc08
Fix TTY menus when they lead to a minibuffer prompt.
...
lisp/menu-bar.el (tty-menu-navigation-map): Bind mouse-N to perform
TTY menu actions and down-mouse-N to tty-menu-ignore. This solves
the problem whereby selecting a menu item that leads to a
minibuffer prompt moves the cursor out of the minibuffer window,
making it hard to type at the prompt. Suggested by Stefan Monnier
<monnier@iro.umontreal.ca>.
2013-10-19 11:35:51 +03:00
Jan Djärv
50e28e7d3e
* menu-bar.el: Don't make Services menu.
2013-10-19 10:23:43 +02:00
Eli Zaretskii
6456c0ea41
Support mouse wheel in TTY menus.
...
lisp/menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY
menu navigations commands.
2013-10-15 21:40:22 +03:00
Eli Zaretskii
ccd4a7833f
Implement scrolling of TTY menus when the screen is too short.
...
src/term.c (tty_menu_display): Accept an additional argument, the
menu item from which to start displaying the menu. Account for
the value of Y when limiting the menu to the number of available
screen lines.
(mi_result): New enumeration.
(read_menu_input): Return enumerated value. When the y coordinate
hits min_y or max_y, return scroll indication instead of wrapping
around the menu.
(tty_menu_activate): Handle the scrolling indications from
read_menu_input. Compute the first menu item to display and pass
it to tty_menu_display.
lisp/menu-bar.el (tty-menu-navigation-map): Bind shifted mouse clicks
to commands that scroll the menu.
2013-10-14 18:37:12 +03:00
Glenn Morris
feab892d6b
* menu-bar.el (menu-bar-update-buffers): Unify Buffers menu prompt string.
...
Fixes: debbugs:15576
2013-10-12 22:20:15 -07:00
Eli Zaretskii
f747170fc5
Fix popping down a menu by a second mouse click.
...
lisp/menu-bar.el (tty-menu-navigation-map): Bind all menu-bar
sequences to tty-menu-exit -- this pops down a dropped menu on
second mouse click on the menu bar.
2013-10-11 21:20:08 +03:00
Eli Zaretskii
029619c86b
Make the same key that opens TTY menus also exit the menu.
...
lisp/menu-bar.el (tty-menu-navigation-map): Remap F10 to tty-menu-exit.
2013-10-11 20:44:41 +03:00
Masatake YAMATO
2f6e161e3e
* lisp/menu-bar.el (menu-bar-open): Don't use popup-menu if
...
menu-bar is hidden.
2013-10-10 19:47:11 +09:00
Stefan Monnier
20832de03e
* lisp/menu-bar.el (tty-menu-navigation-map): Reduce redundancy.
2013-10-09 22:33:35 -04:00
Glenn Morris
9db13baf0c
* lisp/menu-bar.el (menu-bar-options-menu): Remove text-mode auto-fill,
...
now that text mode has a menu with the same entry.
(menu-bar-text-mode-auto-fill): Remove now unused func.
* lisp/textmodes/text-mode.el (text-mode-map):
Use auto-fill help text from menu-bar.el.
2013-10-09 20:32:36 -04:00
Eli Zaretskii
f3370a94fd
Preload tooltip.el unconditionally.
2013-10-08 18:11:29 +03:00
Eli Zaretskii
afd8eb2cb0
Cleanups and commentary changes.
2013-10-08 17:37:20 +03:00
Eli Zaretskii
4a48e94d50
Horizontal keys in TTY menus work.
2013-10-08 17:28:37 +03:00
Eli Zaretskii
493a197846
Make tty-menu-open-use-tmm a defcustom, update tmm docs accordingly.
2013-10-08 12:01:26 +03:00
Eli Zaretskii
1f16a64c41
F10 can now invoke menu-bar menus from local map.
2013-10-08 11:22:56 +03:00
Eli Zaretskii
ca3433569a
F10 invokes menu by X,Y.
2013-10-06 20:38:20 +03:00
Eli Zaretskii
72b70f6a68
Fix pop down menu with another click on menu bar.
2013-10-05 19:33:37 +03:00
Eli Zaretskii
cee18f1fb3
Fix up- and down-arrows in menus on Unix TTY (which now works).
2013-09-28 12:03:48 +03:00
Eli Zaretskii
e648f69975
Read mouse movement via read_menu_command.
2013-09-25 17:51:39 +03:00
Eli Zaretskii
f34729eaec
Fix submenus and screen restoration.
2013-09-24 19:07:35 +03:00
Eli Zaretskii
df78230943
Use overriding-terminal-local-map for menu navigation.
2013-09-23 16:15:29 +03:00
Eli Zaretskii
e11a3bd1d1
Make F10 pop up the File menu.
2013-09-19 18:25:55 +03:00
Glenn Morris
57953f498a
Simplify news and mail menu items
...
* lisp/menu-bar.el (send-mail-item-name, read-mail-item-name): Remove.
(menu-bar-tools-menu): Simplify news and mail items.
Fixes: debbugs:15095
2013-08-15 23:50:58 -07:00
Glenn Morris
1bb1e03834
* lisp/menu-bar.el (menu-bar-tools-menu): Fix case of EDE entry.
2013-02-16 19:40:38 -08:00
Bastien Guerry
acfe10b71c
Introduce apropos-user-option' and update apropos-variable'. (Bug#13276)
2013-01-07 23:00:55 +01:00
Paul Eggert
ab422c4d68
Update copyright notices for 2013.
2013-01-01 09:11:05 +00:00
Martin Rudalics
96ef9ccd1b
Have kill-this-buffer don't do anything when frame is not alive or visible (Bug#8184).
...
* menu-bar.el (kill-this-buffer): Don't do anything when
`menu-frame' is not alive or visible (Bug#8184).
2012-10-03 10:50:49 +02:00
Andreas Schwab
651eaf36f2
* calc/calc-prog.el (math-do-defmath): Use backquote forms. Fix
...
handling of interactive spec when the body uses return.
(math-do-arg-check, math-define-function-body): Use backquote forms.
* calc/calc-ext.el (math-defcache): Likewise.
* calc/calc-rewr.el (math-rwfail, math-rweval): Likewise.
* allout.el (allout-new-exposure): Likewise.
* calc/calcalg2.el (math-tracing-integral): Likewise.
* info.el (Info-last-menu-item): Likewise.
* emulation/vip.el (vip-loop): Likewise.
* textmodes/artist.el (artist-funcall): Likewise.
* menu-bar.el (menu-bar-make-mm-toggle, menu-bar-make-toggle):
Construct menu-item directly.
* cedet/ede/base.el (ede-with-projectfile): Use backquote forms.
2012-08-07 18:12:20 +02:00
Chong Yidong
6200f3c413
* menu-bar.el (menu-bar-tools-menu): Remove PCL-CVS.
2012-08-03 16:25:42 +08:00
Stefan Monnier
1ec4b7b259
Get rid of all the manual purecopy calls in menu-bar definitions.
...
* lisp/loadup.el (purify-flag): Pre-grow the hash-table to reduce the
memory use.
* lisp/bindings.el (bindings--define-key): New function.
* lisp/vc/vc-hooks.el, lisp/replace.el, lisp/menu-bar.el:
* lisp/international/mule-cmds.el, lisp/emacs-lisp/lisp-mode.el:
* lisp/buff-menu.el, lisp/bookmark.el:
* bindings.el: Use it to purecopy define-key bindings.
* src/fns.c (maybe_resize_hash_table): Output message when growing the
purify-hashtable.
2012-06-27 17:15:13 -04:00
Stefan Monnier
dc5d230cac
Miscellaneous minor cleanups and simplifications.
...
* lisp/help-fns.el (describe-variable): Don't croak when doc is not found.
* lisp/vc/pcvs.el (cvs-retrieve-revision): Avoid toggle-read-only.
* lisp/menu-bar.el (menu-bar-line-wrapping-menu): Purecopy a tiny bit more.
* lisp/emacs-lisp/syntax.el (syntax-ppss): Simplify with new `if' place.
* lisp/emacs-lisp/smie.el (smie-next-sexp): CSE.
* lisp/emacs-lisp/macroexp.el (macroexp-let2): Fix edebug spec and avoid
((lambda ..) ..).
* lisp/emacs-lisp/eieio.el (eieio-oref, slot-value): Use simpler defsetf.
2012-06-23 11:38:23 -04:00
Glenn Morris
3290526dde
Add "How to Report a Bug" to Help menu
...
* lisp/info.el (info-emacs-bug): New command.
* lisp/menu-bar.el (menu-bar-help-menu): Add "How to Report a Bug" to Help.
* lisp/mail/emacsbug.el (report-emacs-bug): Replace with info-emacs-bug.
2012-05-21 20:31:34 -07:00
Chong Yidong
fce3fdeb94
Fix menu-set-font interaction with Custom themes.
...
In particular, prevent it from setting non-font-related attributes
like the foreground and background color. This requires a bugfix to
face-spec-reset-face to make "resetting" the default face work.
* lisp/faces.el (face-spec-reset-face): Don't apply unspecified
attribute values to the default face.
* lisp/frame.el (set-frame-font): New arg ALL-FRAMES.
* lisp/menu-bar.el (menu-set-font): Use set-frame-font.
2012-01-31 16:38:58 +08:00