1. 01 Dec, 2019 11 commits
  2. 30 Nov, 2019 13 commits
    • Mattias Engdegård's avatar
      Improved mouse rectangle selection robustness (bug#38013) · 293eb325
      Mattias Engdegård authored
      Make the rectangular selection work better with
      display-line-numbers-mode and side-by-side windows.
      Also make the mouse track the text cursor in a consistent way.
      
      * lisp/mouse.el (mouse--rectangle-track-cursor): Added constant.
      (mouse-drag-region-rectangle): Take the line-number width into
      account, and use window-relative columns.  Track either the cursor or
      rectangle corner with more care.
      293eb325
    • Juri Linkov's avatar
      * lisp/tab-line.el (tab-line-auto-hscroll): Don't let-bind buffer-local values · dfbbbf31
      Juri Linkov authored
      Use setq to set buffer-local values of truncate-lines and buffer-undo-list.
      This will prevent leaking of let-bound values to buffer-local values
      of the minibuffer.
      dfbbbf31
    • Juri Linkov's avatar
      * lisp/gnus/gnus-win.el (gnus-configure-frame): Check for window-live-p. · df89d6d6
      Juri Linkov authored
      * doc/misc/gnus.texi (Tabbed Interface): New node.  (bug#37998)
      df89d6d6
    • Juri Linkov's avatar
      * lisp/subr.el: Add discard-input to more functions. · 54c792ec
      Juri Linkov authored
      * lisp/subr.el (read-char-from-minibuffer-insert-other)
      (y-or-n-p-insert-other): Use discard-input in case of user mistake.
      (do-after-load-evaluation): Add discard-input before calling 'message',
      so in case of the active minibuffer, calling minibuffer-message will allow
      sit-for to wait the complete timeout, because discard-input will discard
      all initial events that prevent sit-for from waiting during startup.
      https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00581.html
      54c792ec
    • Alan Mackenzie's avatar
      CC Mode. Fix fontification bug with unterminated quotes on adjacent lines · 757e66af
      Alan Mackenzie authored
      In particular, with these unterminated quotes on each of two adjacent lines,
      the following text was spuriously fontified with string face.
      
      * lisp/progmodes/cc-defs.el
      (c-search-backward-char-property-with-value-on-char): New macro.
      
      * lisp/progmodes/cc-mode.el (c-clear-string-fences): Check whether there is an
      unmatched quote at a lower buffer position which should match the current
      quote, rather than wrongly assuming the latter is unmatched and marking it
      with a punctuation syntax.
      (c-font-lock-fontify-region): Ensure all pertinent parts of the buffer have
      string fence properties applied before performing any syntactic operations on
      it; in particular, this applies to a quote at an earlier buffer position which
      "matches" one inside the region about to be fontified.
      757e66af
    • Juri Linkov's avatar
      * lisp/image.el: Support image scaling with mouse in other buffer. · 3c278b49
      Juri Linkov authored
      * lisp/image.el (image-increase-size, image-decrease-size):
      Add optional arg position.
      (image-mouse-increase-size, image-mouse-decrease-size):
      Use '(point-marker)' for arg position.
      (image--get-image): Use get-char-property from position if non-nil,
      and its buffer.
      (image--get-imagemagick-and-warn, image--change-size):
      Add optional arg position.
      3c278b49
    • Juri Linkov's avatar
      Use run-with-idle-timer instead of debounce for responsive image scaling. · d64ea182
      Juri Linkov authored
      * lisp/emacs-lisp/timer.el (debounce, debounce-reduce): Revert macro addition.
      https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg01133.html
      
      * lisp/image.el (image-increase-size, image-decrease-size):
      Use run-with-idle-timer.
      (image--change-size): Rename back from image--change-size-function.
      
      * lisp/image-mode.el (image-mode--setup-mode): Remove hooks
      window-size-change-functions and window-selection-change-functions (bug#32672)
      (image-fit-to-window): Rename from image--window-change-function.
      (image--window-state-change): Rename from image--window-change.
      Use run-with-idle-timer.
      d64ea182
    • Juanma Barranquero's avatar
      Fix compilation warning in vc-hg.el · 9ac78ef5
      Juanma Barranquero authored
      * lisp/vc/vc-hg.el (vc-read-revision): Declare.
      9ac78ef5
    • Eli Zaretskii's avatar
      Minor fixes in last change · e6e0654d
      Eli Zaretskii authored
      * doc/emacs/maintaining.texi (Switching Branches)
      (Pulling / Pushing, Merging): Fix markup of shell commands.
      e6e0654d
    • Andrii Kolomoiets's avatar
      vc-hg: prompt for branch to merge · 561840b5
      Andrii Kolomoiets authored
      * lisp/vc/vc-hg.el (vc-hg-merge-branch): Prompt for revision to merge.
      (vc-hg-revision-table): Use branches, tags and bookmarks as competion
      candidates.
      
      * etc/NEWS: Mention changes of vc-hg.el
      
      * doc/emacs/maintaining.texi (Switching Branches): Mention 'hg update'
      command.
      (Merging): Mention 'hg merge' command.
      
      This fixes bug#22860
      561840b5
    • Michal Sojka's avatar
      Fix preserving cell boundaries in table.el after <delete> · 63e7dd43
      Michal Sojka authored
      * lisp/textmodes/table.el (table-command-remap-alist): Add
      entry for 'delete-forward-char'.  (Bug#38353)
      63e7dd43
    • Eli Zaretskii's avatar
      Add ':extend' attribute to faces and themes · 64687872
      Eli Zaretskii authored
      * etc/themes/wombat-theme.el:
      * etc/themes/wheatgrass-theme.el:
      * etc/themes/tsdh-light-theme.el:
      * etc/themes/tsdh-dark-theme.el:
      * etc/themes/tango-theme.el:
      * etc/themes/tango-dark-theme.el:
      * etc/themes/misterioso-theme.el:
      * etc/themes/manoj-dark-theme.el:
      * etc/themes/light-blue-theme.el:
      * etc/themes/leuven-theme.el:
      * etc/themes/dichromacy-theme.el:
      * etc/themes/deeper-blue-theme.el:
      * etc/themes/adwaita-theme.el: Add ':extend' attribute to all
      faces that are by default defined with it.
      
      * lisp/vc/smerge-mode.el (smerge-upper, smerge-lower)
      (smerge-base):
      * lisp/vc/log-view.el (log-view-file, log-view-message):
      * lisp/vc/ediff-init.el (ediff-current-diff-A)
      (ediff-current-diff-B, ediff-current-diff-C)
      (ediff-current-diff-Ancestor, ediff-even-diff-A)
      (ediff-even-diff-B, ediff-even-diff-C)
      (ediff-even-diff-Ancestor, ediff-odd-diff-A)
      (ediff-odd-diff-B, ediff-odd-diff-C)
      (ediff-odd-diff-Ancestor):
      * lisp/vc/diff-mode.el (diff-header, diff-file-header)
      (diff-removed, diff-added): Make sure all definitions of faces
      have the same value of the ':extend' property, otherwise
      customizing background color or underline etc. attributes of
      these faces on some displays will produce effects different
      from other displays.
      64687872
    • Juanma Barranquero's avatar
      abd3dd3a
  3. 29 Nov, 2019 12 commits
    • Alan Third's avatar
      Fix image scaling with masks (bug#38109) · 3e9c82d9
      Alan Third authored
      * src/image.c (lookup_image): Move call to image_set_transform after
      postprocess_image.
      (image_create_x_image_and_pixmap_1): Use new function.
      (image_set_transform): Apply the transform to the mask too.
      (x_create_xrender_picture): New function.
      (Create_Pixmap_From_Bitmap_Data):
      (xpm_load): Use new function.
      * src/xterm.c (x_composite_image): Use PictOpOver when there is a mask
      so the transparency is honoured.
      (x_draw_image_foreground_1): Use x_composite_image.
      3e9c82d9
    • Stefan Monnier's avatar
      * lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct` · b1a69505
      Stefan Monnier authored
      This makes the accessors into (inlined) functions (instead of macros),
      which simplifies some uses, and it makes the gnus-info-set-<foo>
      macros redundant since we can use `setf` instead.  Remove them and
      update all users.
      
      (gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
      (gnus-info-method, gnus-info-params): Auto-defined by defstruct.
      (gnus-info-level, gnus-info-score): Define as a function.  Add gv-setter.
      (gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
      use `setf` instead.
      (gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
      Define as a function.
      (gnus-info-set-entry): Delete function.
      (gnus-info--grow-entry): New function, extracted from it.
      (gnus-info--set-level, gnus-info--set-score): New functions, extracted
      from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
      (gnus-get-info): Define as a function.
      
      * lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
      Use the `extend` arg of `gnus-info-set-method`.
      (gnus-group-sort-selected-flat): eta-reduce.
      b1a69505
    • Stefan Monnier's avatar
      * lisp/textmodes/mhtml-mode.el: Fix bug#38372 · 7fff418e
      Stefan Monnier authored
      The `sgml-syntax-propertize-rules` rely on the `sgml--syntax-propertize-ppss`
      setup by `sgml-syntax-propertize` so it is not correct/safe to use
      them directly like html used to do.
      
      Change `sgml-syntax-propertize` so it can be used by mhtml,
      and then adjust mhtml-mode accordingly.
      
      * lisp/textmodes/mhtml-mode.el: Remove redundant `eval-and-compile`.
      Only require cl-lib at compile-time.
      (mhtml--syntax-propertize): New const, extracted from mhtml-syntax-propertize.
      (mhtml-syntax-propertize): Use `sgml-syntax-propertize`.
      
      * lisp/textmodes/sgml-mode.el (sgml--syntax-propertize): New const,
      extracted from sgml-syntax-propertize.
      (sgml-syntax-propertize): Add optional `rules-function` arg.
      7fff418e
    • Robert Pluim's avatar
      Add nsm-should-check IPv6 local subnet tests · 6d8e758e
      Robert Pluim authored
      * test/lisp/net/nsm-tests.el (nsm-check-local-subnet-ipv6): Now
      that IPv6 addresses are returned from network-interface-list, test
      nsm-should check and nsm-network-same-subnet for IPv6 as well.
      6d8e758e
    • Eli Zaretskii's avatar
      Support showing one revision with Mercurial · 8400766b
      Eli Zaretskii authored
      * lisp/vc/vc-hg.el (vc-hg-print-log): Support 'with-diff'
      invocation of "C-1 C-x v L".
      8400766b
    • Phil Sainty's avatar
      17f9151f
    • Eli Zaretskii's avatar
      Document 'zap-up-to-char' · baa9ea73
      Eli Zaretskii authored
      * doc/emacs/killing.texi (Other Kill Commands): Document
      'zap-up-to-char'.
      
      * lisp/simple.el (zap-to-char): Mention 'zap-up-to-char' in
      the doc string.  (Bug#38392)
      baa9ea73
    • Eli Zaretskii's avatar
      Support showing one revision with Subversion · 11baa417
      Eli Zaretskii authored
      * lisp/vc/vc-svn.el (vc-svn-print-log): Support 'with-diff'
      invocation of "C-1 C-x v L".
      11baa417
    • Eli Zaretskii's avatar
      Minor fix in 'vc-print-root-log's prompt for revision ID · 3fe9d865
      Eli Zaretskii authored
      * lisp/vc/vc.el (vc-print-root-log): Remove text properties
      from the default revision suggestion.
      3fe9d865
    • Eli Zaretskii's avatar
      Support showing one revision with Bazaar · cf715848
      Eli Zaretskii authored
      * lisp/vc/vc-bzr.el (vc-bzr-print-log): Support 'with-diff'
      invocation of "C-1 C-x v L".
      cf715848
    • Eli Zaretskii's avatar
      Improve indexing of VC log commands · b20d7f2c
      Eli Zaretskii authored
      * doc/emacs/maintaining.texi (VC Change Log): Add missing
      index entries.
      b20d7f2c
    • Eli Zaretskii's avatar
      Improve documentation and UI of 'C-x v L' · 6e41b08e
      Eli Zaretskii authored
      * lisp/vc/vc.el (vc-print-root-log): Improve the wording of
      the doc string and of the prompt for the root directory.
      
      * etc/NEWS: Improve and expand the wording of the changes in
      'C-x v L'.
      
      * doc/emacs/maintaining.texi (VC Change Log): Improve and
      clarify wording of the 'C-x v L' description.
      6e41b08e
  4. 28 Nov, 2019 4 commits
    • Noam Postavsky's avatar
      Improve errors & warnings due to fancy quoted vars (Bug#32939) · b2790db0
      Noam Postavsky authored
      Add some hints to the message for byte compiler free & unused variable
      warnings, and 'void-variable' errors where the variable has confusable
      quote characters in it.
      * lisp/help.el (uni-confusables), uni-confusables-regexp): New
      constants.
      (help-command-error-confusable-suggestions): New function, added to
      `command-error-function'.
      (help-uni-confusable-suggestions): New function.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-variable-ref):
      * lisp/emacs-lisp/cconv.el (cconv--analyze-use): Use it.
      
      * lisp/emacs-lisp/lisp-mode.el
      (lisp--match-confusable-symbol-character): New function.
      (lisp-fdefs): Use it to fontify confusable characters with
      font-lock-warning-face when they occur in symbol names.
      * doc/lispref/modes.texi (Faces for Font Lock):
      * doc/lispref/objects.texi (Basic Char Syntax): Recommend backslash
      escaping of confusable characters, and mention new fontification.
      * etc/NEWS: Announce the new fontification behavior.
      * test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-fontify-confusables):
      New test.
      b2790db0
    • Noam Postavsky's avatar
      Stop signaling an error when reading "smart quotes" in symbols · 85f586f3
      Noam Postavsky authored
      Revert commits from 2018-01-28 "Fix round tripping of read->print for
      symbols with strange quotes", and 2017-07-22 "Signal error for symbol
      names with strange quotes (Bug#2967)".
      * etc/NEWS: Remove corresponding entries.
      * src/character.c (confusable_symbol_character_p):
      * test/src/lread-tests.el (lread-tests--old-style-backquotes): Remove.
      * src/lread.c (read1): Don't signal error on confusable character.
      * src/print.c (print_object): Don't escape confusable characters.
      85f586f3
    • Filipp Gunbin's avatar
      Do not call custom-reevaluate-setting in dired-isearch-filenames-end · 98f8c5fb
      Filipp Gunbin authored
        * lisp/dired-aux.el (dired-isearch-filenames-end)
        (dired-isearch-filenames, dired-isearch-filenames-regexp): Use
        temporary local variable for dired-isearch-filenames instead of
        custom-reevaluate-setting (Bug#30187).  Without this fix, the value
        set in .emacs with plain setq would be lost after one isearch.
      98f8c5fb
    • Eli Zaretskii's avatar
      Improve PY-b5 input methods · af724ed5
      Eli Zaretskii authored
      * leim/leim-ext.el ("quail/PY-b5"): Assign key sequence for
      U+25CB (WHITE CIRCLE).  (Bug#3179)
      af724ed5