1. 22 Jan, 2020 1 commit
    • Eli Zaretskii's avatar
      Fix a few typos · 196c42b8
      Eli Zaretskii authored
      * etc/NEWS: Fix a typo.
      * src/xdisp.c (try_window_reusing_current_matrix, try_window_id):
      * src/dispnew.c (scrolling_window): Fix typos in comments.
  2. 21 Jan, 2020 1 commit
    • Eli Zaretskii's avatar
      Avoid leaving artifacts when the system caret is used on w32 · 4aec94da
      Eli Zaretskii authored
      * src/xdisp.c (try_window_reusing_current_matrix, try_window_id):
      * src/dispnew.c (scrolling_window) [HAVE_NTGUI]: If
      w32-use-visible-system-caret is non-nil, disallow scrolling the
      display are in scroll_run_hook.  This avoids copying traces of the
      caret, about which Emacs knows nothing, and thus considers those
      pixels show the default background.  (Bug#39188)
      (gui_update_window_end): Block input only around part of the code,
      as we did before this code was extracted from backend-specific
      * src/w32term.c (w32_update_window_begin, w32_update_window_end):
      Only hide/show the caret when redisplaying the window where the
      caret is shown.
  3. 12 Jan, 2020 1 commit
    • Juri Linkov's avatar
      Handle tab-bar clicks on a GPM-capable console. · d47b1579
      Juri Linkov authored
      * src/term.c (handle_one_term_event): Call tty_handle_tab_bar_click.
      * src/xdisp.c (tty_handle_tab_bar_click): Force reset of up_modifier bit
      from the event modifiers.
      * lisp/tab-line.el (tab-line-tab-current): No need to use inverse-video
      on console/xterm because the selected tab already uses inverse-video.
  4. 06 Jan, 2020 1 commit
    • Eli Zaretskii's avatar
      Avoid assertion violations in very small-height windows · 16c6dfb4
      Eli Zaretskii authored
      * src/xdisp.c (try_cursor_movement, redisplay_window)
      (row_containing_pos): Skip tab-line glyph rows in addition to
      header-line rows, when working on the top-most glyph row of a
      window.  This avoids assertion violations in set_cursor_from_row.
  5. 05 Jan, 2020 1 commit
  6. 04 Jan, 2020 1 commit
  7. 03 Jan, 2020 1 commit
    • Eli Zaretskii's avatar
      Fix redisplay when mode-line-format changes mode-line's height · 37f9182b
      Eli Zaretskii authored
      * lisp/frame.el (top-level): Add mode-line-format,
      tab-line-format, and header-line-format to the list of variables
      that should trigger an immediate redisplay of the buffer's
      window.  This fixes redisplay of windows when the mode line
      changes its height.
      * src/xdisp.c (window_box_height): Use the window's
      mode_line_height, tab_line_height, and header_line_height fields
      in preference to CURRENT_MODE_LINE_HEIGHT,
      respectively.  This fixes display of vertical scroll bar when the
      height of the window's mode line changes.
      * src/dispnew.c (adjust_glyph_matrix): When resizing a window's
      matrix, reset the mode_line_p flag of the previous mode-line row,
      so that the window_box_height, CURRENT_MODE_LINE_HEIGHT, and their
      ilk won't use stale info.  (Bug#38828)
  8. 01 Jan, 2020 1 commit
  9. 29 Dec, 2019 1 commit
  10. 23 Dec, 2019 1 commit
  11. 22 Dec, 2019 1 commit
    • Eli Zaretskii's avatar
      Fix wording of recent documentation changes · d7ab4edd
      Eli Zaretskii authored
      * src/xdisp.c (syms_of_xdisp):
      * lisp/minibuffer.el (minibuffer-message-clear-timeout):
      * etc/NEWS:
      * doc/lispref/display.texi (Displaying Messages): Minor
      changes of wording of a recent commit.  (Bug#38457)
  12. 21 Dec, 2019 1 commit
    • Juri Linkov's avatar
      New variable set-message-function to show message at the end of the minibuffer · 485b423e
      Juri Linkov authored
      * doc/lispref/display.texi (Displaying Messages): Document
      set-message-function and clear-message-function.
      * lisp/minibuffer.el (minibuffer-message-clear-timeout): New defcustom.
      (minibuffer-message-timer, minibuffer-message-overlay): New variables.
      (set-minibuffer-message, clear-minibuffer-message): New functions.
      (set-message-function, clear-message-function): Set variables to
      set-minibuffer-message and clear-minibuffer-message respectively.
      * src/keyboard.c (read_char): Call clear_message when
      Vclear_message_function is a function.
      * src/xdisp.c (set_message): Call Vset_message_function when it's a function.
      (clear_message): Call Vclear_message_function when it's a function.
      (syms_of_xdisp): New variables set-message-function and clear-message-function
  13. 16 Dec, 2019 1 commit
  14. 13 Dec, 2019 1 commit
    • Eli Zaretskii's avatar
      A better fix for extension of overlay string's faces · dd3f2130
      Eli Zaretskii authored
      * src/xdisp.c (face_at_pos): Revert previous change that
      rejected the underlying face if it failed the filtering
      * src/xfaces.c (face_at_string_position): Reset the base face's
      attribute used for filtering faces if the attribute is t.
  15. 12 Dec, 2019 3 commits
  16. 11 Dec, 2019 1 commit
  17. 28 Nov, 2019 1 commit
    • Eli Zaretskii's avatar
      Allow disabling the BPA part of bidi reordering · 5629af9c
      Eli Zaretskii authored
      * src/xdisp.c (syms_of_xdisp): New variable 'bidi-inhibit-bpa'.
      * src/bidi.c (bidi_paired_bracket_type): If 'bidi-inhibit-bpa'
      is non-nil, return BIDI_BRACKET_NONE for all characters.
      * lisp/frame.el: Add 'bidi-inhibit-bpa' to the list of
      variables whose changes require redisplay.  (Bug#38407)
  18. 27 Nov, 2019 1 commit
    • Mattias Engdegård's avatar
      Mouse rectangular region selection (bug#38013) · 4eb7db5d
      Mattias Engdegård authored
      Make it possible to select a rectangular region using the mouse.
      The standard binding is C-M-mouse-1.
      * lisp/mouse.el (mouse-scroll-subr): Add ADJUST argument.
      (mouse-drag-region-rectangle): New.
      * lisp/rect.el (rectangle--reset-point-crutches): New.
      (rectangle--reset-crutches): Use 'rectangle--reset-point-crutches'.
      * src/xdisp.c (remember_mouse_glyph, syms_of_xdisp):
      Add 'mouse-fine-grained-tracking'.
      * doc/lispref/commands.texi (Motion Events):
      Document 'mouse-fine-grained-tracking'.
      * doc/emacs/frames.texi (Mouse Commands):
      * doc/emacs/killing.texi (Rectangles):
      * etc/NEWS: Document rectangular selection with the mouse.
  19. 23 Nov, 2019 2 commits
    • Paul Eggert's avatar
      Add eassert check for bad default face · 5a3e96b1
      Paul Eggert authored
      * src/xdisp.c (append_space_for_newline): Add an eassert check
      that default_face is not null, by calling FACE_FROM_ID instead of
      FACE_FROM_ID_OR_NULL.  Initialize a local only if needed.
    • Eli Zaretskii's avatar
      Fix cursor display at EOL before extended face · 1265e947
      Eli Zaretskii authored
      * src/xdisp.c (extend_face_to_end_of_line): Make sure the
      character position of the stretch glyph inserted to extend the
      face is zero, as various other parts of the display code rely
      on that.  (Bug#38330)
  20. 16 Nov, 2019 1 commit
    • Eli Zaretskii's avatar
      Fix display of R2L text · 99271ea8
      Eli Zaretskii authored
      * src/xdisp.c (extend_face_to_end_of_line): Fix padding of R2L
      screen lines with stretch glyph on the left.  (Bug#38233)
  21. 15 Nov, 2019 1 commit
    • Eli Zaretskii's avatar
      Fix a recent change in xdisp.c · 81d3f1b6
      Eli Zaretskii authored
      * src/xdisp.c (tty_handle_tab_bar_click): Revert the last
      change which made this work only in the HAVE_NTGUI build.
      This function is needed by any build which supports a  mouse
      on TTY frames.
  22. 14 Nov, 2019 1 commit
    • Paul Eggert's avatar
      In Cairo builds, omit some unnecessary functions · 2241f7ca
      Paul Eggert authored
      * src/font.c (fset_font_data, font_put_frame_data)
      * src/ftfont.c (ftfont_open, ftfont_close)
      (ftfont_encode_char, ftfont_glyph_metrics)
      (ftfont_text_extents, ftfont_driver):
      Define only if USE_CAIRO.
      * src/xdisp.c (tty_handle_tab_bar_click):
      Define only if HAVE_NTGUI && !CYGWIN.
  23. 29 Oct, 2019 1 commit
  24. 20 Oct, 2019 1 commit
    • Juanma Barranquero's avatar
      lisp/*.el: Fix typos and improve some docstrings · 41ba8231
      Juanma Barranquero authored
      * lisp/auth-source.el (auth-source-backend-parse-parameters)
      (auth-source--decode-octal-string, auth-source-plstore-search):
      * lisp/registry.el (registry-lookup)
      (registry-lookup-secondary, registry-lookup-secondary-value)
      (registry-search, registry-delete, registry-size, registry-full)
      (registry-insert, registry-reindex, registry-prune)
      * lisp/subr.el (nbutlast, process-live-p):
      * lisp/tab-bar.el (tab-bar-list):
      * lisp/cedet/ede/linux.el (ede-linux--get-archs)
      (ede-linux--include-path, ede-linux-load):
      * lisp/erc/erc-log.el (erc-log-all-but-server-buffers):
      * lisp/erc/erc-pcomplete.el (pcomplete-erc-commands)
      (pcomplete-erc-ops, pcomplete-erc-not-ops, pcomplete-erc-nicks)
      (pcomplete-erc-all-nicks, pcomplete-erc-channels)
      (pcomplete-erc-command-name, pcomplete-erc-parse-arguments):
      * lisp/eshell/em-term.el (eshell-visual-command-p):
      * lisp/gnus/gnus-cache.el (gnus-cache-fully-p):
      * lisp/gnus/nnmail.el (nnmail-get-active)
      * lisp/mail/mail-utils.el (mail-string-delete):
      * lisp/mail/supercite.el (sc-hdr, sc-valid-index-p):
      * lisp/net/ange-ftp.el (ange-ftp-use-smart-gateway-p):
      * lisp/net/nsm.el (nsm-save-fingerprint-maybe)
      (nsm-network-same-subnet, nsm-should-check):
      * lisp/net/rcirc.el (rcirc-looking-at-input):
      * lisp/net/tramp-cache.el (tramp-get-hash-table):
      * lisp/net/tramp-compat.el (tramp-compat-process-running-p):
      * lisp/net/tramp-smb.el (tramp-smb-get-share)
      (tramp-smb-get-localname, tramp-smb-read-file-entry)
      (tramp-smb-get-cifs-capabilities, tramp-smb-get-stat-capability):
      * lisp/net/zeroconf.el (zeroconf-list-service-names)
      (zeroconf-list-service-types, zeroconf-list-services)
      (zeroconf-get-host, zeroconf-get-domain)
      * lisp/nxml/rng-xsd.el (rng-xsd-compile)
      (rng-xsd-make-date-time-regexp, rng-xsd-convert-date-time):
      * lisp/obsolete/erc-hecomplete.el (erc-hecomplete)
      (erc-command-list, erc-complete-at-prompt):
      * lisp/org/ob-scheme.el (org-babel-scheme-get-buffer-impl):
      * lisp/org/ob-shell.el (org-babel--variable-assignments:sh-generic)
      * lisp/org/org-clock.el (org-day-of-week):
      * lisp/progmodes/cperl-mode.el (cperl-char-ends-sub-keyword-p):
      * lisp/progmodes/gud.el (gud-find-c-expr, gud-innermost-expr)
      (gud-prev-expr, gud-next-expr):
      * lisp/textmodes/table.el (table--at-cell-p, table--probe-cell)
      (table--put-cell-valign-property): Fix typos.
      * lisp/so-long.el (fboundp): Doc fix.
      (so-long-mode-line-info, so-long-mode)
      (so-long--check-header-modes): Fix typos.
      * lisp/emulation/viper-mous.el (viper-surrounding-word)
      (viper-mouse-click-get-word): Fix typos.
      (viper-mouse-click-search-word): Doc fix.
      * lisp/erc/erc-backend.el (erc-forward-word, erc-word-at-arg-p)
      (erc-bounds-of-word-at-point): Fix typos.
      (erc-decode-string-from-target, define-erc-response-handler):
      Refill docstring.
      * lisp/erc/erc-dcc.el (pcomplete/erc-mode/DCC): Fix typo.
      (erc-dcc-get-host, erc-dcc-auto-mask-p, erc-dcc-get-file):
      Doc fixes.
      * lisp/erc/erc-networks.el (erc-network-name): Fix typo.
      (erc-determine-network): Refill docstring.
      * lisp/net/dbus.el (dbus-list-hash-table)
      (dbus-string-to-byte-array, dbus-byte-array-to-string)
      (dbus-check-event): Fix typos.
      (dbus-introspect-get-property): Doc fix.
      * lisp/net/tramp-adb.el (tramp-adb-file-name-handler):
      Rename ARGS to ARGUMENTS.  Doc fix.
      (tramp-adb-sh-fix-ls-output, tramp-adb-execute-adb-command)
      (tramp-adb-find-test-command): Fix typos.
      * lisp/net/tramp.el (tramp-set-completion-function)
      (tramp-get-completion-methods, tramp-get-completion-user-host)
      (tramp-get-inode, tramp-get-device, tramp-mode-string-to-int)
      (tramp-call-process, tramp-call-process-region)
      (tramp-process-lines): Fix typos.
      (tramp-interrupt-process): Doc fix.
      * lisp/org/ob-core.el (org-babel-named-src-block-regexp-for-name)
      (org-babel-named-data-regexp-for-name): Doc fix.
      (org-babel-src-block-names, org-babel-result-names): Fix typos.
      * lisp/progmodes/inf-lisp.el (lisp-input-filter): Doc fix.
      (lisp-fn-called-at-pt): Fix typo.
      * lisp/progmodes/xref.el (xref-backend-identifier-at-point):
      Doc fix.
      (xref-backend-identifier-completion-table): Fix typo.
  25. 19 Oct, 2019 1 commit
    • Eli Zaretskii's avatar
      A better fix for tab-line mouse highlight on TTY frames · 2a3577ba
      Eli Zaretskii authored
      * src/dispnew.c (mode_line_string):
      * src/xdisp.c (note_mode_line_or_margin_highlight): Remove
      recently-added workarounds for incorrect TTY mouse highlight:
      they are no longer needed.
      (mark_window_display_accurate_1): Set the header_line_p and
      tab_line_p flags of the window's current_matrix if the window
      displays these.
      (display_mode_line): Set the header_line_p and tab_line_p
      flags of the window's desired_matrix if the window displays
      these.  (Bug#37807)
  26. 18 Oct, 2019 2 commits
    • Paul Eggert's avatar
      Pacify x86 GCC 9 in tab bar code · f9744a5f
      Paul Eggert authored
      * src/xdisp.c (tty_get_tab_bar_item): Simplify a bit.  This
      pacifies --enable-gcc-warnings with x86 GCC 9.2.1 20190827
      (Red Hat 9.2.1-1) when combined with -fsanitize=undefined.
    • Eli Zaretskii's avatar
      Fix mouse highlight with tab-line on TTY frames · 2c9128ce
      Eli Zaretskii authored
      * src/xdisp.c (note_mode_line_or_margin_highlight):
      * src/dispnew.c (mode_line_string): Fix mouse highlight on TTY
      frames when both header line and tab-line are displayed.
  27. 14 Oct, 2019 10 commits