1. 22 Sep, 2011 1 commit
  2. 11 Sep, 2011 1 commit
    • Chong Yidong's avatar
      Change modes that used same-window-* vars to use switch-to-buffer. · 37ac18a3
      Chong Yidong authored
      * cmuscheme.el (run-scheme, switch-to-scheme):
      * ielm.el (ielm):
      * shell.el (shell):
      * net/rlogin.el (rlogin):
      * net/telnet.el (telnet, rsh):
      * progmodes/inf-lisp.el (inferior-lisp): Use switch-to-buffer.
      
      * cus-edit.el (customize-group, custom-buffer-create)
      (customize-browse, custom-buffer-create-other-window): Use
      switch-to-buffer or switch-to-buffer-other-window.
      
      * info.el (info, Info-find-node, Info-revert-find-node, Info-next)
      (Info-prev, Info-up, Info-speedbar-goto-node)
      (info-display-manual): Use switch-to-buffer.
      (Info-speedbar-goto-node): Use switch-to-buffer-other-frame.
      
      * lisp/gnus/message.el (message-pop-to-buffer): Default to switch-to-buffer.
      (message-mail-other-window, message-mail-other-frame)
      (message-news-other-window, message-news-other-frame): Use
      switch-to-buffer-other-frame and switch-to-buffer-other-window instead
      of setting buffer display varibles.
      
      * mail/sendmail.el (mail): Use switch-to-buffer.
      (mail-recover): Use switch-to-buffer-other-window.
      
      * progmodes/gdb-mi.el (gdb-restore-windows, gdb-setup-windows):
      Use switch-to-buffer.
      37ac18a3
  3. 10 Sep, 2011 2 commits
    • Chong Yidong's avatar
      Fix info and customize *-other-window commands. · 919a69aa
      Chong Yidong authored
      * lisp/cus-edit.el (customize-group): New argument.
      (customize-group-other-window): Use it.
      (customize-face, customize-face-other-window): Likewise.
      (custom-buffer-create-other-window): Use pop-to-buffer directly.
      
      * lisp/info.el (info-setup): New function.
      (info-other-window, info): Call it.
      919a69aa
    • Chong Yidong's avatar
      Tweaks to display-buffer default actions; remove same-window-* autoload forms. · 8319e0bf
      Chong Yidong authored
      * lisp/window.el (display-buffer-alist): Add entry for buffers
      previously handled same-window-*.
      (display-buffer-alist, display-buffer-default-action)
      (display-buffer-overriding-action): Mark as risky.
      (display-buffer-alist): Document action function changes.
      (display-buffer--same-window-action)
      (display-buffer--other-frame-action): New variables.
      (switch-to-buffer, display-buffer-other-frame): Use them.
      (display-buffer): Rename reuse-frame entry to reusable-frames.
      (display-buffer-reuse-selected-window): Function deleted.
      (display-buffer-reuse-window): Handle reusable-frames alist entry.
      If it's omitted, check pop-up-frames/display-buffer-reuse-frames.
      (display-buffer-special): New function.
      (display-buffer--maybe-pop-up-frame-or-window): Rename from
      display-buffer-reuse-or-pop-window.  Split off special-display
      part into display-buffer-special.
      (display-buffer-use-some-window): Don't perform any special
      pop-up-frames handling.
      (pop-to-buffer): Use window-normalize-buffer-to-switch-to.
      
      * lisp/cmuscheme.el:
      * lisp/ielm.el:
      * lisp/shell.el:
      * lisp/mail/sendmail.el:
      * lisp/progmodes/inf-lisp.el: Don't set same-window-buffer-names.
      
      * lisp/cus-edit.el:
      * lisp/info.el:
      * lisp/net/rlogin.el:
      * lisp/net/telnet.el:
      * lisp/progmodes/gud.el: Don't set same-window-regexps.
      8319e0bf
  4. 03 Aug, 2011 1 commit
  5. 02 Aug, 2011 1 commit
  6. 11 Jul, 2011 2 commits
  7. 07 Jul, 2011 1 commit
  8. 30 Jun, 2011 1 commit
    • Chong Yidong's avatar
      Avoid calling customize-save-variable during startup (Bug#8720). · 658d8eb8
      Chong Yidong authored
      * lisp/cus-edit.el (customize-push-and-save): New function.
      
      * lisp/files.el (hack-local-variables-confirm): Use it.
      
      * lisp/custom.el (load-theme): New arg NO-CONFIRM.  Use
      customize-push-and-save (Bug#8720).
      (custom-enabled-themes): Doc fix.
      
      * lisp/cus-theme.el (customize-create-theme)
      (custom-theme-merge-theme): Callers to load-theme changed.
      658d8eb8
  9. 20 Jun, 2011 1 commit
    • Stefan Monnier's avatar
      Use completion-at-point rather than completion-in-region. · bcd70d97
      Stefan Monnier authored
      * lisp/wid-edit.el: Use lexical scoping and move towards completion-at-point.
      (widget-complete): Use new :completion-function property.
      (widget-completions-at-point): New function.
      (default): Use :completion-function instead of :complete.
      (widget-default-completions): Rename from widget-default-complete, rewrite.
      (widget-string-complete, widget-file-complete, widget-color-complete):
      Remove functions.
      (file, symbol, function, variable, coding-system, color):
      * lisp/international/mule-cmds.el (default-input-method, charset)
      (language-info-custom-alist):
      * lisp/cus-edit.el (face): Use new property :completions.
      
      * lisp/progmodes/pascal.el (pascal-completions-at-point): New function.
      (pascal-mode): Use it.
      (pascal-mode-map): Use completion-at-point.
      (pascal-toggle-completions): Make obsolete.
      (pascal-complete-word, pascal-show-completions):
      * lisp/progmodes/octave-mod.el (octave-complete-symbol):
      Redefine as obsolete alias.
      * lisp/progmodes/octave-inf.el (inferior-octave-completion-at-point):
      Signal absence of completion info for old Octave,
      (inferior-octave-complete): Redefine as obsolete alias.
      * lisp/progmodes/meta-mode.el: Use lexical-binding and completion-at-point.
      (meta-completions-at-point): Rename from meta-complete-symbol and
      adapt it for use on completion-at-point-functions.
      (meta-common-mode): Use it.
      (meta-looking-at-backward, meta-match-buffer): Remove.
      (meta-complete-symbol): Redefine as obsolete alias.
      (meta-common-mode-map): Use completion-at-point.
      * lisp/progmodes/make-mode.el: Use lexical-binding and completion-at-point.
      (makefile-mode-map): Use completion-at-point.
      (makefile-completions-at-point): Rename from makefile-complete and
      adapt it for use on completion-at-point-functions.
      (makefile-mode): Use it.
      (makefile-complete): Redefine as obsolete alias.
      bcd70d97
  10. 19 Apr, 2011 1 commit
  11. 10 Mar, 2011 1 commit
  12. 06 Mar, 2011 1 commit
  13. 04 Mar, 2011 1 commit
  14. 25 Jan, 2011 1 commit
  15. 15 Jan, 2011 1 commit
  16. 09 Jan, 2011 1 commit
    • Chong Yidong's avatar
      Fix 2010-03-12T22:56:30Z!cyd@stupidchicken.com change -- rename :on/off-image... · 895123f5
      Chong Yidong authored
      Fix 2010-03-12T22:56:30Z!cyd@stupidchicken.com change -- rename :on/off-image widget props to :on/off-glyph.
      
      * wid-edit.el (visibility): Replace :on-image and :off-image
      widget properties with :on-glyph and :off-glyph, for consistency
      with the `visibility' widget.
      (widget-toggle-value-create, widget-visibility-value-create):
      Merge into a single function `widget-toggle-value-create'.
      
      * cus-edit.el (custom-variable-value-create, custom-visibility)
      (custom-face-edit-value-create, custom-face-value-create): Replace
      :on-image and :off-image widget properties with :on-glyph and
      :off-glyph, for consistency with the `visibility' widget.
      895123f5
  17. 02 Jan, 2011 1 commit
  18. 08 Dec, 2010 1 commit
  19. 17 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Allow Custom settings to be migrated into a custom theme. · 29a4c45b
      Chong Yidong authored
      * cus-theme.el (custom-theme--migrate-settings): New var.
      (customize-create-theme): Allow editing the `user' theme.
      (custom-theme-add-variable, custom-theme-add-var-1)
      (custom-theme-add-face, custom-theme-add-face-1): Add a checkbox
      to the front of each variable or face widget.
      (custom-theme-write): Save theme settings in the correct order.
      Optionally, remove saved settings from user customizations.
      (custom-theme-write-variables, custom-theme-write-faces): Saved
      only the checked widgets.
      (customize-themes): Add a link for migrating custom settings.
      
      * custom.el (custom-declare-theme, provide-theme): Use
      custom-theme-name-valid-p.
      (custom-theme-name-valid-p): Remove checks that are now
      unnecessary since themes no longer obey load-path.
      
      * cus-edit.el (custom-variable-value-create): For the simple
      style, hide documentation string when hidden.
      29a4c45b
  20. 16 Oct, 2010 2 commits
    • Chong Yidong's avatar
      Allow hiding of modified custom widgets. · 647bc502
      Chong Yidong authored
      * cus-edit.el (custom-variable, custom-face): Combine the
      :inhibit-magic and :display-style properties into a single
      :custom-style property.
      (custom-toggle-hide-variable, custom-toggle-hide-face): New
      functions.  If hiding an edited value, save it to :shown-value.
      (custom-variable-value-create, custom-face-value-create): Use
      them.
      (custom-magic-reset): Allow magic property to be unset.
      
      * cus-theme.el (custom-theme-add-var-1)
      (custom-theme-add-face-1): Use the :custom-style property.
      
      * custom.el: (custom-theme-load-path): Doc fix.
      647bc502
    • Chong Yidong's avatar
      Bugfixes for `customize-create-theme'. · da16abfc
      Chong Yidong authored
      * cus-theme.el (customize-create-theme): Delete overlays after
      erasing.  If given a THEME arg, display only the faces of that arg
      instead of custom-theme--listed-faces.
      (custom-theme-variable-menu, custom-theme-variable-action)
      (custom-variable-reset-theme, custom-theme-delete-variable): Deleted.
      (custom-theme-add-variable, custom-theme-add-face): Apply value
      from the theme settings, instead of the current value.
      (custom-theme-add-var-1, custom-theme-add-face-1): New functions.
      (custom-theme-visit-theme): Allow calling outside theme buffers.
      (custom-theme-merge-theme): Don't enable the theme when merging.
      (custom-theme-write-variables, custom-theme-write-faces): Use the
      :shown-value properties to save buffer values, not global ones.
      (customize-themes): Display a warning about user customizations.
      
      * cus-edit.el (custom-variable-value-create)
      (custom-face-value-create): Obey new special properties
      :shown-value and :inhibit-magic.
      da16abfc
  21. 12 Oct, 2010 1 commit
    • Chong Yidong's avatar
      New interface for choosing Custom themes. · 6b09b5d1
      Chong Yidong authored
      * lisp/cus-edit.el (custom--initialize-widget-variables): New function.
      (Custom-mode): Use it.
      
      * lisp/cus-face.el (custom-theme-set-faces): Remove dead code.  Obey
      custom--inhibit-theme-enable.
      
      * lisp/cus-theme.el (describe-theme, customize-themes)
      (custom-theme-save): New commands.
      (custom-new-theme-mode-map): Bind C-x C-s.
      (custom-new-theme-mode): Use custom--initialize-widget-variables.
      (customize-create-theme): New optional arg THEME.
      (custom-theme-revert): Use it.
      (custom-theme-visit-theme): Remove dead code.
      (custom-theme-merge-theme): Use custom-available-themes.
      (custom-theme-write): Make interactive.
      (custom-theme-write): Use custom-theme-name-valid-p.
      (describe-theme-1, custom-theme-choose-revert)
      (custom-theme-checkbox-toggle, custom-theme-selections-toggle):
      New funs.
      (custom-theme-allow-multiple-selections): New option.
      (custom-theme-choose-mode): New major mode.
      
      * lisp/custom.el (custom-theme-set-variables): Remove dead code.  Obey
      custom--inhibit-theme-enable.
      (custom--inhibit-theme-enable): New var.
      (provide-theme): Obey it.
      (load-theme): Replace load with manual read/eval, in order to
      check for correctness.  Use custom-theme-name-valid-p.
      (custom-theme-name-valid-p): New function.
      (custom-available-themes): Use it.
      
      * lisp/help-mode.el (help-theme-def, help-theme-edit): New buttons.
      6b09b5d1
  22. 11 Oct, 2010 1 commit
    • Chong Yidong's avatar
      More cleanups and minor fixes for Customize. · 05d22d02
      Chong Yidong authored
      * cus-edit.el (custom-face-edit-fix-value): Use
      custom-fix-face-spec.
      
      * custom.el (custom-push-theme): Cleanup (use cond).
      (disable-theme): Recompute the saved-face property.
      (custom-theme-recalc-face): Follow face alias before setting prop.
      
      * custom.el (custom-fix-face-spec): New function; code moved from
      custom-face-edit-fix-value.
      (custom-push-theme): Use it when checking if a face has been
      changed outside customize.
      (custom-available-themes): New function.
      (load-theme): Use it.
      
      * image.el (image-checkbox-checked, image-checkbox-unchecked): New
      variables, containing checkbox images.
      
      * startup.el (fancy-startup-tail):
      * wid-edit.el (checkbox): Use them.
      05d22d02
  23. 09 Oct, 2010 2 commits
    • Chong Yidong's avatar
      Interface improvements to cus-theme.el. · 76c16af8
      Chong Yidong authored
      * cus-edit.el (custom-face-widget-to-spec)
      (custom-face-get-current-spec, custom-face-state): New functions.
      (custom-face-set, custom-face-mark-to-save)
      (custom-face-value-create, custom-face-state-set): Use them.
      
      * cus-theme.el (custom-theme--listed-faces): New var.
      (customize-create-theme): Use *Custom Theme* as the buffer name.
      Set revert-buffer-function.  Optional arg BUFFER.  Insert all
      faces listed in custom-theme--listed-faces.
      (custom-theme-revert): New function.
      (custom-theme-add-variable, custom-theme-add-face): Insert at the
      bottom of the list.
      (custom-theme-write): Prompt for theme name if empty.
      (custom-theme-write-variables): Use dolist.
      (custom-theme-write-faces): Handle hidden (collapsed) widgets.
      76c16af8
    • Chong Yidong's avatar
      More face customization cleanups. · 587faadd
      Chong Yidong authored
      * cus-edit.el (custom-commands, custom-buffer-create-internal)
      (custom-magic-value-create): Pad button tags with spaces.
      (custom-face-edit): New variable.
      (custom-face-value-create): Determine whether to use the usual
      face editor here, instead of using custom-face-selected.  Pass
      face defaults to custom-face-edit widget.
      (custom-face-selected, custom-display-unselected): Delete widgets.
      (custom-display-unselected-match): Function removed.
      (custom-face-set, custom-face-mark-to-save): Accept
      custom-face-edit widgets as the direct widget child.
      
      * wid-edit.el (widget--completing-widget): New var.
      (widget-default-complete): Bind it when doing completion.
      (widget-string-complete, widget-file-complete): Use it.
      587faadd
  24. 08 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Improvements to face customization interface. · 61328d7c
      Chong Yidong authored
      * lisp/cus-edit.el (custom-variable, custom-face): Doc fix.
      (custom-face-edit): Add value-create attribute.
      (custom-face-edit-value-create)
      (custom-face-edit-value-visibility-action): New functions.  Hide
      unused face attributes by default, and add a visibility toggle.
      (custom-face-edit-deactivate): Show empty values with shadow face.
      (custom-face-selected): Only use this for face specs with default
      attributes.
      (custom-face-value-create): Cleanup.
      
      * lisp/wid-edit.el (widget-checklist-value-create): Use dolist.
      (widget-checklist-match-find): Make second arg optional.
      61328d7c
  25. 29 Aug, 2010 1 commit
  26. 21 Aug, 2010 1 commit
  27. 12 Aug, 2010 1 commit
  28. 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
      HAVE_XFT.
      (something_changedCB): store_font_changed_event is now
      store_config_changed_event
      (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_...
      f904c0f9
  29. 31 Mar, 2010 1 commit
  30. 12 Mar, 2010 3 commits
    • Chong Yidong's avatar
      Improvements to the Custom interface. · 647f9993
      Chong Yidong authored
      * cus-edit.el: Resort topmost custom groups.
      (custom-buffer-sort-alphabetically): Default to t.
      (customize-apropos): Use apropos-parse-pattern.
      (custom-search-field): New var.
      (custom-buffer-create-internal): Add custom-apropos search field.
      (custom-add-parent-links): Don't display parent doc.
      (custom-group-value-create): Don't sort top-level custom group.
      (custom-magic-value-create): Show visibility button before option
      name.
      
      (custom-variable-state): New fun, from custom-variable-state-set.
      (custom-variable-state-set): Use it.
      (custom-group-value-create): Hide options with standard values
      using the :hidden-states property.  Use progress reporter.
      
      (custom-show): Simplify.
      (custom-visibility): Disable images by default.
      (custom-variable): New property :hidden-states.
      (custom-variable-value-create): Enable images for
      custom-visibility widgets.  Use :hidden-states property to
      determine initial visibility.
      
      * wid-edit.el (widget-image-find): Give images center ascent.
      (visibility): Add :on-image and :off-image properties.
      (widget-visibility-value-create): Use them.
      647f9993
    • Chong Yidong's avatar
      Fix last change to use existing comm Custom group instead of `net'. · 26f4b8ab
      Chong Yidong authored
      * cus-edit.el (net): Remove group.
      (comm): Promote to top-level group.
      
      * url/url-vars.el (url):
      * net/browse-url.el (browse-url):
      * net/xesam.el (xesam):
      * net/tramp.el (tramp):
      * net/goto-addr.el (goto-address):
      * net/ange-ftp.el (ange-ftp): Put in comm group.
      26f4b8ab
    • Chong Yidong's avatar
      Reorganize Custom groups. · eba5b4dd
      Chong Yidong authored
      * cus-edit.el (processes): Remove from development group.
      (oop, hypermedia): Delete group.
      (net): New group.
      
      * url/url-vars.el (url):
      * net/browse-url.el (browse-url):
      * net/xesam.el (xesam):
      * net/tramp.el (tramp):
      * net/goto-addr.el (goto-address):
      * net/ange-ftp.el (ange-ftp): Put in net group.
      
      * view.el (view): Remove from editing group.
      
      * uniquify.el (uniquify): Put in files group.
      
      * net/browse-url.el (browse-url):
      * ps-print.el (postscript): Put in external group.
      
      * cus-edit.el (outlines):
      * textmodes/text-mode.el (text-mode-hook):
      * textmodes/table.el (table):
      * textmodes/picture.el (picture):
      * outline.el (outlines): Put in wp group.
      
      * nxml/nxml-mode.el (nxml): Remove from wp group.
      
      * net/tramp-imap.el (tramp-imap): Put in tramp group.
      
      * mail/metamail.el (metamail): Remove from hypermedia group.
      
      * cus-edit.el (abbrev):
      * whitespace.el (whitespace):
      * vcursor.el (vcursor):
      * reveal.el (reveal):
      * hl-line.el (hl-line): Put in convenience group.
      
      * epg-config.el (epg): Put in data group.
      
      * emulation/pc-select.el (pc-select): Put in emulations group.
      
      * calculator.el (calculator): Put in applications group.
      
      * org/org.el (org): Remove from hypermedia group.
      eba5b4dd
  31. 11 Mar, 2010 1 commit
  32. 16 Feb, 2010 1 commit
    • Chong Yidong's avatar
      Minor tweaks to custom groups. · ff90f4b0
      Chong Yidong authored
      * cus-edit.el (hardware): Doc fix.
      
      * man.el (man): Add to external custom group.
      
      * delim-col.el (columns): Move to wp custom group.
      
      * doc-view.el (doc-view): Add to data custom group.
      
      * cedet/data-debug.el (data-debug): Move to extensions group.
      
      * cedet/ede.el (ede):
      * cedet/srecode.el (srecode):
      * cedet/semantic.el (semantic): Put in tools and extensions group.
      
      * nxml/nxml-mode.el (nxml-faces): Remove from font-lock-faces group.
      ff90f4b0
  33. 13 Jan, 2010 1 commit
  34. 14 Nov, 2009 1 commit