1. 08 Dec, 2019 1 commit
  2. 06 Dec, 2019 1 commit
    • Eli Zaretskii's avatar
      Clarify documentation of functions that use the default face · 30eac479
      Eli Zaretskii authored
      * lisp/simple.el (default-font-height, default-font-width)
      (default-line-height): Say in the doc strings that the default
      face these functions use is for the currently selected frame.
      
      * doc/lispref/display.texi (Attribute Functions)
      (Low-Level Font): Document more clearly the dependence of the
      results of 'face-font', 'default-font-width', and
      'default-font-height' on the frame's definition of the default
      face.
      30eac479
  3. 26 Nov, 2019 1 commit
    • Juri Linkov's avatar
      message uses minibuffer-message in the active minibuffer (bug#17272 bug#19064) · aa89c84e
      Juri Linkov authored
      * doc/lispref/display.texi (Displaying Messages): Explain the
      behavior of using minibuffer-message if the minibuffer is active.
      
      * src/editfns.c (Fmessage_in_echo_area): New function with body
      copied from Fmessage.
      (Fmessage): Call minibuffer-message in the active minibuffer,
      otherwise call Fmessage_in_echo_area.
      (message-in-echo-area): New variable.
      
      * lisp/isearch.el (isearch--momentary-message, isearch-message):
      * lisp/minibuffer.el (minibuffer-message, minibuffer-completion-help):
      Use 'message-in-echo-area' instead of 'message' where necessary.
      
      * lisp/autorevert.el (auto-revert-handler):
      * lisp/man.el (Man-bgproc-sentinel):
      * lisp/subr.el (do-after-load-evaluation):
      Revert recent changes that replaced 'message' with 'minibuffer-message'.
      This is not needed anymore since 'message' uses 'minibuffer-message'
      in the active minibuffer.
      aa89c84e
  4. 02 Nov, 2019 2 commits
  5. 01 Nov, 2019 3 commits
  6. 24 Oct, 2019 1 commit
  7. 22 Oct, 2019 1 commit
  8. 20 Oct, 2019 1 commit
  9. 14 Oct, 2019 2 commits
  10. 03 Oct, 2019 1 commit
    • Basil L. Contovounesios's avatar
      Further improve button.el support for help-echo · 0fc81774
      Basil L. Contovounesios authored
      The last change to forward-button added support for help-echo values
      that are functions.  This patch fixes the arguments passed to such
      functions and further adds support for help-echo values that are
      forms (bug#37515).
      * doc/lispref/display.texi (Button Properties): Fix description of
      help-echo button property.
      * lisp/button.el (button--help-echo): New function.
      (forward-button): Use it.
      (backward-button): Clarify help-echo reference in docstring.
      * test/lisp/button-tests.el (button--help-echo-string)
      (button--help-echo-form, button--help-echo-function): New tests.
      0fc81774
  11. 30 Sep, 2019 1 commit
  12. 29 Sep, 2019 2 commits
  13. 28 Sep, 2019 2 commits
  14. 24 Sep, 2019 1 commit
  15. 07 Sep, 2019 1 commit
  16. 31 Aug, 2019 1 commit
  17. 03 Aug, 2019 1 commit
  18. 01 Aug, 2019 3 commits
  19. 31 Jul, 2019 1 commit
  20. 30 Jul, 2019 1 commit
    • Lars Ingebrigtsen's avatar
      Extend button.el to take callback data · b75fb81e
      Lars Ingebrigtsen authored
      * doc/lispref/display.texi (Button Buffer Commands)
      (Button Buffer Commands): Document this.
      * lisp/button.el (backward-button, forward-button): Accept a
      NO-ERROR parameter.
      (button-activate): Make it possible to have specific data in the
      callback action.
      b75fb81e
  21. 22 Jul, 2019 2 commits
    • Alan Mackenzie's avatar
    • Martin Rudalics's avatar
      Handle persistence of windows' scroll bar and fringes settings (Bug#36193) · 8e0ebb9a
      Martin Rudalics authored
      * doc/lispref/display.texi (Fringe Size/Pos): Document new
      argument PERSISTENT of 'set-window-fringes'.
      (Scroll Bars): Document new argument PERSISTENT of
      'set-window-scroll-bars'.  Mention that HORIZONTAL-TYPE must
      be 'bottom' to show a horizontal scroll bar on mini windows.
      * lisp/window.el (window-min-pixel-height): For mini windows the
      minimum height is one line.
      (window--min-size-1): Use value returned by
      'window-min-pixel-height' when dealing with mini windows.
      (window--resize-mini-window): Try to handle horizontal scroll
      bars and size restrictions more accurately.
      (window--state-put-2): Handle persistence of scroll bar
      settings.
      * src/frame.c (make_frame): Allow horizontal scroll bars in
      mini windows.
      (adjust_frame_size): Drop PIXELWISE argument in
      'resize_frame_windows' calls.
      * src/window.c (set_window_buffer): Don't override WINDOW's
      scroll bar and fringe settings when marked as persistent.
      (resize_frame_windows): Drop fourth argument PIXELWISE - SIZE
      is always specified in terms of pixels.  Try to handle height
      of mini windows more accurately.
      (grow_mini_window, shrink_mini_window): Use body height of
      mini window when calculating expected height change.  Take
      horizontal scroll bars into account.
      (struct saved_window): Two new members to handle persistence
      of window fringes and scroll bars.
      (Fset_window_configuration, save_window_save): Handle
      persistence of fringes and scroll bars.
      (set_window_fringes, set_window_scroll_bars): New arguments
      PERSISTENT.  Make dimension checks more accurate.
      (Fset_window_fringes): New argument PERSISTENT.
      (Fwindow_fringes, Fwindow_scroll_bars): Add PERSISTENT to
      return values.
      (Fset_window_scroll_bars): New argument PERSISTENT.  In
      doc-string mention that 'bottom' must be specified to get a
      horizontal scroll bar in mini windows.
      (compare_window_configurations): Add checks for persistence of
      fringes and scroll bars.
      * src/window.h (struct window): New boolean slots
      'fringes_persistent' and 'scroll_bars_persistent'.
      (WINDOW_HAS_HORIZONTAL_SCROLL_BAR): Allow horizontal scroll bars
      for mini windows.
      (resize_frame_windows): Remove fourth argument of
      'resize_frame_windows' in external declaration.
      * src/xdisp.c (resize_mini_window): Use box text height to
      tell whether mini window height changed.
      (set_horizontal_scroll_bar): Set mini window's horizontal
      scroll bar when its type is specified as 'bottom'.
      * etc/NEWS: Mention new options for 'set-window-fringes' and
      'set-window-scroll-bars'.
      8e0ebb9a
  22. 20 Jul, 2019 1 commit
    • Basil L. Contovounesios's avatar
      Allow counter-clockwise rotations in image-rotate · b728620a
      Basil L. Contovounesios authored
      * lisp/image.el (image-rotate): Extend with an optional argument
      specifying the rotation in degrees (bug#35421).
      * doc/lispref/display.texi (Showing Images):
      * etc/NEWS: Document the change.
      * test/lisp/image-tests.el (image-rotate): New test.
      b728620a
  23. 16 Jul, 2019 2 commits
  24. 15 Jul, 2019 2 commits
    • Glenn Morris's avatar
    • Felix E. Klee's avatar
      Add support for paths to svg.el · d6bc55ae
      Felix E. Klee authored
      * doc/lispref/display.texi (SVG Images): Document svg-path,
      svg-clip-path and svg-node (bug#32359).
      
      * doc/lispref/display.texi (SVG Path Commands): New node.
      
      * lisp/svg.el (svg--plist-delete, svg--path-command-symbol)
      (svg--elliptical-arc-coordinates, svg--elliptical-arc-command)
      (svg--moveto-command, svg--closepath-command)
      (svg--lineto-command, svg--horizontal-lineto-command)
      (svg--vertical-lineto-command, svg--curveto-command)
      (svg--smooth-curveto-command)
      (svg--quadratic-bezier-curveto-command)
      (svg--smooth-quadratic-bezier-curveto-command)
      (svg--eval-path-command, svg-path, svg-clip-path, svg-node): New
      functions.
      d6bc55ae
  25. 06 Jul, 2019 1 commit
  26. 01 Jul, 2019 1 commit
    • Eli Zaretskii's avatar
      Adjust return value of image-transforms-p · 6b7136a8
      Eli Zaretskii authored
      * src/image.c (Fimage_transforms_p):
      * doc/lispref/display.texi (Image Descriptors):
      image-transforms-p now returns at most (scale rotate90), even
      if ImageMagick is available.
      6b7136a8
  27. 29 Jun, 2019 1 commit
    • Eli Zaretskii's avatar
      Support native image transforms on MS-Windows · 74a5a332
      Eli Zaretskii authored
      This changeset also rearranges native image transform code
      for other platforms to make it cleaner, and also removes
      the support for native cropping.  For the discussions, see
      https://lists.gnu.org/archive/html/emacs-devel/2019-06/msg00242.html
      
      * src/w32term.c (w32_image_rotations_p, transform): New functions.
      (w32_draw_image_foreground): If image rotation is requested
      and supported, call PlgBlt to transform the image.
      (w32_initialize): Populate the PlgBlt function pointer if it
      is supported.
      * src/w32term.h (w32_image_rotations_p): Add prototype.
      * src/dispextern.h (struct image) [HAVE_NTGUI]: New member xform.
      * src/image.c (compute_image_rotation): Renamed from
      image_set_rotation.  Only compute and returns the rotation
      angle; leave the matrix calculation for later.  Log an error
      message if the :rotation parameter is not a number.
      (image_set_crop): Function deleted.  We no longer support
      native cropping, as one can display an image slice instead.
      (image_set_transform): Compute the transform matrix in its
      entirety here, in two variants: one for XRender and Cairo, the
      other for NS and MS-Windows.  call compute_image_size and
      compute_image_rotation internally.
      (lookup_image) [HAVE_NATIVE_TRANSFORMS]: Call only
      image_set_transform.  No need to pass the transform matrix to
      image_set_transform.
      (Fimage_transforms_p): Return a list of transform capabilities
      rather than a simple boolean.  Support TTY frames as well.
      * src/nsimage.m (setTransform:): Don't invert the matrix, as
      it is already inverted in image.c.
      
      * test/manual/image-transforms-tests.el (test-cropping): State
      in the text that only ImageMagick supports cropping.
      
      * doc/lispref/display.texi (Image Descriptors): Update the
      documentation of native image transforms.
      (ImageMagick Images): Move the description of ':crop' here.
      
      * etc/NEWS: Minor copyedits of the feature announcement.
      74a5a332
  28. 25 Jun, 2019 1 commit
    • Alan Mackenzie's avatar
      Fix documentation of inhibit-modification-hooks in overlays + text properties · 8c17995f
      Alan Mackenzie authored
      This fixes bug #25111.
      
      * doc/lispref/display.text (Overlay Properties): For the hook property
      modification-hooks, state that inhibit-modification-hooks is bound to non-nil
      when calling its functions.  This also applies to insert-in-front-hooks and
      insert-behind-hooks, which refer to modification-hooks.
      
      * doc/lispref/text.texi (Special Properties): For the hook property
      modification-hooks, state that inhibit-modification-hooks is NOT bound to
      non-nil when calling its functions.  For the hooks insert-in-fron-hooks and
      insert-behind-hooks, state that that variable does get bound to non-nil.
      8c17995f
  29. 17 Jun, 2019 1 commit