1. 01 Apr, 2020 1 commit
    • Alexandre Adolphe's avatar
      Allow negative line width for :box face attribute · 34ae2d0c
      Alexandre Adolphe authored
      Separate values for box line width and height and allow both to be
      negative which makes the visual width and height of the boxed string
      unchanged (Bug#13011).
      
      * doc/lispref/display.texi (Face Attributes): Modify :box attribute
      description to reflect the new possibilities.
      * lisp/cus-face.el (custom-face-attributes): Set box attribute to get
      two integer to set vertical and horizontal width and modify pre-filter
      to accept dotted list of two int as valid box attribute.
      * src/dispextern.h (face): Use two int for box horizontal and vertical
      line width.
      
      * src/nsfont.m (nsfont_draw): Use new face attributes.
      * src/nsterm.m (ns_draw_box, ns_draw_relief): Support separated
      horizontal and vertical box line width.
      (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
      (ns_dumpglyphs_image, ns_draw_glyph_string_foreground)
      (ns_draw_composite_glyph_string_foreground): Use new face attributes.
      
      * src/w32term.c (w32_draw_box_rect, w32_draw_relief_rect): Support
      separated horizontal and vertical box line width.
      (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
      (x_draw_composite_glyph_string_foreground)
      (x_draw_glyphless_glyph_string_foreground, x_draw_glyph_string_box)
      (x_draw_image_foreground, x_draw_image_relief)
      (w32_draw_image_foreground_1, x_draw_image_glyph_string): Use new face
      attributes.
      
      * src/xfaces.c (Sinternal_set_lisp_face_attribute, realize_x_face):
      Accept box attribute as a list of two ints.
      
      * src/xdisp.c (estimate_mode_line_height, produce_image_glyph)
      (produce_xwidget_glyph, x_produce_glyphs): Use new face attributes.
      * src/xterm.c (x_draw_box_rect, x_draw_relief_rect): Support separated
      horizontal and vertical box line width.
      (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
      (x_draw_composite_glyph_string_foreground)
      (x_draw_glyphless_glyph_string_foreground, x_draw_glyph_string_box)
      (x_draw_image_foreground, x_draw_image_relief, x_draw_image_foreground_1)
      (x_draw_image_glyph_string): Use new face attributes.
      34ae2d0c
  2. 01 Jan, 2020 1 commit
  3. 14 Oct, 2019 1 commit
  4. 15 Aug, 2019 1 commit
  5. 01 Jan, 2019 1 commit
  6. 19 Jun, 2018 1 commit
    • Daniel Colascione's avatar
      Fix theme application · a9b720ac
      Daniel Colascione authored
      Fix an inverted test.  Patch due to Andy Moreton.
      
      * lisp/cus-face.el (custom-theme-set-faces): Correct sense of
      `custom--should-apply-setting' test.
      a9b720ac
  7. 16 Jun, 2018 1 commit
    • Daniel Colascione's avatar
      Apply non-user themes only when asked · aabaa9f8
      Daniel Colascione authored
      Theme settings now generally aren't actually applied until a call to
      `enable-theme-, either one made explicitly or implicitly through
      `load-theme' with NO-ENABLE nil.  This change has the effect of not
      applying theme changes just because we load a lisp file containing a
      theme specification.  The previous behavior is preserved for the
      special case of the `user' theme, which is frequently used for
      ad-hoc customization.
      
      * lisp/cus-face.el (custom-theme-set-faces): Call
      `custom--should-apply-setting' to decide whether to apply
      a setting.
      
      * lisp/custom.el (custom--should-apply-setting): New function.
      (custom--inhibit-theme-enable): Add `apply-only-user' option;
      default to it.
      (custom-push-theme, custom-theme-set-variables): Call
      `custom--should-apply-setting' to decide whether to apply
      a setting.
      aabaa9f8
  8. 01 Jan, 2018 1 commit
  9. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  10. 01 Jan, 2017 1 commit
  11. 01 Jan, 2016 1 commit
  12. 01 Jan, 2015 2 commits
  13. 25 May, 2014 1 commit
  14. 01 Jan, 2014 1 commit
  15. 21 Dec, 2013 1 commit
    • Chong Yidong's avatar
      Doc fixes for face functions. · bacb0e77
      Chong Yidong authored
      * faces.el (face-spec-set):
      * cus-face.el (custom-theme-set-faces, custom-set-faces):
      * custom.el (defface): Doc fixes.
      
      Fixes: debbugs:16203
      bacb0e77
  16. 01 Jan, 2013 1 commit
  17. 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
  18. 21 Aug, 2012 1 commit
  19. 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
  20. 11 Jan, 2012 1 commit
  21. 05 Jan, 2012 1 commit
  22. 18 Jun, 2011 1 commit
  23. 08 May, 2011 1 commit
  24. 07 Apr, 2011 1 commit
  25. 25 Jan, 2011 1 commit
  26. 15 Jan, 2011 1 commit
  27. 02 Jan, 2011 1 commit
  28. 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
  29. 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
  30. 14 Oct, 2010 1 commit
  31. 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
  32. 29 Aug, 2010 1 commit
  33. 13 Jan, 2010 1 commit
  34. 06 Nov, 2009 1 commit
  35. 05 Jan, 2009 1 commit
  36. 27 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      Remove support for Mac Carbon. · 9e2a2647
      Dan Nicolaescu authored
      * mactoolbox.c:
      * macterm.h:
      * macterm.c:
      * macselect.c:
      * macmenu.c:
      * macgui.h:
      * macfns.c:
      * mac.c: Remove file.
      * s/darwin.h:
      * m/intel386.h:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * tparam.c:
      * termhooks.h:
      * termcap.c:
      * term.c:
      * syssignal.h:
      * sysselect.h:
      * sysdep.c:
      * process.c:
      * lread.c:
      * lisp.h:
      * keyboard.c:
      * image.c:
      * fringe.c:
      * frame.h:
      * frame.c:
      * fontset.c:
      * font.h:
      * font.c:
      * fns.c:
      * fileio.c:
      * emacs.c:
      * dispnew.c:
      * dispextern.h:
      * config.in:
      * atimer.c:
      * Makefile.in: Remove code for Carbon
      
      * erc.el: Remove code for Carbon.
      
      Remove support for Mac Carbon.
      * term/mac-win.el: Remove file
      * international/mule-cmds.el:
      * version.el:
      * startup.el:
      * simple.el:
      * mwheel.el:
      * mouse.el:
      * loadup.el:
      * isearch.el:
      * info.el:
      * frame.el:
      * faces.el:
      * disp-table.el:
      * cus-start.el:
      * cus-face.el:
      * cus-edit.el:
      * Makefile.in: Remove code for Carbon.
      
      Remove support for Mac Carbon.
      * makefile.w32-in:
      * emacsclient.c: Remove code for Carbon.
      
      * PROBLEMS:
      * MACHINES: Remove mentions of Mac Carbon.
      
      * ns-emacs.texi:
      * faq.texi: Remove mentions of Mac Carbon.
      
      * os.texi:
      * frames.texi:
      * display.texi: Remove mentions of Mac Carbon.
      
      * xresources.texi: Remove mentions of Mac Carbon.
      
      * make-tarball.txt:
      * admin.el:
      * FOR-RELEASE:
      * CPP-DEFINES: Remove mentions of Mac Carbon.
      
      Remove support for Mac Carbon.
      * mac: Remove directory.
      * make-dist:
      * configure.in:
      * README:
      * Makefile.in:
      * INSTALL:  Remove code for Carbon.
      * configure: Regenerate.
      9e2a2647
  37. 15 Jul, 2008 1 commit
  38. 13 Jun, 2008 1 commit
  39. 14 May, 2008 1 commit