1. 08 Jul, 2011 1 commit
  2. 05 Jul, 2011 1 commit
  3. 03 Jul, 2011 1 commit
    • Chong Yidong's avatar
      Fix how custom themes handle faces, so the multi-tty/multi-frame case works. · 1485f4c0
      Chong Yidong authored
      * lisp/custom.el (custom-push-theme): Don't record faces in `changed'
      theme; this doesn't work correctly for per-frame face settings.
      (disable-theme): Use face-set-after-frame-default to reset faces.
      (custom--frame-color-default): New function.
      
      * lisp/frame.el (frame-background-mode, frame-set-background-mode):
      Moved from faces.el.
      (frame-default-terminal-background): New function.
      
      * src/xfaces.c (Finternal_merge_in_global_face): Modify the foreground
      and background color parameters if they have been changed.
      1485f4c0
  4. 02 Jul, 2011 1 commit
  5. 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
  6. 25 Apr, 2011 1 commit
  7. 19 Apr, 2011 1 commit
  8. 05 Apr, 2011 1 commit
  9. 22 Mar, 2011 1 commit
    • Chong Yidong's avatar
      Special handling of the `custom-enabled-themes' custom variable. · fccee4ab
      Chong Yidong authored
      * lisp/custom.el (custom--inhibit-theme-enable): Make it affect only
      custom-theme-set-variables and custom-theme-set-faces.
      (provide-theme): Ignore custom--inhibit-theme-enable.
      (load-theme): Enable the theme explicitly if NO-ENABLE is non-nil.
      (custom-enabling-themes): Delete variable.
      (enable-theme): Accept only loaded themes as arguments.  Ignore
      the special custom-enabled-themes variable.
      (custom-enabled-themes): Forbid themes from setting this.
      Eliminate use of custom-enabling-themes.
      (custom-push-theme): Quote "changed" custom var entry.
      fccee4ab
  10. 21 Mar, 2011 1 commit
  11. 17 Mar, 2011 1 commit
    • Juanma Barranquero's avatar
      lisp/custom.el: Trivial fixes. · 171fc304
      Juanma Barranquero authored
      * custom.el (custom-known-themes): Reflow docstring.
        (custom-theme-load-path): Fix typo in docstring.
        (load-theme): Fix typo in error message.
        (custom-available-themes, custom-variable-theme-value):
        Use `let', not `let*'.
      171fc304
  12. 08 Mar, 2011 1 commit
  13. 01 Mar, 2011 1 commit
    • Stefan Monnier's avatar
      * doc/lispref/variables.texi (Scope): Mention the availability of lexbind. · d032d5e7
      Stefan Monnier authored
      (Lexical Binding): New node.
      * doc/lispref/eval.texi (Eval): Add `eval's new `lexical' arg.
      * lisp/emacs-lisp/cconv.el (cconv-liftwhen): Increase threshold.
      (cconv-closure-convert-rec): Convert interactive spec in empty lexenv.
      (cconv-analyse-use): Improve unused vars warnings.
      (cconv-analyse-form): Analyze interactive spec in empty lexenv.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-lambda): Always byte-compile
      the interactive spec in lexical-binding mode.
      (byte-compile-refresh-preloaded): Don't reload byte-compiler files.
      * lisp/custom.el (custom-initialize-default): Use defvar.
      (custom-declare-variable): Set the special-variable-p flag.
      * lisp/help-fns.el (help-make-usage): Drop leading underscores.
      * lisp/dired.el (dired-revert, dired-make-relative): Mark unused args.
      (dired-unmark-all-files): Remove unused var `query'.
      (dired-overwrite-confirmed): Declare.
      (dired-restore-desktop-buffer): Don't use dynamically scoped arg names.
      * lisp/mpc.el: Mark unused args.
      (mpc--faster-toggle): Remove unused var `songnb'.
      * lisp/server.el (server-kill-buffer-running): Move before first use.
      * lisp/minibuffer.el: Mark unused args.
      * src/callint.c (quotify_arg): Simplify the logic.
      (Fcall_interactively): Use lexical binding when evaluating the
      interactive spec of a lexically bound function.
      d032d5e7
  14. 01 Feb, 2011 1 commit
    • Chong Yidong's avatar
      Drop use of unsafep for checking Custom themes; bugfixes. · 928f4e73
      Chong Yidong authored
      * lisp/custom.el (load-theme): Define return value.  Drop use of
      unsafep; call custom-theme-load-confirm for non-known-safe themes.
      (custom-theme-load-confirm): Scroll in the correct window.
      (custom-enabled-themes): Add custom-safe-themes to :set-after.
      
      * lisp/cus-theme.el (custom-theme-checkbox-toggle): Don't activate the
      checkbox if load-theme fails.
      928f4e73
  15. 25 Jan, 2011 1 commit
  16. 15 Jan, 2011 1 commit
  17. 09 Jan, 2011 1 commit
  18. 08 Jan, 2011 1 commit
  19. 02 Jan, 2011 1 commit
  20. 19 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Revert 2010-10-18 change; use safe-functions instead. · 7fd8732d
      Chong Yidong authored
      * cus-face.el (custom-theme-set-faces): Revert 2010-10-18 change.
      Don't mark as safe.
      
      * custom.el (custom-theme-set-variables): Likewise.
      (load-theme): Add custom-theme-set-faces and
      custom-theme-set-variables to safe-functions while loading.
      (custom-enabled-themes): Mark as risky.
      7fd8732d
  21. 18 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Use unsafep to check for theme safety. · e48eb343
      Chong Yidong authored
      * cus-face.el (custom-theme-set-faces): Mark as a safe function.
      
      * custom.el (custom-theme-set-variables): Mark as a safe function.
      (load-theme): Check forms using unsafep.
      e48eb343
  22. 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
  23. 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
      Move built-in theme directory to etc/. · 782b5e8d
      Chong Yidong authored
      * custom.el: Custom themes no longer use load-path.
      (custom-theme-load-path): New option.  Change built-in theme
      directory to etc/.
      (custom-enabled-themes): Add custom-theme-load-path dependency.
      (custom-theme--load-path): New function.
      (load-theme, custom-available-themes): Use it.
      
      * cus-theme.el (describe-theme-1): Use custom-theme--load-path.
      (customize-themes): Link to custom-theme-load-path variable.
      782b5e8d
  24. 14 Oct, 2010 1 commit
    • Chong Yidong's avatar
      Define a cursor defface; minor face optimizations. · 4983ddea
      Chong Yidong authored
      * faces.el (face-spec-reset-face): Reset all attributes in one
      single call to set-face-attribute.
      (face-spec-match-p): Make it a defsubst.
      (frame-set-background-mode): New arg KEEP-FACE-SPECS.
      (x-create-frame-with-faces, tty-create-frame-with-faces)
      (tty-set-up-initial-frame-faces): Don't recompute face specs in
      frame-set-background-mode, since they are recomputed immediately
      afterwards in face-set-after-frame-default.
      (face-set-after-frame-default): Minor optimization.
      (cursor): Provide non-trivial defface spec.
      
      * custom.el (custom-theme-recalc-face): Simplify.
      4983ddea
  25. 12 Oct, 2010 2 commits
    • Chong Yidong's avatar
      Add some default custom themes. · 2919746c
      Chong Yidong authored
      * cus-theme.el (custom-theme--listed-faces): Add cursor face.
      (describe-theme-1): Extract doc from unloaded themes.
      
      * custom.el (custom-theme-name-valid-p): Don't list color-themes.
      
      * themes/tango-theme.el:
      * themes/tango-dark-theme.el:
      * themes/wheatgrass-theme.el: New files.
      2919746c
    • 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
  26. 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
  27. 29 Aug, 2010 1 commit
  28. 23 Jul, 2010 1 commit
  29. 19 Apr, 2010 1 commit
  30. 26 Feb, 2010 1 commit
  31. 13 Jan, 2010 1 commit
  32. 14 Nov, 2009 1 commit
  33. 11 Nov, 2009 1 commit
  34. 04 Nov, 2009 1 commit
  35. 15 Sep, 2009 1 commit
  36. 13 Sep, 2009 1 commit
    • Stefan Monnier's avatar
      * mail/sendmail.el (send-mail-function): · adba8116
      Stefan Monnier authored
      * tooltip.el (tooltip-mode):
      * simple.el (transient-mark-mode):
      * rfn-eshadow.el (file-name-shadow-mode):
      * frame.el (blink-cursor-mode):
      * font-core.el (global-font-lock-mode):
      * files.el (temporary-file-directory)
      (small-temporary-file-directory, auto-save-file-name-transforms):
      * epa-hook.el (auto-encryption-mode):
      * composite.el (global-auto-composition-mode):
      Use custom-initialize-delay.
      * startup.el (command-line): Don't explicitly call
      custom-reevaluate-setting for all the above vars.
      * custom.el (custom-initialize-safe-set)
      (custom-initialize-safe-default): Delete.
      adba8116
  37. 11 Sep, 2009 1 commit
    • Stefan Monnier's avatar
      * custom.el (custom-delayed-init-variables): New var. · 790d0270
      Stefan Monnier authored
      (custom-initialize-delay): New function.
      * startup.el (command-line): "Re"evaluate all vars in
      custom-delayed-init-variables.  Don't reevaluate abbrev-file-name
      explicitly any more.
      * abbrev.el (abbrev-file-name): Use custom-initialize-delay
      to avoid creating a ~/.emacs.d at build-time (bug#4347).
      790d0270
  38. 05 Jan, 2009 1 commit