1. 25 Jan, 2011 1 commit
  2. 16 Jan, 2011 1 commit
  3. 09 Jan, 2011 1 commit
    • Chong Yidong's avatar
      Tweaks to tool-bar for default, VC-dir, Compile, and Info. · 900503ae
      Chong Yidong authored
      * tool-bar.el (tool-bar-setup): Remove Help button.  Remove label
      from Search and add a label to Undo.
      * vc/vc-dir.el (vc-dir-tool-bar-map): Rearrange, removing
      inappropriate buttons and adding :vert-only tags.
      * progmodes/compile.el (compilation-mode-tool-bar-map): Adjust to
      removal of Help tool-bar button.  Remove Undo button for space.
      * info.el (info-tool-bar-map): Add :vert-only tags.
  4. 02 Jan, 2011 1 commit
  5. 28 Dec, 2010 1 commit
    • Chong Yidong's avatar
      Fix 2010-12-20 change to tool-bar.el. · c940c054
      Chong Yidong authored
      * tool-bar.el (tool-bar-setup): Remove :enable conditions, which
      are handled by the menu-bar entries.  As before, don't use
      :visibile to avoid changing the tool-bar.
  6. 20 Dec, 2010 1 commit
    • Chong Yidong's avatar
      Implement tool-bar separators for non-GTK tool-bars. · 94975270
      Chong Yidong authored
      * lisp/tool-bar.el (tool-bar--image-expression): New function.
      (tool-bar-local-item, tool-bar--image-exp): Use it.
      (tool-bar-setup): Initialize tool-bar-separator-image-expression.
      Use :enable instead of :visible to avoid changing the tool-bar
      configuration unnecessarily.
      * src/keyboard.c (Vtool_bar_separator_image_expression): New variable.
      (parse_tool_bar_item): Use it to obtain image separators for
      displays not using native tool-bar separators.
      * src/xdisp.c (build_desired_tool_bar_string): Don't handle separators
      specially, since this is now done in parse_tool_bar_item.
      * lisp/info.el (info-tool-bar-map): Add separators.
  7. 17 Dec, 2010 1 commit
    • Chong Yidong's avatar
      Support for menu separators in the GTK tool-bar. · 4039c786
      Chong Yidong authored
      * src/gtkutil.c (XG_BIN_CHILD): New macro.
      (xg_get_menu_item_label, xg_update_menubar)
      (xg_update_menu_item, xg_tool_bar_menu_proxy)
      (xg_show_toolbar_item, update_frame_tool_bar): Use it.
      (separator_names, xg_separator_p): Move to keyboard.c.
      (create_menus, xg_update_submenu, update_frame_tool_bar): Use
      * src/keyboard.c (parse_tool_bar_item): Allow menu separators in
      tool-bar maps.
      (menu_separator_name_p): New function, from gtkutil.c.
      (separator_names): Move from gtkutil.c.
      * src/keyboard.h (menu_separator_name_p): Add prototype.
      * src/nsmenu.m (name_is_separator): Function deleted.
      (addItemWithWidgetValue): Use menu_separator_name_p.
      * src/w32menu.c (name_is_separator): Function deleted.
      (add_menu_item): Use menu_separator_name_p.
  8. 21 Nov, 2010 1 commit
  9. 20 Nov, 2010 1 commit
    • Jan Djärv's avatar
      Add keyword :vert-only for tool bar items with labels not shown horizontally. · d2bd5189
      Jan Djärv authored
      * lisp/info.el (info-tool-bar-map): Add some :vert-only keywords.
      * lisp/tool-bar.el (tool-bar-setup): Add some :vert-only keywords.
      * src/dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
      * src/gtkutil.c (xg_make_tool_item): Take vert_only as argument.
      Set important to ! vert_only.
      (xg_show_toolbar_item): Don't show label horizontally if
      tool item isn't important.
      (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
      xg_make_tool_item, or update important on existing tool item.
      * src/keyboard.c (QCvert_only): New variable.
      (parse_tool_bar_item): Check for QCvert_only.
      (syms_of_keyboard): Initialize QCvert_only.
  10. 29 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Remove duplicate Lisp definitions of define-minor-mode variables defined in C. · 9d794026
      Glenn Morris authored
      * lisp/abbrev.el (abbrev-mode):
      * lisp/composite.el (auto-composition-mode):
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/simple.el (transient-mark-mode):
      * lisp/tool-bar.el (tool-bar-mode): Adjust the define-minor-mode calls so
      that they do not define the associated variables twice.
      * lisp/simple.el (transient-mark-mode): Remove defvar.
      * lisp/composite.el (auto-composition-mode): Make variable auto-buffer-local.
      * lisp/cus-start.el: Add transient-mark-mode, menu-bar-mode, tool-bar-mode.
      Handle multiple groups, and also custom-delayed-init-variables.
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
      * src/buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
      * src/frame.c (syms_of_frame) <tool-bar-mode>: Move docs here from Lisp.
  11. 21 Sep, 2010 1 commit
  12. 29 Aug, 2010 1 commit
  13. 05 Jul, 2010 1 commit
  14. 27 Jun, 2010 1 commit
    • Chong Yidong's avatar
      Change default-frame-alist and menu/tool-bar-mode interaction (Bug#2249). · 6431f2e6
      Chong Yidong authored
      Don't add entries for `menu-bar-lines' and `tool-bar-lines' to
      `default-frame-alist' and `initial-frame-alist' at startup.
      Instead, use X resources to update the `menu-bar-mode' and
      `tool-bar-mode' variables at startup, and use them as defaults during
      frame creation.
      * lisp/frame.el (frame-notice-user-settings): Don't change
      default-frame-alist based on menu-bar-mode and tool-bar-mode, or
      vice versa.
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/tool-bar.el (tool-bar-mode): Don't change default-frame-alist.
      Set init-value to t.
      * lisp/startup.el (command-line): Use X resources to set the value of
      menu-bar-mode and tool-bar-mode, before calling frame-initialize.
      * src/frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
      * src/w32fns.c (Fx_create_frame):
      * src/nsfns.m (Fx_create_frame): Likewise.
      * src/xfns.c (Fx_create_frame): Don't consult X resouces when setting
      menu-bar-lines and tool-bar-lines.  Use menu-bar-mode and
      tool-bar-mode, which are now set using these X resources at
      startup, to determine the defaults.
  15. 25 Apr, 2010 1 commit
  16. 23 Apr, 2010 1 commit
  17. 20 Apr, 2010 1 commit
    • Jan Djärv's avatar
      Gtk tool bars can be text, icons with text or just icons. · f904c0f9
      Jan Djärv authored
      * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
      current_tool_bar_style are new.
      (store_config_changed_event): Rename from store_font_changed_event.
      (XSETTINGS_TOOL_BAR_STYLE): New define.
      (SEEN_FONT, SEEN_TB_STYLE): New enum values.
      (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
      (something_changedCB): store_font_changed_event is now
      (parse_settings): Rename from parse_xft_settings.  Read
      non-xft xsettings outside #ifdef HAVE_XFT.
      (read_settings): Renamed from read_xft_settings.
      (apply_xft_settings): Take current settings as parameter.  Do not
      call read_(xft)_settings.
      (read_and_apply_settings): New function.
      (xft_settings_event): Do non-xft stuff out of HAVE_XFT.  Call
      read_and_apply_settings if there are settings to be read.
      (init_xsettings): Renamed from init_xfd_settings.
      Call read_and_apply_settings unconditionally.
      (xsettings_initialize): Call init_xsettings.
      (Ftool_bar_get_system_style): New function.
      (syms_of_xsettings): Define Qmonospace_font_name and
      Qtool_bar_style.  Initialize current_tool_bar_style to nil.
      defsubr Stool_bar_get_system_style. Fprovide on
      * xsettings.h (Ftool_bar_get_system_style): Declare.
      * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
      Qtext, Qboth, Qboth_horiz are new.
      (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
      Vtool_bar_style, tool_bar_max_label_size.
      * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
      * keyboard.c: QClabel is new.
      (parse_tool_bar_item): Take out QClabel from tool bar items.
      Try to construct a label if ther is no QClabel.
      (syms_of_keyboard): Intern :label as QClabel.
      * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
      (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
      * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
      * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
      (xg_make_tool_item, xg_show_toolbar_item): New function.
      (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
      Call xg_make_tool_item to make a tool bar item.
      Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.
      * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
      into account for toolbars.
      * vc-dir.el (vc-dir-tool-bar-map): Add :label on some tool bar items.
      * tool-bar.el (tool-bar-setup): Add :label on some tool bar items.
      * loadup.el: Load dynamic-setting.el if feature dynamic-setting
      is present.
      * info.el (info-tool-bar-map): Add labels.
      * cus-start.el (all): Add tool-bar-style and tool-bar-max-label-size.
      * cus-edit.el (custom-commands): Add labels for tool bar.
      (custom-buffer-create-internal, Custom-mode): Adjust for
      labels in custom-commands.
      * dynamic-setting.el: Renamed from font-setting.el.
  18. 13 Jan, 2010 1 commit
  19. 06 Nov, 2009 1 commit
    • Dan Nicolaescu's avatar
      * textmodes/tex-mode.el (tex-alt-dvi-print-command) · 1e8780b1
      Dan Nicolaescu authored
      (tex-dvi-print-command, tex-bibtex-command, tex-start-commands)
      (tex-start-options, slitex-run-command, latex-run-command)
      (tex-run-command, tex-directory):
      * textmodes/ispell.el (ispell-html-skip-alists)
      (ispell-tex-skip-alists, ispell-tex-skip-alists):
      * textmodes/fill.el (adaptive-fill-first-line-regexp):
      * textmodes/dns-mode.el (auto-mode-alist):
      * progmodes/python.el (interpreter-mode-alist):
      * progmodes/etags.el (tags-compression-info-list):
      * progmodes/etags.el (tags-file-name):
      * net/browse-url.el (browse-url-galeon-program)
      * mail/sendmail.el (mail-signature-file)
      * international/mule-conf.el (eight-bit):
      * international/latexenc.el (latex-inputenc-coding-alist):
      * international/fontset.el (x-pixel-size-width-font-regexp):
      * emacs-lisp/warnings.el (warning-type-format):
      * emacs-lisp/trace.el (trace-buffer):
      * emacs-lisp/lisp-mode.el (lisp-interaction-mode-map)
      * calendar/holidays.el (holiday-solar-holidays)
      (holiday-bahai-holidays, holiday-islamic-holidays)
      (holiday-christian-holidays, holiday-hebrew-holidays)
      (hebrew-holidays-4, hebrew-holidays-3, hebrew-holidays-2)
      (hebrew-holidays-1, holiday-oriental-holidays)
      * x-dnd.el (x-dnd-known-types):
      * tool-bar.el (tool-bar):
      * startup.el (site-run-file):
      * shell.el (shell-dumb-shell-regexp):
      * rfn-eshadow.el (file-name-shadow-tty-properties)
      * paths.el (remote-shell-program, news-directory):
      * mouse.el ([C-down-mouse-3]):
      * menu-bar.el (menu-bar-tools-menu):
      * jka-cmpr-hook.el (jka-compr-load-suffixes)
      (jka-compr-mode-alist-additions, jka-compr-compression-info-list)
      * isearch.el (search-whitespace-regexp):
      * image-file.el (image-file-name-extensions):
      * find-dired.el (find-ls-option):
      * files.el (directory-listing-before-filename-regexp)
      (directory-free-space-args, insert-directory-program)
      (list-directory-brief-switches, magic-fallback-mode-alist)
      (magic-fallback-mode-alist, auto-mode-interpreter-regexp)
      * faces.el (face-x-resources, x-font-regexp, x-font-regexp-head)
      (x-font-regexp-slant, x-font-regexp-weight, face-x-resources)
      (face-font-registry-alternatives, face-font-registry-alternatives)
      * facemenu.el (facemenu-add-new-face, facemenu-background-menu)
      (facemenu-foreground-menu, facemenu-face-menu):
      * epa-hook.el (epa-file-name-regexp):
      * dnd.el (dnd-protocol-alist):
      * textmodes/rst.el (auto-mode-alist):
      * button.el (default-button):  Purecopy strings.
  20. 10 Jan, 2009 1 commit
  21. 05 Jan, 2009 1 commit
  22. 27 Nov, 2008 1 commit
    • Chong Yidong's avatar
      (tool-bar-find-image-cache): Var deleted. · b8067901
      Chong Yidong authored
      (tool-bar-find-image): Function deleted.
      (tool-bar-local-item, tool-bar-local-item-from-menu): Use
      find-image instead of tool-bar-find-image.
      (tool-bar-keymap-cache): New hash table.
      (tool-bar-make-keymap): Use it.
      (tool-bar-make-keymap-1): Move body of tool-bar-make-keymap here.
  23. 12 Oct, 2008 1 commit
  24. 11 Oct, 2008 1 commit
    • Chong Yidong's avatar
      (tool-bar-local-item) · afb465eb
      Chong Yidong authored
      (tool-bar-local-item-from-menu): Put the check for number of
      display colors into the image expression.
      (tool-bar-setup): Don't be a no-op on ttys.
  25. 09 Oct, 2008 1 commit
  26. 26 Aug, 2008 1 commit
    • Juanma Barranquero's avatar
      Fix typos (sync from the trunk). · d36b11e2
      Juanma Barranquero authored
      * facemenu.el (facemenu-unlisted-faces): Fix obsolescence declaration.
      * hi-lock.el (hi-lock-mode): Fix typo in docstring.
      * icomplete.el (icomplete-compute-delay, icomplete-get-keys): Doc fixes.
        (icomplete-delay-completions-threshold): Fix typo in docstring.
      * speedbar.el (speedbar-stealthy-function-list)
        (speedbar-verbosity-level, speedbar-supported-extension-expressions)
        (speedbar-update-current-file, speedbar-add-indicator)
        (speedbar-tag-expand): Reflow docstrings.
        (speedbar-use-imenu-flag, speedbar-use-tool-tips-flag)
        (speedbar-ignored-directory-regexp, speedbar-file-unshown-regexp)
        (speedbar-file-regexp, speedbar-message, speedbar-item-info)
        (speedbar-files-item-info, speedbar-fetch-replacement-function)
        (speedbar-generic-list-positioned-group-p, speedbar-insert-generic-list)
        (speedbar-extract-one-symbol, speedbar-recenter-to-top)
        (speedbar-recenter, speedbar-separator-face): Fix typos in docstrings.
        (speedbar-ignored-directory-expressions, speedbar-handle-delete-frame)
        (speedbar-show-info-under-mouse, speedbar-directory-buttons)
        (speedbar-check-vc-this-line, speedbar-files-line-directory)
        (speedbar-buffer-buttons, speedbar-buffer-buttons-temp)
        (speedbar-buffers-line-directory): Doc fixes.
      * tool-bar.el (tool-bar-add-item): Fix typo in docstring.
      * emacs-lisp/edebug.el (edebug-unwrap*, edebug-signal)
        (edebug-restore-status): Doc fixes.
        (edebug-gensym, edebug-top-level-nonstop, edebug-eval-display)
        (edebug-eval-result-list, edebug-eval-redisplay, edebug)
        (edebug-trace): Fix typos in docstrings.
      * emulation/tpu-edt.el (tpu-match-beginning, tpu-match-end)
        (tpu-check-match, tpu-goto-breadcrumb, tpu-reset-screen-size)
        (tpu-toggle-overwrite-mode, tpu-include, tpu-get, tpu-what-line)
        (tpu-insert-escape, tpu-insert-formfeed, tpu-end-define-macro-key)
        (tpu-check-search-case, tpu-select, tpu-unselect, tpu-trim-line-ends)
        (tpu-toggle-control-keys): Fix typos in docstrings.
        (tpu-kill-buffer): Doc fix.
        (tpu-make-file-buffer-list, tpu-toggle-regexp, tpu-cut)
        (tpu-append-region, tpu-delete-current-char, tpu-emacs-replace):
        Reflow docstrings.
      * eshell/em-smart.el (eshell-review-quick-commands): Doc fix.
      * eshell/esh-arg.el (eshell-quote-backslash): Fix typo in docstring.
      * play/solitaire.el (solitaire, solitaire-mode-map, solitaire-mode-hook)
        (solitaire-mode, solitaire, solitaire-solve): Fix typos in docstrings.
      * progmodes/gdb-ui.el (gdb-source-info): Fix typo in docstring.
      * progmodes/python.el (python-comment-line-p, python-blank-line-p)
        (python-skip-out): Doc fixes.
  27. 12 Jun, 2008 1 commit
  28. 13 May, 2008 2 commits
  29. 07 May, 2008 1 commit
    • Stefan Monnier's avatar
      Choose images dynamically. · c8fcd943
      Stefan Monnier authored
      (tool-bar-make-keymap, tool-bar-find-image): New function.
      (tool-bar-find-image-cache): New var.
      (tool-bar-local-item, tool-bar-local-item-from-menu):
      Don't select the image yet, do it later in tool-bar-make-keymap.
  30. 06 May, 2008 1 commit
  31. 10 Apr, 2008 1 commit
  32. 27 Feb, 2008 1 commit
  33. 07 Jan, 2008 1 commit
  34. 25 Jul, 2007 1 commit
  35. 21 Jan, 2007 1 commit
  36. 01 May, 2006 1 commit
  37. 26 Mar, 2006 2 commits
    • Karoly Lorentey's avatar
      Fix tool-bar and menu-bar toggles in Show/Hide menu to reflect the state of the current frame. · 6a5af08f
      Karoly Lorentey authored
      * lisp/tool-bar.el (toggle-tool-bar-mode-from-frame): New function.
      * lisp/menu-bar.el (toggle-menu-bar-mode-from-frame): New function.
        (menu-bar-showhide-menu): Use them to change "Menu-bar" and
        "Tool-bar" toggles to reflect the state of the current frame.
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-537
    • Karoly Lorentey's avatar
      Fix toolbars on X frames when Emacs is started on a tty. (Reported by Richard Lewis.) · 095fe281
      Karoly Lorentey authored
      * lisp/faces.el (x-create-frame-with-faces): Remove bogus check for first
        frame.  Call `tool-bar-setup'.
      * lisp/frame.el (window-system-default-frame-alist): Enhance doc string.
      * lisp/frame.el (frame-notice-user-settings): Don't put 'tool-bar-lines
        in `default-frame-alist' when initial frame is on a tty.
      * lisp/frame.el (modify-all-frames-parameters): Simplify using
        `assq-delete-all'.  Remove specified parameters from
      * lisp/fringe.el (set-fringe-mode): Simplify and fix using
      * lisp/menu-bar.el (menu-bar-mode): Ditto.
      * lisp/scroll-bar.el (set-scroll-bar-mode): Ditto.
      * lisp/tool-bar.el (tool-bar-mode): Ditto.  Remove 'tool-bar-map length
        check before calling `tool-bar-setup'.
      * lisp/tool-bar.el (tool-bar-setup): New variable.
      * lisp/tool-bar.el (tool-bar-setup): Use it to guard against multiple
        calls.  Add optional frame parameter, and select that frame before
        adding items.
      * src/frame.c (syms_of_frame): Enhance doc string of `default-frame-alist'.
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-536
  38. 06 Feb, 2006 1 commit