summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/easymenu.el
Commit message (Collapse)AuthorAgeFilesLines
* (easy-menu-define): Doc fix.Eli Zaretskii2003-12-291-2/+2
|
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (easy-menu-get-map): Correctly handle non-submap bindings.Stefan Monnier2003-04-301-2/+2
|
* (easy-menu-define): Don't make a defvar for nil.Richard M. Stallman2003-04-031-10/+4
| | | | | (easy-menu-convert-item-1): Doc fix. (easy-menu-change): Call easy-menu-create-menu.
* (easy-menu-add-item): Align the docstring with the code.Stefan Monnier2003-03-241-1/+1
|
* (easy-menu-add-item): Don't default to the global map.John Paul Wallington2003-03-241-3/+0
|
* (easy-menu-name-match): Catch any error that member-ignore-case might signal.Stefan Monnier2003-03-161-4/+8
| | | | | (easy-menu-add-item): Default to the global map, as documented. (easy-menu-convert-item-1): Use match-string.
* (easy-menu-do-define): Handle nil for SYMBOL.Richard M. Stallman2002-12-231-15/+18
| | | | (easy-menu-define): Doc fix, say SYMBOL can be nil.
* (easy-menu-remove): Add docstring.Stefan Monnier2002-09-191-1/+6
|
* (easy-menu-define): Fix spacing.Juanma Barranquero2002-09-061-1/+1
|
* (easy-menu-filter-return):Stefan Monnier2002-08-301-13/+12
| | | | | | | Handle the case where the filter returns a single menu entry. (easy-menu-add): Improve docstring. (easy-menu-current-active-maps): Remove. (easy-menu-get-map): Use current-active-maps.
* (easy-menu-popup-menu): Function deleted.Richard M. Stallman2002-07-071-14/+0
|
* (easy-menu-popup-menu): New function.Richard M. Stallman2002-07-021-0/+14
|
* (easy-menu-make-symbol): Don't treat (lambda () ...) as an expression.Stefan Monnier2002-05-151-2/+2
|
* (easy-menu-add): Doc fix.Eli Zaretskii2002-05-151-1/+1
|
* (easy-menu-name-match): Match bothJason Rumney2002-05-141-1/+5
| | | | displayed text and internal name as string.
* (easy-menu-intern): Downcase before interning.Richard M. Stallman2002-04-241-21/+38
| | | | | | | | | | (easy-menu-define-key-intern): Function deleted; callers intern and then call easy-menu-define-key. (easy-menu-do-add-item): Explicitly intern the key, but not BEFORE. (easy-menu-define-key): Use easy-menu-name-match to match BEFORE. (easy-menu-name-match): New function. (add-submenu): New function. (easy-menu-get-map-look-for-name): Use easy-menu-name-match.
* (easy-menu-intern): New fun.Stefan Monnier2001-12-131-9/+14
| | | | | | (easy-menu-do-define, easy-menu-convert-item-1) (easy-menu-define-key-intern, easy-menu-get-map): Use it. (easy-menu-return-item): Only return nil if there is no binding.
* Fixes to follow coding conventions.Pavel Janík2001-07-161-2/+2
|
* (easy-menu-current-active-maps): TestGerd Moellmann2000-12-141-2/+4
| | | | if symbol is bound before getting its value.
* (easy-menu-define): Setup indentation.Stefan Monnier2000-12-131-27/+40
| | | | | | (easy-menu-current-active-maps): New function. (easy-menu-get-map): Use it. Make a proper menu entry when creating a new keymap.
* (easy-menu-convert-item-1): Only intern if the label is a string.Stefan Monnier2000-07-141-1/+1
|
* (easy-menu-convert-item-1): Intern the label.Stefan Monnier2000-07-141-5/+9
|
* Doc fixes.Dave Love2000-07-131-36/+36
| | | | (easy-menu-remove): Defalias to ignore.
* (easy-menu-define): Docstring fix.Stefan Monnier2000-07-051-29/+74
| | | | | | | | | | | | | | | | (easy-menu-do-define): Use `menu-item' format. Handle case where easy-menu-create-menu returns a symbol. Manually call the potential top-level filter in the function binding. (easy-menu-filter-return): New arg NAME. Convert to a keymap if MENU is an XEmacs menu. (easy-menu-convert-item-1): New. Extracted from easy-menu-do-add-item. (easy-menu-converted-items-table, easy-menu-convert-item): New. (easy-menu-do-add-item): Use it. (easy-menu-create-menu): Use easy-menu-convert-item. Wrap easy-menu-filter-return around any :filter specification. Don't convert the menu if a filter was specified. Tell easy-menu-make-symbol not to check for MENU being an expression. (easy-menu-make-symbol): New arg NOEXP.
* (easy-menu-create-menu, easy-menu-do-add-item): Use keywordp.Dave Love2000-05-211-4/+4
|
* (easy-menu-create-menu): Process menuGerd Moellmann2000-04-091-2/+9
| | | | | | item help string. (easy-menu-do-add-item): Ditto. (easy-menu-define): Extend doc string.
* * emacs-lisp/debug.el (debugger-env-macro):Sam Steingold1999-11-121-8/+8
| | | | | | | Use the new backquote syntax. * emacs-lisp/easymenu.el (easy-menu-make-symbol): Use the new backquote syntax.
* (easy-menu-get-map-look-for-name): New fn.Karl Heuer1999-08-101-19/+43
| | | | | | | (easy-menu-get-map): New arg TO-MODIFY helps choose between local and global maps. (easy-menu-add-item): Pass TO-MODIFY arg to easy-menu-get-map. (easy-menu-change): Doc fix.
* (easy-menu-do-add-item): Support for new seperator types.Gerd Moellmann1999-07-211-9/+3
|
* (easy-menu-get-map): Don't crash if (current-local-map) is nil.Richard M. Stallman1999-02-181-2/+3
|
* (easy-menu-get-map): Fix bugs in prev change.Richard M. Stallman1999-01-151-8/+11
|
* (easy-menu-define): Doc fix.Richard M. Stallman1999-01-041-51/+127
| | | | | | | | | | | | (easy-menu-create-menu): New keyword :included. (easy-menu-do-add-item): New keyword :included. SUFFIX may be an expression, not only a string. Simulate style `button'. Use easy-menu-define-key-intern instead of easy-menu-define-key. (easy-menu-define-key-intern): New function. (easy-menu-add-item): Understand value returned from easy-menu-item-present-p and easy-menu-remove-item. (easy-menu-return-item): New function. (easy-menu-item-present-p, easy-menu-remove-item): Use it.
* (easy-menu-get-map): Change global map only if this menu exists in theRichard M. Stallman1998-12-291-3/+11
| | | | | global map already, and not in the local map. (easy-menu-do-add-item): Fix error message.
* (easy-menu-get-map): If MENU is nil, use global menu-bar map.Richard M. Stallman1998-12-251-28/+31
| | | | | (easy-menu-add-item, easy-menu-remove-item): Argument renamed. (easy-menu-item-present-p, easy-menu-get-map): Argument renamed.
* (easy-menu-do-add-item): Small simplifications.Richard M. Stallman1998-05-231-11/+30
| | | | | | (easy-menu-precalculate-equivalent-keybindings): New customization variable. (easy-menu-add): Precalculate key bindings if `easy-menu-precalculate-equivalent-keybindings' is on.
* (easy-menu-change): Add autoload cookie.Richard M. Stallman1998-05-111-0/+1
|
* (easy-menu-define-key): Fixed bug with BEFORERichard M. Stallman1998-04-281-12/+12
| | | | | argument. Now it works also if you repeat an identical call to easy-menu-define-key.
* Use new menu item format. Don't simulate button prefix.Richard M. Stallman1998-04-241-204/+150
| | | | | | | | | | | | | | | | (easy-menu-create-menu): Understand also keywords :active, :label and :visible. Don't worry about button prefix. (easy-menu-button-prefix): Modified value. (easy-menu-do-add-item): Extensive changes to use new menu item format. (easy-menu-define-key, easy-menu-always-true): New functions. (easy-menu-make-symbol): Don't use indirection for symbols. Property `menu-alias' not set. (easy-menu-filter, easy-menu-update-button): Deleted. (easy-menu-add-item): Don't worry about button prefix. (easy-menu-remove-item): Don't worry about button prefix. Use `easy-menu-define-key'. (easy-menu-is-button, easy-menu-have-button): Deleted. (easy-menu-real-binding, easy-menu-change-prefix): Deleted.
* (easy-menu-do-add-item):Richard M. Stallman1998-04-211-6/+9
| | | | | Do the right thing when nil is specified as criterion for activeness. Fix string used to report an invalid item.
* (easy-menu-change): Handle case of no keywords.Richard M. Stallman1998-03-031-1/+1
|
* (easy-menu-add-item); The BEFORE argument worksRichard M. Stallman1998-01-301-57/+58
| | | | | | | | now. Done by letting `easy-menu-do-add-item' handle it. (easy-menu-do-add-item): Take argument BEFORE instead of PREV. Inserts directly in keymap, instead of calling `define-key-after'. (easy-menu-create-menu): Don't reverse items as `easy-menu-do-add-item' now puts things at the end of keymaps.
* easy-menu-define): Use ` and , read-macrosRichard M. Stallman1998-01-271-108/+302
| | | | | | | | | | | | | | | | | | | instead of (` and (,. Implement :filter. Doc fix. (easy-menu-do-define): Call `easy-menu-create-menu' instead of `easy-menu-create-keymaps'. (easy-menu-create-keymaps): Replaced by `easy-menu-create-menu'. (easy-menu-create-menu): New public function. Replaces `easy-menu-create-keymaps', but with large changes. (easy-menu-button-prefix): New constant. (easy-menu-do-add-item, easy-menu-make-symbol): New functions. (easy-menu-update-button): Doc fix. (easy-menu-change): New optional argument BEFORE. Now just a call to `easy-menu-add-item'. (easy-menu-add-item, easy-menu-item-present-p) (easy-menu-remove-item): New public functions. (easy-menu-get-map, easy-menu-is-button-p, easy-menu-have-button-p) (easy-menu-real-binding, easy-menu-change-prefix, easy-menu-filter): New functions.
* (easy-menu-create-keymaps):Richard M. Stallman1997-09-051-1/+5
| | | | | If two distinct items have the same string, make different keyx events for them.
* (easy-menu-create-keymaps): If nil isRichard M. Stallman1997-08-281-4/+7
| | | | given as the enable condition, always disable the command.
* (easy-menu-create-keymaps): Menu item STYLE toggle (checkbox)Richard M. Stallman1997-01-021-28/+64
| | | | | | | | | | | | | and radio (radio button) are prefixed by "[X] " or "(*) " respectively, when selected and "[ ] " or "( ) ", when not selected. In a menu that contain these prefixes, " " is used as prefix for items that have no other prefix. (easy-menu-update-button): New function used as `menu-enable' property for checkboxes and radio buttons to update the prefixes. (easy-menu-define): Change documentation string to describe the new prefixes.
* (easy-menu-do-define): Use `x-popup-menu' instead ofRichard M. Stallman1996-09-111-1/+1
| | | | non-existing `easy-popup-menu'.
* (easy-menu-create-keymaps): Add menu-alias property.Richard M. Stallman1996-06-131-1/+2
|
* Update FSF's address.Erik Naggum1996-01-141-5/+8
|
* (easy-menu-define): Doc fix.Karl Heuer1996-01-091-1/+1
|