1. 25 Nov, 2012 1 commit
    • Chong Yidong's avatar
      Revamp face-spec-set to be more analogous to setq for faces. · 1c4f115d
      Chong Yidong authored
      * lisp/faces.el (face-spec-set): Change the third arg to specify
      whether this function is being called via defface, customize, or a
      third party.  Set the appropriate symbol properties.  Clear the
      override spec if setting via Custom.  Initialize face if necessary.
      (face-spec-recalc): Allow theme faces to completely replace the
      defface spec, in the same way as custom faces (Bug#8454).
      
      * lisp/cus-edit.el (custom-face-set, custom-face-mark-to-save)
      (custom-face-reset-saved, custom-face-mark-to-reset-standard):
      Simplify by using the new arg to face-spec-set.
      
      * lisp/cus-face.el (custom-declare-face): Move face initialization to
      face-spec-set.
      (custom-theme-set-faces): Don't initialize the face name here, as
      that is now done in face-spec-set.
      
      * lisp/emacs-lisp/lisp-mode.el (eval-defun-1): When evaluating defface,
      reset face-override-spec too, and use custom-declare-face.
      
      Fixes: debbugs:4988
      1c4f115d
  2. 23 Nov, 2012 1 commit
  3. 21 Nov, 2012 2 commits
    • Glenn Morris's avatar
      Add optional "inherit" argument for face-bold-p and related functions · 1bf335cf
      Glenn Morris authored
      * lisp/faces.el (face-underline-p, face-inverse-video-p, face-bold-p)
      (face-italic-p): Add optional argument "inherit".
      
      * doc/lispref/display.texi (Attribute Functions):
      Add new "inherit" argument for face-bold-p etc.
      Move description of this argument to a common section, like "frame".
      1bf335cf
    • Glenn Morris's avatar
      Remove -p suffix from set-face-* functions · 3ca2f1bf
      Glenn Morris authored
      * lisp/faces.el (set-face-inverse-video, set-face-bold, set-face-italic):
      Remove -p suffix from names, for consistency with other set-face-*.
      (set-face-inverse-video): Fix interactive spec.
      * lisp/play/gamegrid.el (gamegrid-make-mono-tty-face):
      * lisp/textmodes/table.el (table--update-cell-face):
      Use set-face-inverse-video rather than now obsolete alias.
      
      * doc/lispref/display.texi (Attribute Functions):
      Update for set-face-* name changes.
      3ca2f1bf
  4. 16 Nov, 2012 1 commit
  5. 15 Nov, 2012 1 commit
    • Glenn Morris's avatar
      Fixes related to face underlining · bde3c6c0
      Glenn Morris authored
      * lisp/faces.el (face-underline-p): Doc fix.  Handle :underline being
      things other than `t' (a string, a list).
      (face-inverse-video-p): Doc fix.
      (set-face-underline): Rename it back from set-face-underline-p.
      Doc fix.  Allow interactive input of values other than t.
      (read-face-attribute): Apply formatting to :underline,
      since like :box and :stipple it can take list values.
      
      * doc/lispref/display.texi (Face Attributes): Fix :underline COLOR description.
      (Attribute Functions): Update for set-face-underline rename.
      Tweak descriptions of face-underline-p, face-inverse-video-p.
      
      * etc/NEWS: Related edit.
      bde3c6c0
  6. 23 Oct, 2012 1 commit
  7. 02 Oct, 2012 1 commit
  8. 27 Sep, 2012 1 commit
  9. 17 Sep, 2012 1 commit
    • Daniel Colascione's avatar
      Implement cygw32 · 0fda9b75
      Daniel Colascione authored
      Here, we use the generic window-system configuration system we just
      implemented to support the w32 window-system in the mainline build
      under Cygwin.  (Previously, the w32 window system could only be
      compiled as part of the NT-native Emacs build process.)
      
      The changes in this patch need to be applied atomically in order to
      avoid breaking Emacs.  The changes include:
      
        - Changes throughout the Lisp and C code to not assume that
            NT Emacs and the w32 window system are synonymous.
      
        - Wiring up the regular select(2) event loop to Windows messages
      
        - Cleaning up the w32 drag-and-drop receiving code.
      
        - Exposing Cygwin path conversion functions to elisp.
      
        - Unicode file dialog support when compiling for Cygwin.
      
        - Splitting the w32 term lisp initialization code into code
          applicable to any w32 window-system and code specific to
          system-type windows-nt.
      
        - Integrating the old and new w32 code into the build system.
      0fda9b75
  10. 26 Aug, 2012 1 commit
  11. 25 Jul, 2012 1 commit
  12. 18 Jul, 2012 1 commit
  13. 22 Jun, 2012 1 commit
    • Stefan Monnier's avatar
      Further GV/CL cleanups. · 36cec983
      Stefan Monnier authored
      * lisp/emacs-lisp/gv.el (gv-get): Autoload functions to find their
      gv-expander.
      (gv--defun-declaration): New function.
      (defun-declarations-alist): Use it.
      (gv-define-modify-macro, gv-pushnew!, gv-inc!, gv-dec!): Remove.
      (gv-place): Autoload.
      * lisp/emacs-lisp/cl.el (cl--dotimes, cl--dolist): Remember subr.el's
      original definition of dotimes and dolist.
      * lisp/emacs-lisp/cl-macs.el (cl-expr-access-order): Remove unused.
      (cl-dolist, cl-dotimes): Use `dolist' and `dotimes'.
      * lisp/emacs-lisp/cl-lib.el: Move gv handlers from cl-macs to here.
      (cl-fifth, cl-sixth, cl-seventh, cl-eighth)
      (cl-ninth, cl-tenth): Move gv handler to the function's definition.
      * lisp/emacs-lisp/cl-extra.el (cl-subseq, cl-get, cl-getf): Move gv handler
      to the function's definition.
      * lisp/Makefile.in (COMPILE_FIRST): Re-order to speed it up by about 50%.
      * lisp/window.el:
      * lisp/files.el:
      * lisp/faces.el:
      * lisp/env.el: Don't use CL.
      36cec983
  14. 17 Jun, 2012 1 commit
    • Alp Aker's avatar
      Implement wave-style variant of underlining. · 9b0e3eba
      Alp Aker authored
        * doc/lispref/display.texi: Document new face attribute.
        * lisp/cus-face.el (custom-face-attributes): Add wave-style underline
        attribute.
        * lisp/faces.el (set-face-attribute): Update docstring.
        * src/dispextern.h (face_underline_type): New enum.
        (face): Add field for underline type.
        * src/nsterm.m (ns_draw_underwave): New function.
        (ns_draw_text_decoration): Use it.
        * src/w32term.c (w32_restore_glyph_string_clip, w32_draw_underwave):
        New functions.
        (x_draw_glyph_string): Use them.
        * src/xfaces.c (Qline, Qwave): New Lisp objects.
        (check_lface_attrs, merge_face_ref)
        (Finternal_set_lisp_face_attribute, realize_x_face): Handle
        wave-style underline face attributes.
        * src/xterm.c (x_draw_underwave): New function.
        (x_draw_glyph_string): Use it.
      9b0e3eba
  15. 08 Jun, 2012 1 commit
    • Chong Yidong's avatar
      Face cleanups. Remove some uses of old-style face spec and :bold/:italic. · 4b56d0fe
      Chong Yidong authored
      * faces.el (set-face-attribute): Doc fix.
      (modify-face): Don't use :bold and :italic.
      (error, warning, success): Tweak definitions.
      
      * cus-edit.el (custom-modified, custom-invalid, custom-rogue)
      (custom-modified, custom-set, custom-changed, custom-themed)
      (custom-saved, custom-button, custom-button-mouse)
      (custom-button-pressed, custom-state, custom-comment-tag)
      (custom-variable-tag, custom-group-tag-1, custom-group-tag)
      (custom-group-subtitle): Use new-style face specs.
      (custom-invalid-face, custom-rogue-face, custom-modified-face)
      (custom-set-face, custom-changed-face, custom-saved-face)
      (custom-button-face, custom-button-pressed-face)
      (custom-documentation-face, custom-state-face)
      (custom-comment-face, custom-comment-tag-face)
      (custom-variable-tag-face, custom-variable-button-face)
      (custom-face-tag-face, custom-group-tag-face-1)
      (custom-group-tag-face): Remove obsolete face alias.
      
      * epa.el (epa-validity-high, epa-validity-medium)
      (epa-validity-low, epa-mark, epa-field-name, epa-string)
      (epa-field-name, epa-field-body):
      * font-lock.el (font-lock-comment-face, font-lock-string-face)
      (font-lock-keyword-face, font-lock-builtin-face)
      (font-lock-function-name-face, font-lock-variable-name-face)
      (font-lock-type-face, font-lock-constant-face):
      * ido.el (ido-first-match, ido-only-match, ido-subdir)
      (ido-virtual, ido-indicator, ido-incomplete-regexp):
      * speedbar.el (speedbar-button-face, speedbar-file-face)
      (speedbar-directory-face, speedbar-tag-face)
      (speedbar-selected-face, speedbar-highlight-face)
      (speedbar-separator-face):
      * whitespace.el (whitespace-newline, whitespace-space)
      (whitespace-hspace, whitespace-tab, whitespace-trailing)
      (whitespace-line, whitespace-space-before-tab)
      (whitespace-space-after-tab, whitespace-indentation)
      (whitespace-empty):
      * emulation/cua-base.el (cua-global-mark):
      * eshell/em-prompt.el (eshell-prompt):
      * net/newst-plainview.el (newsticker-new-item-face)
      (newsticker-old-item-face, newsticker-immortal-item-face)
      (newsticker-obsolete-item-face, newsticker-date-face)
      (newsticker-statistics-face, newsticker-default-face):
      * net/newst-reader.el (newsticker-feed-face)
      (newsticker-extra-face, newsticker-enclosure-face):
      * net/newst-treeview.el (newsticker-treeview-face)
      (newsticker-treeview-new-face, newsticker-treeview-old-face)
      (newsticker-treeview-immortal-face)
      (newsticker-treeview-obsolete-face)
      (newsticker-treeview-selection-face):
      * net/rcirc.el (rcirc-my-nick, rcirc-other-nick)
      (rcirc-bright-nick, rcirc-server, rcirc-timestamp)
      (rcirc-nick-in-message, rcirc-nick-in-message-full-line)
      (rcirc-prompt, rcirc-track-keyword, rcirc-url, rcirc-keyword):
      * nxml/nxml-outln.el (nxml-heading, nxml-outline-indicator)
      (nxml-outline-active-indicator, nxml-outline-ellipsis):
      * play/mpuz.el (mpuz-unsolved, mpuz-solved, mpuz-trivial)
      (mpuz-text):
      * progmodes/vera-mode.el (vera-font-lock-number)
      (vera-font-lock-function, vera-font-lock-interface):
      * textmodes/table.el (table-cell): Use new-style face specs, and
      don't use the old :bold and :italic attributes.
      
      * erc-button.el (erc-button):
      * erc-goodies.el (erc-bold-face, erc-inverse-face)
      (erc-underline-face, fg:erc-color-*):
      * erc-match.el (erc-current-nick-face, erc-dangerous-host-face)
      (erc-pal-face, erc-fool-face, erc-keyword-face):
      * erc-stamp.el (erc-timestamp-face): Likewise.
      
      * erc.el (erc-direct-msg-face, erc-header-line, erc-input-face)
      (erc-command-indicator-face, erc-notice-face, erc-action-face)
      (erc-error-face, erc-my-nick-face, erc-nick-default-face)
      (erc-nick-msg-face): Use new-style face specs, and avoid :bold.
      
      * progmodes/ebrowse.el (ebrowse-tree-mark, ebrowse-root-class)
      (ebrowse-member-attribute, ebrowse-default, ebrowse-file-name)
      (ebrowse-member-class, ebrowse-progress): Likewise.
      (ebrowse-tree-mark-face, ebrowse-root-class-face)
      (ebrowse-file-name-face, ebrowse-default-face)
      (ebrowse-member-attribute-face, ebrowse-member-class-face)
      (ebrowse-progress-face): Remove obsolete faces.
      
      * progmodes/flymake.el (flymake-errline, flymake-warnline):
      Inherit from error and warning faces respectively.
      
      * textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
      Likewise.
      (flyspell-incorrect-face, flyspell-duplicate-face): Remove
      obsolete aliases.
      
      * display.texi (Face Attributes): Font family does not accept
      wildcards.  De-document obsolete :bold and :italic attributes.
      (Defining Faces): Use new-style face spec format.
      4b56d0fe
  16. 24 May, 2012 1 commit
  17. 22 Apr, 2012 1 commit
  18. 09 Apr, 2012 1 commit
  19. 21 Mar, 2012 1 commit
    • Chong Yidong's avatar
      Updates to Display chapter of Lisp manual. · fb5b8aca
      Chong Yidong authored
      * doc/lispref/display.texi (The Echo Area): Add xref to Output Streams.
      (Displaying Messages): Improve doc of message.
      (Echo Area Customization, Invisible Text): Copyedits.
      (Invisible Text): Mention that spec comparison is done with eq.
      (Width): Improve doc of char-width.
      (Faces): Recommend using symbol instead of string for face name.
      Minor clarifications.
      (Defining Faces): Copyedits.  Update face example.
      (Attribute Functions): Mark set-face-foreground etc as commands.
      (Face Remapping): Mention text-scale-adjust.  Clarify
      face-remapping-alist and related docs.
      (Face Functions): Don't document make-face or copy-face.
      
      * lisp/faces.el (make-face, make-empty-face, copy-face):
      * lisp/face-remap.el (face-remap-add-relative, face-remap-set-base):
      Doc fixes.
      
      * src/xfaces.c (Vface_remapping_alist): Doc fix.
      fb5b8aca
  20. 18 Mar, 2012 1 commit
  21. 12 Mar, 2012 1 commit
  22. 04 Mar, 2012 1 commit
  23. 31 Jan, 2012 1 commit
    • Chong Yidong's avatar
      Fix menu-set-font interaction with Custom themes. · fce3fdeb
      Chong Yidong authored
      In particular, prevent it from setting non-font-related attributes
      like the foreground and background color.  This requires a bugfix to
      face-spec-reset-face to make "resetting" the default face work.
      
      * lisp/faces.el (face-spec-reset-face): Don't apply unspecified
      attribute values to the default face.
      
      * lisp/frame.el (set-frame-font): New arg ALL-FRAMES.
      
      * lisp/menu-bar.el (menu-set-font): Use set-frame-font.
      fce3fdeb
  24. 11 Jan, 2012 1 commit
  25. 07 Jan, 2012 1 commit
  26. 05 Jan, 2012 1 commit
  27. 05 Dec, 2011 1 commit
  28. 20 Nov, 2011 1 commit
  29. 15 Nov, 2011 1 commit
  30. 18 Oct, 2011 1 commit
  31. 02 Oct, 2011 1 commit
  32. 21 Sep, 2011 1 commit
  33. 11 Sep, 2011 1 commit
  34. 24 Aug, 2011 1 commit
  35. 18 Aug, 2011 1 commit
    • Juri Linkov's avatar
      * lisp/faces.el (error, warning, success): New faces with definitions · bc987f8b
      Juri Linkov authored
      copied from old default values of `font-lock-warning-face',
      `compilation-warning', `compilation-info'.
      
      * lisp/font-lock.el (font-lock-warning-face): Inherit from `error'.
      
      * lisp/progmodes/compile.el (compilation-error): Inherit from `error'.
      (compilation-warning): Inherit from `warning'.
      (compilation-info): Inherit from `success'.
      
      * lisp/dired.el (dired-marked): Inherit from `warning'.
      (dired-flagged): Inherit from `error'.
      
      Fixes: debbugs:6117
      bc987f8b
  36. 07 Aug, 2011 1 commit
    • Juri Linkov's avatar
      Minor doc fixes. Remove duplicate ChangeLog entries. · 75bfc667
      Juri Linkov authored
      * doc/emacs/dired.texi (Operating on Files): Rewrite according to the fact
      that `dired-do-chmod' doesn't use the `chmod' program anymore.
      
      * lisp/faces.el (list-faces-display): Remove extra angle bracket
      from `help-mode-map'.
      
      * lisp/info.el (Info-history-toc-nodes): Doc fix.
      
      * lisp/longlines.el (longlines-mode): Doc fix.
      
      * src/editfns.c (Fformat_time_string): Doc fix, add tag `usage:'
      to show the arg `TIME' instead of `TIMEVAL'.
      75bfc667
  37. 10 Jul, 2011 1 commit
  38. 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
  39. 27 Jun, 2011 1 commit