• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/src/

Lines Matching +defs:buffer +defs:menu

35 #include "buffer.h"
162 /* This vector is used as a buffer to record the events that were actually read
203 /* Nonzero means do menu prompting. */
207 /* Character to see next line of menu prompt. */
230 buffer, we know that the message comes from echo_kboard. */
234 /* The buffer used for echoing. Set in echo_now, reset in
239 /* Nonzero means disregard local maps for the menu bar. */
263 /* List of items that should move to the end of the menu bar. */
300 /* If non-nil, Voverriding_local_map applies to the menu bar. */
354 /* Last size recorded for a current buffer which is not a minibuffer. */
390 /* The buffer that was current when the last command was started. */
485 /* Circular buffer for pre-read keyboard input. */
490 If kbd_fetch_ptr == kbd_store_ptr, the buffer is empty.
546 /* menu item parts */
655 /* If non-nil, events produced by disabled menu items and tool-bar
738 char *buffer = (char *) alloca (size);
739 char *ptr = buffer;
756 if (size - (ptr - buffer) < nbytes)
758 int offset = ptr - buffer;
760 buffer = (char *) alloca (size);
761 ptr = buffer + offset;
774 if (size - (ptr - buffer) < len)
776 int offset = ptr - buffer;
778 buffer = (char *) alloca (size);
779 ptr = buffer + offset;
810 = concat2 (echo_string, make_string (buffer, ptr - buffer));
850 /* Put a dash at the end of the buffer temporarily,
900 /* Record in what buffer we echoed, and from which kboard. */
1049 Lisp_Object buffer;
1060 && current_buffer != XBUFFER (XWINDOW (selected_window)->buffer))
1061 buffer = Fcurrent_buffer ();
1063 buffer = Qnil;
1070 Fcons (buffer, single_kboard ? Qt : Qnil));
1511 struct buffer *prev_buffer = NULL;
1555 /* Make sure the current window's buffer is selected. */
1556 if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer)
1557 set_buffer_internal (XBUFFER (XWINDOW (selected_window)->buffer));
1634 if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer)
1635 set_buffer_internal (XBUFFER (XWINDOW (selected_window)->buffer));
1644 /* -1 means read_key_sequence got a menu that was rejected.
1664 struct buffer *b;
1666 b = XBUFFER (XWINDOW (selected_window)->buffer);
2094 /* Pretend the area doesn't exist if the buffer is not
2363 If OBJECT is a buffer, POS is the position in the buffer where the
2367 and POS is the position in the overlay's buffer under the mouse.
2494 /* The arguments MAPS and NMAPS are for menu prompting.
2504 if we used a mouse menu to read the input, or zero otherwise. If
2511 Value is t if we showed a menu and the user rejected it. */
2733 /* Try reading a character via menu prompting in the minibuf.
2736 menu prompting. If EVENT_HAS_PARAMETERS then we are reading
2737 after a mouse event so don't try a minibuf menu. */
2741 /* Don't bring up a menu if we already have another event. */
2835 This is because we are probably about to display a menu,
2865 /* Try reading using an X menu.
2875 /* Don't bring up a menu if we already have another event. */
2894 /* Slow down auto saves logarithmically in size of current buffer,
3137 /* If this event is a mouse click in the menu bar,
3138 return just menu-bar for now. Modify the mouse click event
3148 /* Handle menu-bar events:
3149 insert the dummy prefix event `menu-bar'. */
3152 /* Change menu-bar to (menu-bar) as the event "position". */
3382 /* Record a key that came from a mouse menu.
3575 struct buffer *old = current_buffer;
3616 /* If the buffer contains only FOCUS_IN_EVENT events, and
3821 /* Don't let the very last slot in the buffer become full,
3823 and that is indistinguishable from an empty buffer.
3860 /* Don't let the very last slot in the buffer become full, */
3876 Lisp object where the help was found (a buffer, a string, an
3877 overlay, or nil if neither from a string nor from a buffer. POS is
3920 /* Discard any mouse events in the event buffer by setting them to
3945 buffer, not counting `NO_EVENT's.
3983 /* Read one event from the event buffer, waiting if necessary.
4101 /* Remove it from the buffer before processing it,
4178 (They shouldn't otherwise be found in the buffer,
4182 mouse events during a popup-menu call. */
4251 /* If this was a menu selection, then set the flag to inhibit
4253 we're returning is (menu-bar), though; that indicates the
4254 beginning of the menu sequence, and we might as well leave
4351 /* Remove it from the buffer before processing it,
5025 "menu",
5349 movement buffer, which should have a movement event in it.
5502 in a menu (non-toolkit version). */
5506 /* In the non-toolkit version, clicks on the menu bar
5507 are ordinary button events in the event buffer.
5508 Distinguish them, and invoke the menu.
5510 (In the toolkit version, the toolkit handles the menu bar
5521 /* Activate the menu bar on the down event. If the
5522 up event comes in before the menu code can deal with it,
5528 /* Find the menu bar item under `column'. */
5651 menu item. It would be an annoyance to treat the
5652 release of the button that chose the menu item as a
5687 not buffer position) in which case it is a drag, not
5689 /* FIXME: OTOH if the buffer position has changed
5861 `top' top of buffer
5862 `bottom' bottom of buffer
5983 `(menu_bar)' because the code in keyboard.c for menu
6786 /* Put a BUFFER_SWITCH_EVENT in the buffer
6787 so that read_key_sequence will notice the new current buffer. */
6801 /* We don't need a buffer-switch event unless Emacs is waiting for input.
7217 /* Return a vector of menu items for a menu bar, appropriate
7218 to the current buffer. Each item has three elements in the vector:
7263 the initial keymaps from the current buffer. */
7281 Note that menu-bar bindings in the local-map and keymap
7283 recognized when the menu-bar (or mode-line) is updated,
7299 /* Look up in each map the dummy prefix key `menu-bar'. */
7383 discard any previously made menu bar item. */
7406 parse_menu_item, so that if it turns out it wasn't a menu item,
7407 it still correctly hides any further menu item. */
7460 /* If we got a quit from within the menu computation,
7469 went wrong). Used to evaluate dynamic parts of menu items. */
7482 /* This function parses a menu item and leaves the result in the
7484 ITEM is a key binding, a possible menu item.
7486 evaluate dynamic expressions in the menu item.
7487 INMENUBAR is > 0 when this is considered for an entry in a menu bar
7489 INMENUBAR is < 0 when this is considered for an entry in a keyboard menu.
7490 parse_menu_item returns true if the item is a menu item and false
7531 /* Old format menu item. */
7566 /* New format menu item. */
7641 return 0; /* not a menu item */
7673 return 0; /* Ignore disabled items in menu bar. */
7693 /* At the top level in the menu bar, do likewise for commands also.
7694 The menu bar does not display equivalent key bindings anyway.
7814 /* Include this when menu help is implemented.
7998 ITEM is a list `(menu-item CAPTION BINDING PROPS...)'.
8047 /* Defininition looks like `(menu-item CAPTION BINDING PROPS...)'.
8049 `menu-item' or whose rest following `tool-bar-item' is not a
8226 Return t if we displayed a menu but the user rejected it.
8232 if we used a mouse menu to read the input, or zero otherwise. If
8269 /* Get the menu name from the first map that has one (a prompt string). */
8283 use a real menu for mouse selection. */
8288 /* Display the menu and get the selection. */
8311 to indicate that they came from a mouse menu,
8339 /* Buffer in use so far for the minibuf prompts for menu keymaps.
8342 /* Size of that buffer. */
8359 char *menu;
8367 /* Make sure we have a big enough buffer for the menu text. */
8379 menu = read_char_minibuf_menu_text;
8381 /* Get the menu name from the first map that has one (a prompt string). */
8394 strcpy (menu, SDATA (name));
8396 menu[nlength++] = ':';
8397 menu[nlength++] = ' ';
8398 menu[nlength] = 0;
8513 strcpy (menu + i, ", ");
8527 bcopy (SDATA (desc), menu + i, thiswidth);
8529 strcpy (menu + i, " = ");
8537 bcopy (SDATA (s), menu + i, thiswidth);
8539 menu[i] = 0;
8545 strcpy (menu + i, "...");
8562 message2_nolog (menu, strlen (menu),
8566 is pressed. Help characters are not recorded because menu prompting
8649 /* Positions [START, END) in the key sequence buffer
8706 KEYBUF is the buffer holding the input events.
8775 storing it in KEYBUF, a buffer of size BUFSIZE.
8778 Return -1 if the user rejected a command menu.
8783 These include any minor mode keymaps active in the current buffer,
8784 the current buffer's local map, and the global map.
8802 with respect to the buffer clicked on, not the current buffer.
8809 from the selected window's buffer. */
8827 /* The length of the echo buffer when we started reading, and
8908 struct buffer *starting_buffer;
8937 /* This doesn't put in a dash if the echo buffer is empty, so
8976 the initial keymaps from the current buffer. */
9171 /* read_char returns t when it shows a menu and the user rejects it.
9192 /* If the current buffer has been changed from under us, the
9199 /* Reset the current buffer from the selected window
9207 if (XBUFFER (XWINDOW (selected_window)->buffer) != current_buffer)
9208 Fset_buffer (XWINDOW (selected_window)->buffer);
9258 are read using the keymaps of the buffer clicked on, not
9259 the current buffer. So we may have to switch the buffer
9292 read using the keymaps in the buffer clicked on,
9293 not the current buffer. If we're at the
9297 && BUFFERP (XWINDOW (window)->buffer)
9298 && XBUFFER (XWINDOW (window)->buffer) != current_buffer)
9304 /* Arrange to go back to the original buffer once we're
9307 save point as well as the current buffer; we don't
9318 set_buffer_internal (XBUFFER (XWINDOW (window)->buffer));
9453 /* Handle menu-bar events:
9454 insert the dummy prefix event `menu-bar'. */
9647 But when a mouse popup menu is being used,
9649 event that preceded the first level of menu. */
9835 using the keymaps of the buffer of the window clicked in, not the buffer
10491 doc: /* Discard the contents of the terminal input buffer.
10966 doc: /* Return position information for buffer POS in WINDOW.
10972 to the given buffer position:
11244 Qmenu_enable = intern ("menu-enable");
11246 Qmenu_alias = intern ("menu-alias");
11273 Qmenu_bar = intern ("menu-bar");
11440 doc: /* Last input event in a command, except for mouse menu events.
11442 this variable holds the actual mouse event that led to the menu,
11553 DEFVAR_BOOL ("inhibit-local-menu-bar-menus", &inhibit_local_menu_bar_menus,
11554 doc: /* *Non-nil means inhibit local map menu bar menus. */);
11624 DEFVAR_BOOL ("menu-prompting", &menu_prompting,
11628 The menu is displayed on the screen
11631 Otherwise, menu prompting uses the echo area. */);
11634 DEFVAR_LISP ("menu-prompt-more-char", &menu_prompt_more_char,
11635 doc: /* Character to see next line of menu prompt.
11636 Type this character while in a menu prompt to rotate around the lines of it. */);
11685 DEFVAR_LISP ("lucid-menu-bar-dirty-flag", &Vlucid_menu_bar_dirty_flag,
11686 doc: /* Non-nil means menu bar, specified Lucid style, needs to be recomputed. */);
11689 DEFVAR_LISP ("menu-bar-final-items", &Vmenu_bar_final_items,
11690 doc: /* List of menu bar items to move to the end of the menu bar.
11691 The elements of the list are event types that may have menu bar bindings. */);
11698 buffer's local map, and the minor mode keymaps and text property keymaps.
11707 buffer's local map, the minor mode keymaps, and char property keymaps. */);
11710 DEFVAR_LISP ("overriding-local-map-menu-flag", &Voverriding_local_map_menu_flag,
11711 doc: /* Non-nil means `overriding-local-map' applies to the menu bar.
11712 Otherwise, the menu bar continues to reflect the buffer's local map
11830 doc: /* If non-nil, don't ignore events produced by disabled menu items and tool-bar.
11832 Help functions bind this to allow help on disabled menu items