summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Another tweak to NEWSscratch/jit-lock-antiblink-cleaned-upJoão Távora2019-12-011-1/+1
|
* Adjust jit-lock-antiblink documentation againJoão Távora2019-12-012-22/+19
| | | | | | | | * etc/NEWS: Mention default value of jit-lock-antiblink-grace. * lisp/jit-lock.el (jit-lock-antiblink-grace): Simplifify docstring. (jit-lock--antiblink-post-command): Rework comment. Cleanup whitespace.
* Tweak jit-lock-antiblink-grace's docs and code styleJoão Távora2019-12-012-29/+28
| | | | | | | | | | | * lisp/jit-lock.el (jit-lock-antiblink-grace): Adjust docstring. (jit-lock--antiblink-line-beginning-position) (jit-lock--antiblink-string-or-comment): Rename from jit-lock--antiblink-l-b-p, jit-lock--antiblink-i-s-o-c. (jit-lock--antiblink-post-command): Use new variables. Don't message. * etc/NEWS (jit-lock-antiblink-grace): Adjust entry.
* * etc/NEWS: Mention jit-lock-antiblink-graceJoão Távora2019-12-011-0/+10
|
* Rework jit-lock-antiblink-grace after Stefan's commentsJoão Távora2019-12-011-16/+14
| | | | | | | | * lisp/jit-lock.el (jit-lock--antiblink-l-b-p): Rename from jit-lock--antiblink-l-l-b. (jit-lock--antiblink-grace-timer): Add period to docstring. (jit-lock--antiblink-post-command): Rework after Stefan's comments.
* New jit-lock-antiblink-grace featureJoão Távora2019-12-011-1/+76
| | | | | | | | | * lisp/jit-lock.el (jit-lock-antiblink-grace): New variable. (jit-lock--antiblink-grace-timer, jit-lock--antiblink-l-l-b) (jit-lock--antiblink-i-s-o-c): New helpers. (jit-lock-mode): Tweak post-command-hook and jit-lock-context-timer. (jit-lock--antiblink-post-command): New helper.
* Temporary enable transient-mark-mode for rectangle selectionMattias Engdegård2019-12-011-0/+4
| | | | | * lisp/mouse.el (mouse-drag-region-rectangle): Enable transient-mark-mode during selection (bug#38431).
* ; Auto-commit of loaddefs files.Glenn Morris2019-12-011-27/+75
|
* Suppress superfluous messages in tramp-testsMichael Albinus2019-12-013-3/+12
| | | | | | | * test/lisp/net/tramp-tests.el (tramp-test10-write-region) (tramp-test10-write-region-file-precious-flag) (tramp-test34-connection-local-variables) (tramp-test36-vc-registered): Let-bind `inhibit-message'.
* ibuffer-mark-by-content-regexp: don't depend on `cl-some'Juanma Barranquero2019-12-011-2/+3
| | | | | | * lisp/ibuf-ext.el (ibuffer-mark-by-content-regexp): Use `cl-dolist' instead of `cl-some' to avoid a run-time dependency on cl-lib that triggers an unreported bug similar to bug#38430.
* ibuffer-do-isearch: don't depend on `cl-values-list' (bug#38430)Juanma Barranquero2019-12-011-5/+4
| | | | | | | * lisp/ibuf-ext.el (ibuffer-generate-filter-groups): Don't call `cl-values-list'. Our implementation of that function just checks that its argument is a list, and then returns it. In this specific case, the argument is guaranteed to be a list.
* Improved mouse rectangle selection robustness (bug#38013)Mattias Engdegård2019-11-301-5/+13
| | | | | | | | | | | 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.
* * lisp/tab-line.el (tab-line-auto-hscroll): Don't let-bind buffer-local valuesJuri Linkov2019-11-301-2/+2
| | | | | | 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.
* * lisp/gnus/gnus-win.el (gnus-configure-frame): Check for window-live-p.Juri Linkov2019-11-302-3/+38
| | | | * doc/misc/gnus.texi (Tabbed Interface): New node. (bug#37998)
* * lisp/subr.el: Add discard-input to more functions.Juri Linkov2019-11-301-1/+3
| | | | | | | | | | * 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
* CC Mode. Fix fontification bug with unterminated quotes on adjacent linesAlan Mackenzie2019-11-302-38/+95
| | | | | | | | | | | | | | | | | 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.
* * lisp/image.el: Support image scaling with mouse in other buffer.Juri Linkov2019-11-301-12/+16
| | | | | | | | | | | * 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.
* Use run-with-idle-timer instead of debounce for responsive image scaling.Juri Linkov2019-11-304-90/+54
| | | | | | | | | | | | | | | * 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.
* Fix compilation warning in vc-hg.elJuanma Barranquero2019-11-301-0/+2
| | | | * lisp/vc/vc-hg.el (vc-read-revision): Declare.
* Minor fixes in last changeEli Zaretskii2019-11-301-12/+12
| | | | | * doc/emacs/maintaining.texi (Switching Branches) (Pulling / Pushing, Merging): Fix markup of shell commands.
* vc-hg: prompt for branch to mergeAndrii Kolomoiets2019-11-303-7/+24
| | | | | | | | | | | | | | * 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
* Fix preserving cell boundaries in table.el after <delete>Michal Sojka2019-11-301-0/+1
| | | | | * lisp/textmodes/table.el (table-command-remap-alist): Add entry for 'delete-forward-char'. (Bug#38353)
* Add ':extend' attribute to faces and themesEli Zaretskii2019-11-3017-84/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * src/lread.c (syms_of_lread): Doc fix.Juanma Barranquero2019-11-301-2/+2
|
* Fix image scaling with masks (bug#38109)Alan Third2019-11-292-52/+106
| | | | | | | | | | | | | * 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.
* * lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct`Stefan Monnier2019-11-2915-176/+148
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* * lisp/textmodes/mhtml-mode.el: Fix bug#38372Stefan Monnier2019-11-292-29/+28
| | | | | | | | | | | | | | | | | | 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.
* Add nsm-should-check IPv6 local subnet testsRobert Pluim2019-11-291-3/+11
| | | | | | * 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.
* Support showing one revision with MercurialEli Zaretskii2019-11-291-0/+2
| | | | | * lisp/vc/vc-hg.el (vc-hg-print-log): Support 'with-diff' invocation of "C-1 C-x v L".
* * lisp/so-long.el (so-long-variable-overrides): Set bidi-inhibit-bpaPhil Sainty2019-11-301-2/+4
| | | | (Bug#38407)
* Document 'zap-up-to-char'Eli Zaretskii2019-11-292-1/+8
| | | | | | | | * 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)
* Support showing one revision with SubversionEli Zaretskii2019-11-291-2/+6
| | | | | * lisp/vc/vc-svn.el (vc-svn-print-log): Support 'with-diff' invocation of "C-1 C-x v L".
* Minor fix in 'vc-print-root-log's prompt for revision IDEli Zaretskii2019-11-291-1/+1
| | | | | * lisp/vc/vc.el (vc-print-root-log): Remove text properties from the default revision suggestion.
* Support showing one revision with BazaarEli Zaretskii2019-11-291-0/+1
| | | | | * lisp/vc/vc-bzr.el (vc-bzr-print-log): Support 'with-diff' invocation of "C-1 C-x v L".
* Improve indexing of VC log commandsEli Zaretskii2019-11-291-0/+7
| | | | | * doc/emacs/maintaining.texi (VC Change Log): Add missing index entries.
* Improve documentation and UI of 'C-x v L'Eli Zaretskii2019-11-293-7/+19
| | | | | | | | | | | * 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.
* Improve errors & warnings due to fancy quoted vars (Bug#32939)Noam Postavsky2019-11-288-7/+116
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Stop signaling an error when reading "smart quotes" in symbolsNoam Postavsky2019-11-286-63/+1
| | | | | | | | | | | 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.
* Do not call custom-reevaluate-setting in dired-isearch-filenames-endFilipp Gunbin2019-11-291-3/+3
| | | | | | | | * 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.
* Improve PY-b5 input methodsEli Zaretskii2019-11-281-1/+3
| | | | | * leim/leim-ext.el ("quail/PY-b5"): Assign key sequence for U+25CB (WHITE CIRCLE). (Bug#3179)
* Allow disabling the BPA part of bidi reorderingEli Zaretskii2019-11-283-2/+11
| | | | | | | | | * 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)
* Support wlan in network-interface-list on pre-Vista WindowsRobert Pluim2019-11-281-2/+17
| | | | | * src/w32.c (network_interface_list): Check for 'Wireless' in adapter description to support pre-Vista Windows.
* * lisp/subr.el (do-after-load-evaluation): Fix thinkoStefan Monnier2019-11-271-1/+1
|
* Menu bar rearrangements, move Print menu items to submenu, etc. (bug#37594)Juri Linkov2019-11-283-37/+76
| | | | | | | | | | | | * lisp/menu-bar.el (menu-bar-print-menu): New defvar. (menu-bar-file-menu): Move print entries to submenu. Add menu entries for tab-new, tab-close, make-frame-on-monitor. (menu-bar-showhide-menu): Add menu entry for global-tab-line-mode. Don't add toggle-tab-bar-mode-from-frame on ns where it's unavailable. (menu-bar-tools-menu): Add rgrep. * lisp/bindings.el (next-buffer, previous-buffer): Advertise bindings 'C-x right' and 'C-x left' instead of 'XF86Forward' and 'XF86Back'.
* 'C-1 C-x v L' asks for revision and shows its log entry with diff (bug#38044)Juri Linkov2019-11-284-16/+44
| | | | | | | | | | | | | | | | | * doc/emacs/maintaining.texi (VC Change Log): Explain the numeric prefix arg of 'C-x v L' (vc-print-root-log). * lisp/vc/vc-git.el (vc-git-print-log): Add command line option "-p" when vc-log-view-type is 'with-diff'. (vc-git-log-view-mode): Use long style when vc-log-view-type is 'with-diff'. * lisp/vc/vc.el (vc-print-log-internal): Add optional arg 'type'. (vc-log-internal-common): Use 'region-history-mode' when type is 'with-diff' and backend supports 'region-history-mode'. (vc-print-root-log): Add optional arg 'revision'. In interactive spec read a revision when current-prefix-arg is 1. Use current-prefix-arg "as is" when it is a number. Show revision in long style with diff when limit is 1 and revision is non-nil.
* * lisp/image-mode.el: Resize image on window resizing (bug#32672)Juri Linkov2019-11-272-0/+28
| | | | | | | | * lisp/image-mode.el (image--window-change): New function. (image--window-change-function): New variable. (image-mode--setup-mode): Add buffer-local hook image--window-change to window-size-change-functions, window-state-change-functions, window-selection-change-functions.
* Make some anonymous faces extend to EOLEli Zaretskii2019-11-274-4/+6
| | | | | | | | * lisp/vc/log-edit.el (log-edit-font-lock-keywords): * lisp/mpc.el (mpc-separator): * lisp/help.el (describe-key): * lisp/help-fns.el (describe-symbol): Make the anonymous faces extend to EOL.
* ; Fix recent change in w32.cEli Zaretskii2019-11-271-10/+9
| | | | | * src/w32.c (network_interface_list): Correct an embarrassing typo and cleanup the code.
* Mouse rectangular region selection (bug#38013)Mattias Engdegård2019-11-277-3/+146
| | | | | | | | | | | | | | | | | 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.
* Call vc-setup-buffer in vc-hg-log-incoming and vc-hg-log-outgoingAndrii Kolomoiets2019-11-271-0/+2
| | | | | * lisp/vc/vc-hg.el (vc-hg-log-incoming, vc-hg-log-outgoing): Call vc-setup-buffer.