aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Use remapping in ffap-bindings (Bug#35577)Noam Postavsky2019-05-121-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ffap.el (ffap-bindings): Bind to the [remap COMMAND] instead of hardcoding the default keybindings. This better adapts better if non-default are used. And lets the original keybindings be remembered, so that, e.g., \[find-file] in docstrings will still be substituted with C-x C-f (even though that binding has been remapped to find-file-at-point.
* | | | | Fix Gnus summary widget navigation across framesBasil L. Contovounesios2019-05-122-15/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-sum.el (gnus-summary-widget-forward) (gnus-summary-widget-backward): Signal more informative error if article window is not found. Consider other frames displaying article buffer, and raise its frame before navigating its widgets. (bug#35565) * lisp/gnus/gnus-win.el (gnus-get-buffer-window): Simplify and add docstring.
* | | | | Make application/x-patch inlinable in mm-decode.elBasil L. Contovounesios2019-05-121-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/mm-decode.el (mm-inline-media-tests, mm-inlined-types): Include application/x-patch as a synonym of text/x-patch and text/x-diff. (bug#35236)
* | | | | Fix some gnus-msg.el variables (bug#35239)Basil L. Contovounesios2019-05-121-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/gnus/gnus-msg.el (gnus-gcc-externalize-attachments): Fix custom :type. (gnus-debug-files, gnus-debug-exclude-variables): Mark variables that have been unused since Emacs 24.1 as obsolete. (gnus-check-before-posting): Remove unused variable.
* | | | | Use characters, not symbols for table-cell-bindingsMauro Aranda2019-05-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/table.el (table-cell-bindings): Add missing '?', to avoid confusion between symbols and characters in bindings. (Bug#35533)
* | | | | Generate some repetitive WordStar code with macrosMark Oteiza2019-05-101-150/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/obsolete/ws-mode.el (ws-set-marker-0, ws-set-marker-1): (ws-set-marker-2, ws-set-marker-3, ws-set-marker-4, ws-set-marker-5): (ws-set-marker-6, ws-set-marker-7, ws-set-marker-8, ws-set-marker-9): (ws-find-marker-0, ws-find-marker-1, ws-find-marker-2, ws-find-marker-3): (ws-find-marker-4, ws-find-marker-5, ws-find-marker-6, ws-find-marker-7): (ws-find-marker-8, ws-find-marker-9): Remove. (ws-set-marker, ws-find-marker): New macros. Use them.
* | | | | Convert Free_Pixmap macro into terminal hookAlexander Gramiak2019-05-109-35/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/termhooks.h (terminal) [HAVE_WINDOW_SYSTEM]: New terminal hook free_pixmap. * src/image.c: Replace Free_Pixmap with free_pixmap. * src/msdos.h (FRAME_X_DISPLAY): * src/nsgui.h (Display): * src/nsterm.h (FRAME_NS_DISPLAY, FRAME_X_DISPLAY, FRAME_X_SCREEN) (FRAME_X_VISUAL): * src/w32term.h (FRAME_X_DISPLAY): Remove unused X-compatibility macros and typedefs. * src/nsterm.m: * src/w32term.c: * src/xterm.c: Implement and set free_pixmap hook.
* | | | | Remove display member of glyph_stringAlexander Gramiak2019-05-104-74/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This member has little value even on X, and it leaks internal backend details to the glyph_string struct. * src/dispextern.h (glyph_string): Remove X display member. * src/xdisp.c (init_glyph_string): Remove initialization of display. * src/xfont.c (xfont_draw): * src/xterm.c: Use FRAME_X_DISPLAY (s->f) instead of display member.
* | | | | * lisp/help.el (help--read-key-sequence): Handle `switch-frame' eventsStefan Monnier2019-05-101-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you do `C-h k ... mouse-1 in other frame` (at least if you have a focus that follows the mouse), then additionally to the down-mouse-1 and mouse-1 events, a `switch-frame` event (and `select-window` event as well sometimes) is generated. When `read-key-sequence` is called with nil for `can-return-switch-frame`, this event is not returned but kept for later, which causes a subsequent `sit-for` to return nil immediately. This interfered without our "wait for double-click" which in turn prevented us from stopping after the mouse-1 click, getting stuck waiting for something else instead. (help--read-key-sequence): Pass a non-nil `can-return-switch-frame`, so the subsequent `sit-for` returns more trustworthy information.
* | | | | Handle subdomains in Tramp ad-hoc proxiesMichael Albinus2019-05-101-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp-sh.el (tramp-compute-multi-hops): Add proper regexps to `tramp-default-proxies-alist'.
* | | | | Stop using message-default-charset (Bug#35370)Noam Postavsky2019-05-102-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 2016-02-14 "Remove compat code for older Emacsen", message-default-charset was obsoleted, and a couple of uses were removed, but others were left behind. * lisp/gnus/message.el (message-send-mail) (message-send-news, message-do-fcc) (message-encode-message-body): * lisp/gnus/mml.el (mml-to-mime): Stop using message-default-charset.
* | | | | Optimize CC Mode a bit for repetitive insertion and replace-regexpAlan Mackenzie2019-05-102-74/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is mainly by enhancing a parse-partial-sexp cache to retain recently calculated values. Also, there are several miscellaneous optimizations and bug fixes. * lisp/progmodes/cc-engine.el (c-state-semi-nonlit-near-cache): New buffer local variable. (c-state-semi-trim-near-cache, c-state-semi-get-near-cache-entry) (c-state-semi-put-near-cache-entry, c-state-semi-trim-cache): New functions. (c-state-semi-pp-to-literal, c-state-full-pp-to-literal): Use the new "near" cache. (c-parse-ps-state-below): Use the new function c-state-semi-trim-cache. (c-before-change-check-<>-operators): Check simply for < or > in the neighbourhood before doing more expensive processing. (c-maybe-re-mark-raw-string): Give a backward search limit to an operation which was needlessly lacking one. * lisp/progmodes/cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end): Check a certain regexp is valid before performing the (somewhat expensive) actions of these functions. (c-fl-decl-start): In the search for a C++ lambda capture list, replace (slow) calculation of c-parse-state by a (less slow) c-go-up-list-backward.
* | | | | Make uncomment-region remove obtrusive spaces before tabs.Alan Mackenzie2019-05-101-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These spaces were typically inserted earlier by comment-region. This patch makes these two complementary functions closer to inverses. * lisp/newcomment.el (uncomment-region-default-1): Remove spaces before a tab where the comment opener has just been removed.
* | | | | Fix alist-get gv setter not returning VALMichael Heerdegen2019-05-091-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes Bug#35546. * lisp/emacs-lisp/gv.el (alist-get): Make setter return the set value to preserve 'setf' semantics.
* | | | | * lisp/mail/footnote.el: Avoid regexp-opt-charset, which is not autoloaded.Stefan Monnier2019-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | (footnote-hebrew-numeric-regex): Use rx-to-string instead.
* | | | | Fix an error in tramp-vc-file-name-handlerMichael Albinus2019-05-094-63/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/net/tramp.el (tramp-accept-process-output, tramp-send-string): * lisp/net/tramp-adb.el (tramp-adb-handle-make-process): * lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band) (tramp-sh-handle-make-process): * lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory) (tramp-smb-handle-file-acl, tramp-smb-handle-process-file) (tramp-smb-handle-set-file-acl) (tramp-smb-handle-start-file-process): Do not suppress timers. * lisp/net/tramp-sh.el (tramp-vc-file-name-handler): Check, that `tramp-file-name-for-operation' returns a proper Tramp file.
* | | | | * test/lisp/net/tramp-tests.el (cl-lib): Require instead of cl-seq.Michael Albinus2019-05-091-1/+1
| | | | |
* | | | | * lisp/emacs-lisp/syntax.el (syntax-propertize): `ignore` is like nilStefan Monnier2019-05-082-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (syntax-ppss-after-change-function): Mark it as obsolete. * lisp/font-lock.el (font-lock-apply-syntactic-highlight): Use syntax-ppss-flush-cache instead.
* | | | | Port LIBRSVG_CHECK_VERSION fix to picky cppPaul Eggert2019-05-081-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/image.c (LIBRSVG_CHECK_VERSION): Define to yield false if it isn’t already defined. (svg_load_image): Port to C preprocessors that check the syntax of the entire preprocessing expression before evaluating any of it.
* | | | | Merge from origin/emacs-26Glenn Morris2019-05-087-34/+102
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1c6484e (origin/emacs-26) Fix incorrect cloning of eieio-instance-inh... 37436fe Fix cloning of eieio-named objects (Bug#22840) fb65a36 Fix ibuffer-unmark-backward synopsis (bug#35572) f77bd2b ; * src/lisp.h (DEFSYM): Fix inaccurate comment. 3b86e0b Clarify handling of long options (Bug#24949) 04340a8 Improve documentation of the daemon and emacsclient 3e29de2 * etc/NEWS.24: Belatedly announce delete-consecutive-dups.
| * | | | Fix incorrect cloning of eieio-instance-inheritor objects (Bug#34840)Vitalie Spinu2019-05-082-2/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/eieio-base.el (clone): Unbound slots of eieio-instance-inheritor objects as documented in the docs string and implemented in the original eieio implementation.
| * | | | Fix cloning of eieio-named objects (Bug#22840)Vitalie Spinu2019-05-072-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/eieio-base.el (clone): Correctly set the name of the cloned objects from eieio-named instances.
| * | | | Fix ibuffer-unmark-backward synopsis (bug#35572)Basil L. Contovounesios2019-05-071-12/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ibuffer.el (ibuffer-mode): Fix synopsis of ibuffer-unmark-backward along with other minor copy-edits.
| * | | | ; * src/lisp.h (DEFSYM): Fix inaccurate comment.Eli Zaretskii2019-05-061-1/+1
| | | | |
| * | | | Clarify handling of long options (Bug#24949)Noam Postavsky2019-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/cmdargs.texi (Emacs Invocation): Note that space can be used instead of "=" only if an option requires an argument.
| * | | | Improve documentation of the daemon and emacsclientEli Zaretskii2019-05-042-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/misc.texi (emacsclient Options): * doc/emacs/cmdargs.texi (Initial Options): Document that using --daemon=NAME will need to specify the same NAME when invoking 'emacscilent'. (Bug#35547)
| * | | | * etc/NEWS.24: Belatedly announce delete-consecutive-dups.Noam Postavsky2019-05-011-0/+2
| | | | |
* | | | | ; Merge from origin/emacs-26Glenn Morris2019-05-080-0/+0
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | The following commits were skipped: 0ae7b2b (emacs-26) ; Auto-commit of loaddefs files. 3e322df * admin/update_autogen: Handle git worktree.
| * | | | ; Auto-commit of loaddefs files.Glenn Morris2019-05-011-6/+18
| | | | |
| * | | | * admin/update_autogen: Handle git worktree.Glenn Morris2019-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | ; No need to merge to master.
* | | | | Merge from origin/emacs-26Glenn Morris2019-05-081-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | ec02c73 Update process filter example (Bug#35044)
| * | | | Update process filter example (Bug#35044)Noam Postavsky2019-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/processes.texi (Filter Functions): Use insert-before-markers in the "ordinary" filter example, like internal-default-process-filter does.
* | | | | ; * lisp/help.el (view-lossage): Fix commentary. (Bug#35596)Eli Zaretskii2019-05-081-1/+1
| | | | |
* | | | | Fix compilation with old versions of librsvgEli Zaretskii2019-05-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * src/image.c (svg_load_image): Use LIBRSVG_CHECK_VERSION only if it's defined; it isn't in old versions of librsvg.
* | | | | ; Instrument auto-revert--deftest-remoteMichael Albinus2019-05-081-1/+3
| | | | |
* | | | | Skip tramp-test10-write-region-file-precious-flag for Emacs < 27Michael Albinus2019-05-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * test/lisp/net/tramp-tests.el (tramp-test10-write-region-file-precious-flag): Skip for Emacs < 27.
* | | | | Don't rewrite buffer contents after saving by rename (Bug#35497)Jonathan Tomer2019-05-083-2/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/files.el (basic-save-buffer-2): Don't rewrite file contents after saving-by-renaming. (Bug#35497) * test/lisp/files-tests.el (files-tests-dont-rewrite-precious-files): * test/lisp/net/tramp-tests.el (tramp-test10-write-region-file-precious-flag): Regression tests for this change.
* | | | | Add an assertion to xdisp.cEli Zaretskii2019-05-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/xdisp.c (display_mode_element): Add an assertion where we assume that 'string' returned by decode_mode_spec is always either a Lisp string or nil.
* | | | | * lisp/progmodes/flymake.el: Obsolete variable flymake-start-on-newlineJuri Linkov2019-05-073-28/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (flymake-start-syntax-check-on-newline): Mark it obsolete. (flymake-after-change-function): Remove obsolete variable flymake-start-syntax-check-on-newline (temporarily renamed to flymake-start-on-newline). (Bug#34294) * doc/misc/flymake.texi: Remove obsolete variable.
* | | | | Pacify GCC 9.1Paul Eggert2019-05-072-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/intervals.c (set_intervals_multibyte_1): Omit unused temps. * src/xdisp.c (display_mode_element): Use !NILP instead of STRINGP. This convinces GCC we’re not dereferencing a possibly-null pointer, and should be a bit faster anyway.
* | | | | Fix setting and resetting of scroll-with-deleteJohn Shahid2019-05-072-16/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The start and end lines of the scroll region must to be in the range [0,term-height). There are few placees that incorrectly set the end line of the scroll region to term-height which is outside the valid range. Combined with another off-by-one error in term-set-scroll-region's clamping logic, this would cause term-scroll-with-delete to be unnecessarily turned on. * lisp/term.el (term-scroll-start,term-scroll-end): Use defvar-local to define the variables and document the valid range of values that the variables can take. (term--last-line): New function to calculate the 0-based index of the last line. (term--reset-scroll-region): New function to reset the scroll region to the full height of the terminal. (term-mode,term-reset-size,term-reset-terminal): Call term--reset-scroll-region to reset the scroll region. (term-set-scroll-region): Fix the off-by-one error in the clamping logic which allowed term-scroll-end to have values outside the valid range [0,term-height).
* | | | | * src/marker.c (buf_bytepos_to_charpos): Re-add the CHAR_HEAD_P assertionStefan Monnier2019-05-074-31/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This assertion was removed in 1c349c62305d432abf0fa2b6e3f5d754fe4cab79 because the assumption was invalid during set_intervals_multibyte_1. So we change set_intervals_multibyte_1 to solve the problem in the same way as in the rest of Fset_buffer_multibyte, which actually simplifies the code. * src/buffer.c (advance_to_char_boundary): Not static any more. * src/buffer.h (advance_to_char_boundary): Add prototype. * src/intervals.c (set_intervals_multibyte_1): Use it.
* | | | | * doc/emacs/text.texi (Fill Commands): Use pxref in parentheses.Glenn Morris2019-05-071-1/+1
| | | | |
* | | | | * doc/emacs/files.texi (Auto Revert): Fix makeinfo-4.13 compilation.Glenn Morris2019-05-071-0/+3
| | | | |
* | | | | Clarify what constitutes an event (bug#35238)Basil L. Contovounesios2019-05-075-14/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/lispref/commands.texi (Input Events): Specify that events are non-nil and remove vestiges of bug#10190. * doc/lispref/os.texi (Recording Input): Document optional argument of recent-keys. * lisp/subr.el (eventp): Check that the car of conses is non-nil. * etc/NEWS: Announce it as an incompatible change. * src/keyboard.c (Frecent_keys): Clarify that returned "events" are not real events.
* | | | | Fix 'load-average' on MS-WindowsEli Zaretskii2019-05-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * src/w32.c (getloadavg): Always return at least one element of the array.
* | | | | Merge branch 'master' of git.sv.gnu.org:/srv/git/emacsWilson Snyder2019-05-066-44/+70
|\ \ \ \ \
| * | | | | * lisp/emacs-lisp/lisp.el (insert-pair-alist): Turn defvar into defcustom.Juri Linkov2019-05-061-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | Revert to old default value. (Bug#35480)
| * | | | | Make combine-after-change-calls work in the common case againStefan Monnier2019-05-061-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/insdel.c (signal_after_change): Allow combine_after_change_calls even when syntax-ppss-flush-cache is on before-change-functions.
| * | | | | Prevent accidental edits in the ansi-term buffer from breaking resizingJohn Shahid2019-05-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/term.el (term-unwrap-line, term-emulate-terminal): Prevent the `term-line-wrap` property of newlines from spreading accidentally when inserting text next to it.