1. 27 Jun, 2012 1 commit
  2. 18 May, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/lisp-mode.el (doc-string-elt): Move those properties to · b581bb5c
      Stefan Monnier authored
      their respective macro declarations.
      * lisp/skeleton.el (define-skeleton):
      * lisp/progmodes/compile.el (define-compilation-mode):
      * lisp/ibuf-macs.el (define-ibuffer-sorter, define-ibuffer-op)
      (define-ibuffer-filter):
      * lisp/emacs-lisp/generic.el (define-generic-mode):
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
      (define-globalized-minor-mode):
      * lisp/emacs-lisp/cl-macs.el (defun*, defmacro*, defstruct, deftype):
      * lisp/emacs-lisp/byte-run.el (defsubst):
      * lisp/custom.el (deftheme): Add doc-string metadata.
      b581bb5c
  3. 03 May, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el · 2bd785a2
      Stefan Monnier authored
      (byte-compile-file-form-custom-declare-variable): Compile all elements,
      since cconv.el might have introduced :fun-body, internal-make-closure,
      and friends for bytecomp to handle.
      * lisp/custom.el (defcustom): Avoid ((λ ..) ..).
      
      Fixes: debbugs:11391
      2bd785a2
  4. 12 Apr, 2012 1 commit
    • Chong Yidong's avatar
      New Lisp manual nodes, Applying Customizations and Custom Themes. · 81927dd2
      Chong Yidong authored
      * doc/lispref/customize.texi (Applying Customizations):
      (Custom Themes): New nodes.
      
      * doc/lispref/display.texi (Defining Faces): Reference custom-set-faces.
      
      * doc/lispref/modes.texi (Defining Minor Modes, Defining Minor Modes):
      * doc/lispref/os.texi (Startup Summary): Copyedits.
      
      * doc/emacs/custom.texi (Creating Custom Themes): Add reference to Custom
      Themes node in Lisp manual.
      
      * lisp/custom.el (custom-theme-set-variables): Doc fix.
      81927dd2
  5. 09 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Remove defining user variables via * in docstring. · b4d3bc10
      Chong Yidong authored
      * lisp/apropos.el (apropos-variable):
      * lisp/files-x.el (read-file-local-variable):
      * lisp/simple.el (set-variable):
      * lisp/woman.el (woman-mini-help):
      * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Callers changed.
      
      * lisp/custom.el (custom-variable-p): Return nil for non-symbol
      arguments instead of signaling an error.
      (user-variable-p): Obsolete alias for custom-variable-p.
      
      * lisp/erc/erc.el (erc-cmd-SET): Call custom-variable-p instead of
      user-variable-p.
      
      * src/callint.c (Finteractive, Fcall_interactively):
      * src/minibuf.c (Fread_variable): Callers changed.
      
      * src/eval.c (Fuser_variable_p, user_variable_p_eh)
      (lisp_indirect_variable): Functions deleted.
      (Fdefvar): Caller changed.
      
      * doc/lispref/commands.texi (Interactive Codes):
      * doc/lispref/help.texi (Accessing Documentation):
      * doc/lispref/minibuf.texi (High-Level Completion): Callers changed.
      
      * doc/lispref/customize.texi (Variable Definitions): Remove user-variable-p.
      b4d3bc10
  6. 25 Mar, 2012 1 commit
    • Chong Yidong's avatar
      Fix interaction of load-theme with cust-theme.el. · 4125cb8b
      Chong Yidong authored
      * lisp/custom.el (load-theme): Even if NO-ENABLE arg is t, reenable the
      theme if it was previously enabled before (Bug#11031).
      
      * lisp/cus-theme.el (customize-create-theme, custom-theme-revert): Doc fixes.
      4125cb8b
  7. 22 Feb, 2012 1 commit
  8. 15 Feb, 2012 1 commit
    • Chong Yidong's avatar
      Doc updates for defvar, defconst, and defcustom. · c3a70e2b
      Chong Yidong authored
      * lisp/custom.el (defcustom): Doc fix; note use of defvar.
      
      * src/eval.c (Fdefvar, Fdefconst): Doc fix; note that the variable is
      marked as special.  Also, starting docstrings with * is obsolete.
      c3a70e2b
  9. 06 Feb, 2012 2 commits
  10. 05 Feb, 2012 1 commit
    • Chong Yidong's avatar
      Updates to Macros and Customization chapters of Lisp manual. · 03988c98
      Chong Yidong authored
      * doc/lispref/customize.texi (Common Keywords): Minor clarifications.
      Document custom-unlispify-remove-prefixes.
      (Variable Definitions): Backquotes in defcustom seem to work fine
      now.  Various other copyedits.
      
      * doc/lispref/macros.texi (Expansion): Minor clarification.
      (Backquote): Move node to eval.texi.
      (Defining Macros): Move an example from Backquote node.
      (Argument Evaluation): No need to mention Pascal.
      (Indenting Macros): Add xref to Defining Macros.
      
      * doc/lispref/eval.texi (Backquote): Move from macros.texi.
      
      * lisp/custom.el (defcustom): Doc fix.
      03988c98
  11. 29 Jan, 2012 1 commit
  12. 25 Jan, 2012 1 commit
  13. 11 Jan, 2012 1 commit
  14. 09 Jan, 2012 1 commit
  15. 05 Jan, 2012 2 commits
  16. 01 Oct, 2011 1 commit
  17. 08 Jul, 2011 1 commit
  18. 05 Jul, 2011 1 commit
  19. 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
  20. 02 Jul, 2011 1 commit
  21. 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
  22. 25 Apr, 2011 1 commit
  23. 19 Apr, 2011 1 commit
  24. 05 Apr, 2011 1 commit
  25. 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
  26. 21 Mar, 2011 1 commit
  27. 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
  28. 08 Mar, 2011 1 commit
  29. 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
  30. 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
  31. 25 Jan, 2011 1 commit
  32. 15 Jan, 2011 1 commit
  33. 09 Jan, 2011 1 commit
  34. 08 Jan, 2011 1 commit
  35. 02 Jan, 2011 1 commit
  36. 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
  37. 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
  38. 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