]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoDocument nil value of message-signature and mail-signature
Robert Pluim [Mon, 13 May 2019 20:45:16 +0000 (16:45 -0400)]
Document nil value of message-signature and mail-signature

* lisp/gnus/message.el (message-signature): Allow nil as a
customizable value, and describe its effect.
* lisp/mail/sendmail.el (mail-signature): Describe effect of nil
value (bug#32680).

5 years ago* lisp/vc/log-view.el (log-view-diff-common): Use the previous revision
Juri Linkov [Mon, 13 May 2019 20:40:11 +0000 (23:40 +0300)]
* lisp/vc/log-view.el (log-view-diff-common): Use the previous revision

only when the end of the region is on a line after the last entry.
(Bug#35624)

5 years ago[PATCH 1/1] Adds variable 'eww-accept-content-types'
Alexandre Garreau [Mon, 13 May 2019 20:34:06 +0000 (16:34 -0400)]
[PATCH 1/1] Adds variable 'eww-accept-content-types'

* lisp/gnus/message.el (message-simplify-subject): Decouple
simplification from "Re:" adding (bug#33200).
(message-reply): Add the "Re:"'s here.
(message-followup): And here.

5 years agoMake mml respect the "recipient-filename" parameter
Lars Ingebrigtsen [Mon, 13 May 2019 20:16:10 +0000 (16:16 -0400)]
Make mml respect the "recipient-filename" parameter

* lisp/gnus/mml.el (mml-insert-mime-headers): Implement the
already-documented "recipient-filename" parameter (bug#34654).

5 years agoMake eww understand #fragment URLs at point interactively
Lars Ingebrigtsen [Mon, 13 May 2019 19:17:00 +0000 (15:17 -0400)]
Make eww understand #fragment URLs at point interactively

* lisp/net/eww.el (eww-suggest-uris): Use
thing-at-point-url-at-point instead of url-get-url-at-point
(bug#31927) because it's much better at guessing what the URL
actually is (especially with #fragments).

5 years agoFix broken build on m68k
Paul Eggert [Mon, 13 May 2019 19:43:13 +0000 (12:43 -0700)]
Fix broken build on m68k

The GCC + valgrind fix caused the m68k build to fail (Bug#35711).
Simplify string allocation a bit to make similar problems less
likely in the future.
* src/alloc.c (sdata, SDATA_NBYTES, SDATA_DATA) [GC_CHECK_STRING_BYTES]:
Use the same implementation as with !GC_CHECK_STRING_BYTES,
as the special case is no longer needed.
(SDATA_ALIGN): New constant.
(SDATA_SIZE): Remove this macro, replacing with ...
(sdata_size): ... this new function.  All uses changed.
Properly account for sizes and alignments even in the m68k case,
and even if GC_CHECK_STRING_BYTES is not defined.

5 years agoAdd a comment about the previous shr change
Lars Ingebrigtsen [Mon, 13 May 2019 19:10:33 +0000 (15:10 -0400)]
Add a comment about the previous shr change

5 years agoFix problems in shr when indenting tables
Lars Ingebrigtsen [Mon, 13 May 2019 19:04:46 +0000 (15:04 -0400)]
Fix problems in shr when indenting tables

* lisp/net/shr.el (shr-mark-fill, shr-insert-table): Fix problems
when block-quoting/<li>-ing a table -- the indentation/prefix was
inserted twice (bug#32277).

5 years agoUse a more specific Accepts header in eww
Federico Tedin [Mon, 13 May 2019 18:06:16 +0000 (14:06 -0400)]
Use a more specific Accepts header in eww

* lisp/net/eww.el (eww-accept-content-types): New variable.
(eww): Use it.
(eww-reload): Use it. (bug#33002).

Copyright-paperwork-exempt: yes

5 years ago; * lisp/faces.el (fill-column-indicator): Fix typo.
Jimmy Aguilar Mena [Sun, 12 May 2019 21:20:54 +0000 (23:20 +0200)]
; * lisp/faces.el (fill-column-indicator): Fix typo.

5 years ago(eww-follow-link): Record the location properly when following #links
Xu Chunyang [Sun, 12 May 2019 20:35:49 +0000 (16:35 -0400)]
(eww-follow-link): Record the location properly when following #links

* lisp/net/eww.el (eww-follow-link): Record the location properly
when following #links (bug#35445).

5 years ago* lisp/emacs-lisp/packages.el: Add `all` to package-check-signature
Stefan Monnier [Sun, 12 May 2019 17:03:24 +0000 (13:03 -0400)]
* lisp/emacs-lisp/packages.el: Add `all` to package-check-signature

(package-check-signature): Add `all` option.
(package--check-signature-content): Adjust accordingly.

5 years agoImprove printing for named keyboard macros (Bug#35486)
Noam Postavsky [Sun, 5 May 2019 17:24:15 +0000 (13:24 -0400)]
Improve printing for named keyboard macros (Bug#35486)

* lisp/macros.el (macros--insert-vector-macro): New function,
extracted from insert-kbd-macro.
(insert-kbd-macro): Use it and kmacro-extract-lambda to produce nicer
expressions for macros produced by kmacro-lambda-form.

5 years agoUse remapping in ffap-bindings (Bug#35577)
Noam Postavsky [Sun, 5 May 2019 13:13:19 +0000 (09:13 -0400)]
Use remapping in ffap-bindings (Bug#35577)

* 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.

5 years agoFix Gnus summary widget navigation across frames
Basil L. Contovounesios [Sat, 4 May 2019 15:29:39 +0000 (16:29 +0100)]
Fix Gnus summary widget navigation across frames

* 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.

5 years agoMake application/x-patch inlinable in mm-decode.el
Basil L. Contovounesios [Thu, 11 Apr 2019 13:42:20 +0000 (14:42 +0100)]
Make application/x-patch inlinable in mm-decode.el

* 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)

5 years agoFix some gnus-msg.el variables (bug#35239)
Basil L. Contovounesios [Thu, 11 Apr 2019 22:55:03 +0000 (23:55 +0100)]
Fix some gnus-msg.el variables (bug#35239)

* 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.

5 years agoUse characters, not symbols for table-cell-bindings
Mauro Aranda [Thu, 2 May 2019 12:51:01 +0000 (09:51 -0300)]
Use characters, not symbols for table-cell-bindings

* lisp/textmodes/table.el (table-cell-bindings): Add missing '?', to
avoid confusion between symbols and characters in bindings.  (Bug#35533)

5 years agoGenerate some repetitive WordStar code with macros
Mark Oteiza [Sat, 11 May 2019 00:55:04 +0000 (20:55 -0400)]
Generate some repetitive WordStar code with macros

* 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.

5 years agoConvert Free_Pixmap macro into terminal hook
Alexander Gramiak [Thu, 9 May 2019 15:37:50 +0000 (09:37 -0600)]
Convert Free_Pixmap macro into terminal hook

* 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.

5 years agoRemove display member of glyph_string
Alexander Gramiak [Thu, 9 May 2019 03:40:24 +0000 (21:40 -0600)]
Remove display member of glyph_string

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.

5 years ago* lisp/help.el (help--read-key-sequence): Handle `switch-frame' events
Stefan Monnier [Fri, 10 May 2019 12:49:03 +0000 (08:49 -0400)]
* lisp/help.el (help--read-key-sequence): Handle `switch-frame' events

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.

5 years agoHandle subdomains in Tramp ad-hoc proxies
Michael Albinus [Fri, 10 May 2019 12:48:07 +0000 (14:48 +0200)]
Handle subdomains in Tramp ad-hoc proxies

* lisp/net/tramp-sh.el (tramp-compute-multi-hops): Add proper
regexps to `tramp-default-proxies-alist'.

5 years agoStop using message-default-charset (Bug#35370)
Noam Postavsky [Tue, 7 May 2019 12:18:49 +0000 (08:18 -0400)]
Stop using message-default-charset (Bug#35370)

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.

5 years agoOptimize CC Mode a bit for repetitive insertion and replace-regexp
Alan Mackenzie [Fri, 10 May 2019 10:21:09 +0000 (10:21 +0000)]
Optimize CC Mode a bit for repetitive insertion and replace-regexp

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.

5 years agoMake uncomment-region remove obtrusive spaces before tabs.
Alan Mackenzie [Fri, 10 May 2019 07:28:54 +0000 (07:28 +0000)]
Make uncomment-region remove obtrusive spaces before tabs.

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.

5 years agoFix alist-get gv setter not returning VAL
Michael Heerdegen [Mon, 6 May 2019 12:58:24 +0000 (14:58 +0200)]
Fix alist-get gv setter not returning VAL

This fixes Bug#35546.

* lisp/emacs-lisp/gv.el (alist-get): Make setter return the set value
to preserve 'setf' semantics.

5 years ago* lisp/mail/footnote.el: Avoid regexp-opt-charset, which is not autoloaded.
Stefan Monnier [Thu, 9 May 2019 14:32:25 +0000 (10:32 -0400)]
* lisp/mail/footnote.el: Avoid regexp-opt-charset, which is not autoloaded.

(footnote-hebrew-numeric-regex): Use rx-to-string instead.

5 years agoFix an error in tramp-vc-file-name-handler
Michael Albinus [Thu, 9 May 2019 12:24:22 +0000 (14:24 +0200)]
Fix an error in tramp-vc-file-name-handler

* 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.

5 years ago* test/lisp/net/tramp-tests.el (cl-lib): Require instead of cl-seq.
Michael Albinus [Thu, 9 May 2019 12:23:07 +0000 (14:23 +0200)]
* test/lisp/net/tramp-tests.el (cl-lib): Require instead of cl-seq.

5 years ago* lisp/emacs-lisp/syntax.el (syntax-propertize): `ignore` is like nil
Stefan Monnier [Wed, 8 May 2019 19:18:32 +0000 (15:18 -0400)]
* lisp/emacs-lisp/syntax.el (syntax-propertize): `ignore` is like nil

(syntax-ppss-after-change-function): Mark it as obsolete.
* lisp/font-lock.el (font-lock-apply-syntactic-highlight):
Use syntax-ppss-flush-cache instead.

5 years agoPort LIBRSVG_CHECK_VERSION fix to picky cpp
Paul Eggert [Wed, 8 May 2019 15:37:40 +0000 (08:37 -0700)]
Port LIBRSVG_CHECK_VERSION fix to picky cpp

* 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.

5 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 8 May 2019 14:51:48 +0000 (07:51 -0700)]
Merge from origin/emacs-26

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.

5 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 8 May 2019 14:51:48 +0000 (07:51 -0700)]
; Merge from origin/emacs-26

The following commits were skipped:

0ae7b2b (emacs-26) ; Auto-commit of loaddefs files.
3e322df * admin/update_autogen: Handle git worktree.

5 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 8 May 2019 14:51:46 +0000 (07:51 -0700)]
Merge from origin/emacs-26

ec02c73 Update process filter example (Bug#35044)

5 years ago; * lisp/help.el (view-lossage): Fix commentary. (Bug#35596)
Eli Zaretskii [Wed, 8 May 2019 13:20:36 +0000 (16:20 +0300)]
; * lisp/help.el (view-lossage): Fix commentary.  (Bug#35596)

5 years agoFix compilation with old versions of librsvg
Eli Zaretskii [Wed, 8 May 2019 13:03:08 +0000 (16:03 +0300)]
Fix compilation with old versions of librsvg

* src/image.c (svg_load_image): Use LIBRSVG_CHECK_VERSION only
if it's defined; it isn't in old versions of librsvg.

5 years agoFix incorrect cloning of eieio-instance-inheritor objects (Bug#34840)
Vitalie Spinu [Wed, 8 May 2019 09:12:29 +0000 (11:12 +0200)]
Fix incorrect cloning of eieio-instance-inheritor objects (Bug#34840)

* 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.

5 years ago; Instrument auto-revert--deftest-remote
Michael Albinus [Wed, 8 May 2019 08:49:31 +0000 (10:49 +0200)]
; Instrument auto-revert--deftest-remote

5 years agoSkip tramp-test10-write-region-file-precious-flag for Emacs < 27
Michael Albinus [Wed, 8 May 2019 07:44:22 +0000 (09:44 +0200)]
Skip tramp-test10-write-region-file-precious-flag for Emacs < 27

* test/lisp/net/tramp-tests.el
(tramp-test10-write-region-file-precious-flag): Skip for Emacs < 27.

5 years agoDon't rewrite buffer contents after saving by rename (Bug#35497)
Jonathan Tomer [Wed, 8 May 2019 07:13:58 +0000 (09:13 +0200)]
Don't rewrite buffer contents after saving by rename (Bug#35497)

* 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.

5 years agoAdd an assertion to xdisp.c
Eli Zaretskii [Wed, 8 May 2019 06:29:20 +0000 (09:29 +0300)]
Add an assertion to xdisp.c

* 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.

5 years ago* lisp/progmodes/flymake.el: Obsolete variable flymake-start-on-newline
Juri Linkov [Tue, 7 May 2019 20:29:14 +0000 (23:29 +0300)]
* lisp/progmodes/flymake.el: Obsolete variable flymake-start-on-newline

(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.

5 years agoPacify GCC 9.1
Paul Eggert [Tue, 7 May 2019 19:26:40 +0000 (12:26 -0700)]
Pacify GCC 9.1

* 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.

5 years agoFix setting and resetting of scroll-with-delete
John Shahid [Mon, 29 Apr 2019 17:53:38 +0000 (13:53 -0400)]
Fix setting and resetting of scroll-with-delete

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).

5 years ago* src/marker.c (buf_bytepos_to_charpos): Re-add the CHAR_HEAD_P assertion
Stefan Monnier [Tue, 7 May 2019 17:41:54 +0000 (13:41 -0400)]
* src/marker.c (buf_bytepos_to_charpos): Re-add the CHAR_HEAD_P assertion

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.

5 years ago* doc/emacs/text.texi (Fill Commands): Use pxref in parentheses.
Glenn Morris [Tue, 7 May 2019 17:33:36 +0000 (10:33 -0700)]
* doc/emacs/text.texi (Fill Commands): Use pxref in parentheses.

5 years ago* doc/emacs/files.texi (Auto Revert): Fix makeinfo-4.13 compilation.
Glenn Morris [Tue, 7 May 2019 17:32:03 +0000 (10:32 -0700)]
* doc/emacs/files.texi (Auto Revert): Fix makeinfo-4.13 compilation.

5 years agoClarify what constitutes an event (bug#35238)
Basil L. Contovounesios [Sun, 21 Apr 2019 22:02:01 +0000 (23:02 +0100)]
Clarify what constitutes an event (bug#35238)

* 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.

5 years agoFix 'load-average' on MS-Windows
Eli Zaretskii [Tue, 7 May 2019 14:48:32 +0000 (17:48 +0300)]
Fix 'load-average' on MS-Windows

* src/w32.c (getloadavg): Always return at least one element
of the array.

5 years agoFix cloning of eieio-named objects (Bug#22840)
Vitalie Spinu [Tue, 7 May 2019 11:15:43 +0000 (13:15 +0200)]
Fix cloning of eieio-named objects (Bug#22840)

* lisp/emacs-lisp/eieio-base.el (clone): Correctly set the name of the
  cloned objects from eieio-named instances.

5 years agoFix ibuffer-unmark-backward synopsis (bug#35572)
Basil L. Contovounesios [Tue, 7 May 2019 00:40:22 +0000 (01:40 +0100)]
Fix ibuffer-unmark-backward synopsis (bug#35572)

* lisp/ibuffer.el (ibuffer-mode): Fix synopsis of
ibuffer-unmark-backward along with other minor copy-edits.

5 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Wilson Snyder [Mon, 6 May 2019 22:35:59 +0000 (18:35 -0400)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

5 years agoFix verilog-mode module backticks; whitespace from prev commits.
Wilson Snyder [Mon, 6 May 2019 22:35:31 +0000 (18:35 -0400)]
Fix verilog-mode module backticks; whitespace from prev commits.

* verilog-mode.el (verilog-read-inst-module-matcher):
Work when point is near backtick. Reported by Mattias Engdegard.

5 years ago* lisp/emacs-lisp/lisp.el (insert-pair-alist): Turn defvar into defcustom.
Juri Linkov [Mon, 6 May 2019 19:32:26 +0000 (22:32 +0300)]
* lisp/emacs-lisp/lisp.el (insert-pair-alist): Turn defvar into defcustom.

Revert to old default value.  (Bug#35480)

5 years agoMake combine-after-change-calls work in the common case again
Stefan Monnier [Mon, 6 May 2019 18:58:20 +0000 (14:58 -0400)]
Make combine-after-change-calls work in the common case again

* src/insdel.c (signal_after_change): Allow combine_after_change_calls
even when syntax-ppss-flush-cache is on before-change-functions.

5 years ago; * src/lisp.h (DEFSYM): Fix inaccurate comment.
Eli Zaretskii [Mon, 6 May 2019 18:52:19 +0000 (21:52 +0300)]
; * src/lisp.h (DEFSYM): Fix inaccurate comment.

5 years agoPrevent accidental edits in the ansi-term buffer from breaking resizing
John Shahid [Sun, 28 Apr 2019 19:59:50 +0000 (15:59 -0400)]
Prevent accidental edits in the ansi-term buffer from breaking resizing

* 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.

5 years agoc-beginning-of-statement-1: Handle syntactic WS macros properly.
Alan Mackenzie [Mon, 6 May 2019 17:36:28 +0000 (17:36 +0000)]
c-beginning-of-statement-1: Handle syntactic WS macros properly.

* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): The variable
before-sws-pos should record the position of a closing paren/brace/bracket
before moving backwards over a sexp.  When there is a syntactic WS macro
between the starting point and the closing p/b/b, setq before-sws-pos again
after moving backward over the macro.

5 years ago* lisp/custom.el: Avoid adding vars to load-history multiple times
Stefan Monnier [Mon, 6 May 2019 16:37:00 +0000 (12:37 -0400)]
* lisp/custom.el: Avoid adding vars to load-history multiple times

Avoid the abuse of (eval `(defvar ...)) which tends to end up
adding redundant entries in `load-history`, as discussed in
https://lists.gnu.org/r/help-gnu-emacs/2019-03/msg00237.html

(custom-initialize-default): Don't add to load-history.
(custom-declare-variable): Use internal--define-uninitialized-variable
and only add the var to load-history once.  Do it before calling
`initialize` so the special-variable-p flag is set.

* src/eval.c (Finternal__define_uninitialized_variable): New function.
(Fdefvar, Fdefconst): Use it.
(syms_of_eval): Defsubr' it.

5 years agoUse lambda in tramp-compat-* functions
Michael Albinus [Mon, 6 May 2019 10:04:24 +0000 (12:04 +0200)]
Use lambda in tramp-compat-* functions

* lisp/net/tramp-compat.el (tramp-handle-temporary-file-directory):
Declare.
(tramp-compat-temporary-file-directory-function): Use function symbol.
(tramp-compat-file-attribute-type)
(tramp-compat-file-attribute-link-number)
(tramp-compat-file-attribute-user-id)
(tramp-compat-file-attribute-group-id)
(tramp-compat-file-attribute-modification-time)
(tramp-compat-file-attribute-size)
(tramp-compat-file-attribute-modes)
(tramp-compat-directory-name-p, tramp-compat-file-local-name)
(tramp-compat-file-name-quoted-p, tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote, tramp-compat-exec-path)
(tramp-compat-time-equal-p, tramp-compat-flatten-tree):
Make them lambdas.

5 years ago; Make /etc/NEWS more consistent
Michael Albinus [Mon, 6 May 2019 09:23:54 +0000 (11:23 +0200)]
; Make /etc/NEWS more consistent

5 years agoUse simpler way to print function pointers
Paul Eggert [Mon, 6 May 2019 00:35:05 +0000 (17:35 -0700)]
Use simpler way to print function pointers

The module code can’t possibly work on weird platforms where
function pointers are wider than data pointers, so there’s no need
to bother with the stackoverflow-like approach that is intended
only for portability to such platforms.  Besides, the
stackoverflow-like approach does not work well on weird platforms
where CHAR_BIT is not a multiple of 4.
* src/lisp.h (pMx): New macro.
* src/print.c (data_from_funcptr) [HAVE_MODULES]: New function.
(print_vectorlike) [HAVE_MODULES]: Use it.
(print_object): Make sure buf is big enough for this.

5 years ago* lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode.
Juri Linkov [Sun, 5 May 2019 20:07:44 +0000 (23:07 +0300)]
* lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode.

Check for the value of flymake-mode after hooks are finished (bug#34294)

5 years ago* lisp/progmodes/flymake.el: Rename flymake-start-on-newline (bug#34294)
Juri Linkov [Sun, 5 May 2019 20:05:01 +0000 (23:05 +0300)]
* lisp/progmodes/flymake.el: Rename flymake-start-on-newline (bug#34294)

* lisp/progmodes/flymake.el (flymake-start-on-newline): Rename from
flymake-start-syntax-check-on-newline.
(flymake-start-syntax-check-on-newline): Define obsolete alias.
(flymake-no-changes-timeout): Add customization option nil.

* doc/misc/flymake.texi (Using Flymake): Rename variable.

5 years ago* lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Remove Git prefixes.
Juri Linkov [Sun, 5 May 2019 19:51:14 +0000 (22:51 +0300)]
* lisp/vc/ediff-ptch.el (ediff-fixup-patch-map): Remove Git prefixes.

Strip possible source/destination prefixes such as a/ and b/
from directory names.   (Bug#35420)
(ediff-fixup-patch-map, ediff-dispatch-file-patching-job)
(ediff-patch-file-internal): Replace string-match with string-match-p.

5 years agoUse ngettext instead of dired-plural-s in Dired (bug#35287)
Juri Linkov [Sun, 5 May 2019 19:43:27 +0000 (22:43 +0300)]
Use ngettext instead of dired-plural-s in Dired (bug#35287)

* lisp/dired-aux.el (dired-map-over-marks-check): Use ngettext
instead of dired-plural-s.
(dired-create-files): Also add colon after operation name.
(dired-compare-directories): Use ngettext and format-message.
(dired-do-compress-to): Use ngettext.

* lisp/dired.el (dired-internal-do-deletions)
(dired-clean-up-after-deletion): Use ngettext instead of dired-plural-s.

5 years ago* lisp/emacs-lisp/lisp.el (insert-pair-alist): Precompute default value.
Juri Linkov [Sun, 5 May 2019 19:34:03 +0000 (22:34 +0300)]
* lisp/emacs-lisp/lisp.el (insert-pair-alist): Precompute default value.

Use unicode-property-table-internal with 'paired-bracket to append
pairs of open/close characters to the default value (bug#35480).

5 years agoRename shell-command-width to async-shell-command-width (bug#35055)
Juri Linkov [Sun, 5 May 2019 19:27:33 +0000 (22:27 +0300)]
Rename shell-command-width to async-shell-command-width (bug#35055)

* lisp/simple.el (async-shell-command-width):
* lisp/net/tramp.el (tramp-handle-shell-command):
* test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
* doc/misc/tramp.texi (Remote processes): Rename this variable.

* doc/emacs/misc.texi (Single Shell): Add async-shell-command-width.

5 years agoPort mod-test to --enable-gcc-warnings
Paul Eggert [Sun, 5 May 2019 16:07:44 +0000 (09:07 -0700)]
Port mod-test to --enable-gcc-warnings

* test/data/emacs-module/mod-test.c (NDEBUG): Undef, to prevent
GCC from complaining “error: unused variable ‘dummy’” and failing
to build the test, if --enable-gcc-warnings.

5 years ago; * doc/emacs/display.texi (Displaying Boundaries): Fix a typo.
Eli Zaretskii [Sun, 5 May 2019 15:10:15 +0000 (18:10 +0300)]
; * doc/emacs/display.texi (Displaying Boundaries): Fix a typo.

5 years agoFix compilation of mod-test.c on MinGW
Eli Zaretskii [Sun, 5 May 2019 15:07:26 +0000 (18:07 +0300)]
Fix compilation of mod-test.c on MinGW

* test/data/emacs-module/mod-test.c (Fmod_test_nanoseconds)
[__MINGW32__]: Use _Static_assert, not static_assert, as the
latter is not available in mingw.org's MinGW's assert.h.

5 years agoFixed fill-column-indicator face removing background.
Jimmy Aguilar Mena [Sun, 5 May 2019 14:14:34 +0000 (16:14 +0200)]
Fixed fill-column-indicator face removing background.

*lisp/faces.el: Removed background in default fill-column-indicator
 face.
*src/xdisp.c: fill-column-indicator face merged with saved face.

5 years ago;Corrected display-fill-column-indicator mode.
Jimmy Aguilar Mena [Fri, 3 May 2019 17:27:59 +0000 (19:27 +0200)]
;Corrected display-fill-column-indicator mode.

Small corrections in the documentation and code format to merge into master.

5 years ago*src/xdisp.c: Fixed fill column indicator position in terminal mode.
Jimmy Aguilar Mena [Mon, 8 Apr 2019 16:11:16 +0000 (18:11 +0200)]
*src/xdisp.c: Fixed fill column indicator position in terminal mode.

5 years agodisplay-fill-column-indicator interface corrections
Jimmy Aguilar Mena [Fri, 5 Apr 2019 10:37:59 +0000 (12:37 +0200)]
display-fill-column-indicator interface corrections

*lisp/display-fill-column-indicator.el: Fixed character selection for
the indicator based in the current faces. Extended condition to set
display-fill-column-indicator-character in graphical displays.

*src/xdisp.c: Fixed some long lines.

5 years ago;Small changes in the documentation
Jimmy Aguilar Mena [Wed, 3 Apr 2019 10:36:46 +0000 (12:36 +0200)]
;Small changes in the documentation

*src/xdisp.c: Fixed docstring for display-fill-column-indicator-column
*etc/NEWS: Concordance fix in the display-fill-column-indicator part.
*doc/emacs/display.texi: Name mismatch fix.

5 years agoAdded correction in the texinfo manual.
Jimmy Aguilar Mena [Wed, 3 Apr 2019 10:05:01 +0000 (12:05 +0200)]
Added correction in the texinfo manual.

*doc/emacs/text.texi: Added a reference to the
display-fill-column-indicator section.

5 years agoAdded fill-column-indicator manual documentation
Jimmy Aguilar Mena [Tue, 2 Apr 2019 20:52:41 +0000 (22:52 +0200)]
Added fill-column-indicator manual documentation

*etc/NEWS: reduced the comments about fill-column-indicator
*doc/emacs/display.texi: Added documentation for fill-column-indicator
 in this section in the manual

5 years agoFixed fill-column-indicator for continuation lines
Jimmy Aguilar Mena [Tue, 2 Apr 2019 14:17:41 +0000 (16:17 +0200)]
Fixed fill-column-indicator for continuation lines

*src/xdisp.c: Grouped the test conditions for
display-fill-column-indicator mode in a macro to simplify future
modifications.

5 years agoDisplay-fill-column-indicator NEWS info.
Jimmy Aguilar Mena [Mon, 18 Mar 2019 23:03:12 +0000 (00:03 +0100)]
Display-fill-column-indicator NEWS info.

*etc/NEWS: Added information about the fill-column-indicator mode.
*lisp/faces.el: Added a face for the display fill column indicator.

5 years agoStart display-fill-column-indicator-mode.
Jimmy Aguilar Mena [Tue, 12 Mar 2019 19:06:28 +0000 (20:06 +0100)]
Start display-fill-column-indicator-mode.

5 years agoDescribe, how to adapt shell command output width in Tramp
Michael Albinus [Sun, 5 May 2019 14:20:14 +0000 (16:20 +0200)]
Describe, how to adapt shell command output width in Tramp

* doc/misc/tramp.texi (Quick Start Guide, GVFS based methods):
Fix @cindex.
(Remote processes): Add some @vindex.  Describe shell command
output width.

5 years agoAvoid compiler warning in print.c
Eli Zaretskii [Sun, 5 May 2019 14:17:24 +0000 (17:17 +0300)]
Avoid compiler warning in print.c

* src/print.c (print_vectorlike): Don't use %hh, as that is
not portable enough; we don't yet assume a C99-compliant
library.

5 years agoAvoid crashes in read_integer
Eli Zaretskii [Sun, 5 May 2019 14:06:01 +0000 (17:06 +0300)]
Avoid crashes in read_integer

* src/lread.c (read_integer): Always allocate a buffer, since
we need to use it even when the radix is invalid.  (Bug#35576)

5 years ago* lisp/files.el (hack-local-variables): Don't burp when files-x isn't loaded
Stefan Monnier [Sun, 5 May 2019 12:57:04 +0000 (08:57 -0400)]
* lisp/files.el (hack-local-variables): Don't burp when files-x isn't loaded

5 years ago; SOme changes in filenotify-tests.el for EMBA
Michael Albinus [Sun, 5 May 2019 11:34:26 +0000 (13:34 +0200)]
; SOme changes in filenotify-tests.el for EMBA

* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test05-file-validity)
(file-notify-test09-watched-file-in-watched-dir): Adapt for EMBA.

5 years agoAdapt tests for recent file-notification changes in Tramp
Michael Albinus [Sun, 5 May 2019 10:20:44 +0000 (12:20 +0200)]
Adapt tests for recent file-notification changes in Tramp

* lisp/net/tramp.el (tramp-file-notify-process-sentinel):
Pacify byte compiler.

* test/lisp/autorevert-tests.el
(auto-revert-test02-auto-revert-deleted-file):
* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test05-file-validity)
(file-notify-test09-watched-file-in-watched-dir): Adapt for remote
files.

5 years agoReorganise (auto-)revert nodes in the manual
Mattias Engdegård [Tue, 30 Apr 2019 20:35:56 +0000 (22:35 +0200)]
Reorganise (auto-)revert nodes in the manual

Put all information about auto-revert into a section of its own, and
organise the text in a more logical way.  Previously it was mainly
described in the section about reverting (bug#35418).

* doc/emacs/files.texi (Files): Adjust menu.
(Reverting, Auto Revert, Autorevert): Add node `Auto Revert' and move
text on that topic from `Reverting', rearranged.  Turn the old
`Autorevert' node into a subsection under `Auto Revert'.
* doc/emacs/arevert-xtra.texi (Autorevert): Rename and turn into
subsubsection.
* doc/emacs/buffers.texi (Several Buffers): Adjust references.
* doc/emacs/emacs.texi (Top): Adjust menu.
* doc/emacs/emacs-xtra.texi (Top): Adjust menu.
(Non-File Buffers): Add node and section lines.

5 years agoClarify handling of long options (Bug#24949)
Noam Postavsky [Sun, 5 May 2019 03:55:50 +0000 (23:55 -0400)]
Clarify handling of long options (Bug#24949)

* doc/emacs/cmdargs.texi (Emacs Invocation): Note that space can be
used instead of "=" only if an option requires an argument.

5 years agoAvoid suppressing -Wcast-function-type warning.
Philipp Stephani [Sat, 4 May 2019 23:56:15 +0000 (01:56 +0200)]
Avoid suppressing -Wcast-function-type warning.

GCC special-cases the type ‘void (*)(void)’ to not emit warnings when
cast, see
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcast-function-type.
Make use of this to remove a warning suppression.

* src/dynlib.h: Use void (*)(void) as generic function pointer type.

* src/emacs-module.c: Remove warning suppression.

5 years agoFix compilation of test module.
Philipp Stephani [Sat, 4 May 2019 23:30:23 +0000 (01:30 +0200)]
Fix compilation of test module.

Because all other objects are compiled without -fPIC, we can’t use
them when linking the test module.  Instead, use the source files
directly.

* test/Makefile.in (HYBRID_MALLOC, LIBEGNU_ARCHIVE): Remove.
($(test_module)): Use source files instead of objects and archives.

5 years agoUse extract_time in test module.
Philipp Stephani [Sat, 4 May 2019 23:23:44 +0000 (01:23 +0200)]
Use extract_time in test module.

* test/data/emacs-module/mod-test.c (Fmod_test_sleep_until): Use
extract_time for time argument.
(signal_wrong_type_argument): Remove unused function.

* test/src/emacs-module-tests.el (mod-test-sleep-until): Remove
unnecessary ‘float-time’.

5 years ago* test/Makefile.in (src/emacs-module-tests.elc): Require test module
Philipp Stephani [Sat, 4 May 2019 22:27:19 +0000 (00:27 +0200)]
* test/Makefile.in (src/emacs-module-tests.elc): Require test module

5 years agoRefactoring: Factor out a function to set an mpz_t from a Lisp int.
Philipp Stephani [Sat, 4 May 2019 21:31:40 +0000 (23:31 +0200)]
Refactoring: Factor out a function to set an mpz_t from a Lisp int.

* src/bignum.h (mpz_set_integer): New function.

* src/emacs-module.c (module_make_big_integer): Use it.

5 years agoAvoid undefined behavior when printing function pointers.
Philipp Stephani [Sat, 4 May 2019 20:59:46 +0000 (22:59 +0200)]
Avoid undefined behavior when printing function pointers.

* src/print.c (print_vectorlike): Don’t pass a function pointer to
‘snprintf’, as that is undefined behavior.  Instead, print the
individual bytes making up the function pointer.

5 years agoNotify broken file notification from Tramp
Michael Albinus [Sat, 4 May 2019 20:29:27 +0000 (22:29 +0200)]
Notify broken file notification from Tramp

* lisp/net/tramp.el (tramp-file-notify-process-sentinel): New defun.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Set process sentinel.

5 years agoPort new fingerprinting scheme to clang + LTO
Paul Eggert [Sat, 4 May 2019 20:15:29 +0000 (13:15 -0700)]
Port new fingerprinting scheme to clang + LTO

* lib-src/make-fingerprint.c (main): Don't consider multiple
instances of the fingerprint to be an error, as this can
happen with clang and -flto.  Instead, replace all instances
of the fingerprint.  There is a tiny chance that this will
silently corrupt the Emacs executable.

This patch suggests that we should go back to fingerprinting
the inputs to the linker instead of its output, as the new
fingerprinting scheme is unnecessarily complicated and this
complexity reduces reliability. The old scheme (i.e., before
commit 2019-05-14T23:31:24Z!eggert@cs.ucla.edu) was simpler
and more portable and good enough, and it's looking like it
would be less trouble in practice than the new scheme.

5 years agoAvoid slow overlay ansi coloring in eshell (Bug#29854)
Noam Postavsky [Sat, 4 May 2019 18:47:29 +0000 (14:47 -0400)]
Avoid slow overlay ansi coloring in eshell (Bug#29854)

* lisp/ansi-color.el (ansi-color-apply-on-region): Reset temporary
markers after finishing with them.
(ansi-color-apply-text-property-face): New function.
* lisp/eshell/esh-mode.el (eshell-handle-ansi-color):
* lisp/man.el (Man-fontify-manpage): Use it as the
`ansi-color-apply-face-function' while calling
`ansi-color-apply-on-region'.  Use `font-lock-face' to propertize
instead of `face'.

5 years agoFix bytecode optimization typo
Paul Eggert [Sat, 4 May 2019 17:16:46 +0000 (10:16 -0700)]
Fix bytecode optimization typo

Problem reported by Simon Frankau (Bug#35562).
* src/bytecode.c (exec_byte_code): Fix typo when optimizing varset.