]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agoRemove Emacs 22 compat code from dns.el
Stefan Kangas [Wed, 12 Aug 2020 23:39:53 +0000 (01:39 +0200)]
Remove Emacs 22 compat code from dns.el

* lisp/net/dns.el (dns-servers-up-to-date-p, dns-set-servers):
Remove check for function that is always there.

4 years agoDeclare semantic XEmacs compat code obsolete
Stefan Kangas [Wed, 12 Aug 2020 23:29:47 +0000 (01:29 +0200)]
Declare semantic XEmacs compat code obsolete

* lisp/cedet/semantic/grammar.el
(semantic-grammar-setup-menu-xemacs): Declare obsolete.

4 years agoRemove XEmacs compat code from allout-widgets.el
Stefan Kangas [Wed, 12 Aug 2020 23:23:46 +0000 (01:23 +0200)]
Remove XEmacs compat code from allout-widgets.el

* lisp/allout-widgets.el
(allout-widgets-item-image-properties-xemacs)
(allout-item-widget, allout-fetch-icon-image)
(allout-widgets-copy-list): Remove XEmacs compat code.

4 years ago* lisp/net/mailcap.el (mailcap-mime-data): Remove long-forgotten `ee`
Stefan Monnier [Wed, 12 Aug 2020 18:46:13 +0000 (14:46 -0400)]
* lisp/net/mailcap.el (mailcap-mime-data): Remove long-forgotten `ee`

It referred apparently to the "Electric Eyes" image viewer:
https://archive.org/details/tucows_31588_Electric_Eyes

4 years agoStop using Gnulib inttypes module
Paul Eggert [Wed, 12 Aug 2020 18:40:12 +0000 (11:40 -0700)]
Stop using Gnulib inttypes module

It wasn’t needed for MinGW after all, no other platform
seems to need it, and it slows down ‘configure’.
* admin/merge-gnulib (GNULIB_MODULES): Remove inttypes.
* m4/gnulib-comp.m4: Regenerate.

4 years agoUpdate from Gnulib
Paul Eggert [Wed, 12 Aug 2020 18:37:52 +0000 (11:37 -0700)]
Update from Gnulib

This incorporates:
2020-08-12 stdint: port intptr_t to more-recent MinGW
2020-08-11 Use __restrict also on clang
2020-08-11 Use flexible array syntax also on clang
2020-08-11 fcntl: On native Windows, use _setmode, not setmode
* lib/binary-io.h, lib/cdefs.h, lib/fcntl.c, lib/regex.h:
* lib/stdint.in.h: Copy from Gnulib.

4 years agoRemove some compat code from mm-util.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 17:54:09 +0000 (19:54 +0200)]
Remove some compat code from mm-util.el

* lisp/gnus/mm-util.el (mm-charset-to-coding-system): Remove the
non-mule case, because it's always false.

4 years agoSimplify the computation of mm-mime-mule-charset-alist
Lars Ingebrigtsen [Wed, 12 Aug 2020 17:52:11 +0000 (19:52 +0200)]
Simplify the computation of mm-mime-mule-charset-alist

* lisp/gnus/mm-util.el (mm-mime-mule-charset-alist): For
compatibility with XEmacs, mm-mime-mule-charset-alist was first
set to a list of hard-coded entries, and then overwritten on Emacs
from `coding-system-list'.  Remove the hard-coded values and
simplify the code.

4 years agoRemove some compat code from eudc-bob.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 17:41:24 +0000 (19:41 +0200)]
Remove some compat code from eudc-bob.el

* lisp/net/eudc-bob.el (eudc-bob-save-object)
(eudc-bob-pipe-object-to-external-program): Remove checks for
functions that are always defined in Emacs.

4 years agoRemove some compat code from url-handlers.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 17:38:09 +0000 (19:38 +0200)]
Remove some compat code from url-handlers.el

* lisp/url/url-handlers.el (url-insert-buffer-contents): Remove
check for function that's always defined in Emacs.

4 years agoRemove some compat code from gnus.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 17:33:50 +0000 (19:33 +0200)]
Remove some compat code from gnus.el

* lisp/gnus/gnus.el: Remove a check for a function that is always
defined.

4 years agoAdd support for italic text in ERC
Amin Bandali [Wed, 12 Aug 2020 17:33:36 +0000 (13:33 -0400)]
Add support for italic text in ERC

* lisp/erc/erc-goodies.el (erc-italic-face): New face for italic text.
(erc-controls-interpret), (erc-controls-highlight): Add `italicp'.
(erc-controls-remove-regexp),
(erc-controls-highlight-regexp): Handle C-] for italic.
(erc-controls-propertize): Add `italicp' argument and use it to
conditionally propertize text with the new `erc-italic-face'.
* etc/NEWS: Announce italic text support.

4 years agoRemove some compat code from viper-cmd.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:56:47 +0000 (18:56 +0200)]
Remove some compat code from viper-cmd.el

* lisp/emulation/viper-cmd.el (viper-register-to-point):
frame-configuration-p is always available in Emacs now.

4 years agoRemove some compat code from viper*.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:52:53 +0000 (18:52 +0200)]
Remove some compat code from viper*.el

* lisp/emulation/viper.el (viper-go-away, viper-set-hooks)
(viper-non-hook-settings, viper-mode):
* lisp/emulation/viper-cmd.el (viper-normalize-minor-mode-map-alist)
(viper-harness-minor-mode): Remove a bunch of checks to do (or
not do) things based on whether add-to-ordered-list is fbound and
emulation-mode-map-alists is bound, because in Emacs now, these
are always true.

4 years agoMark some unused defaliases in semantic/fw.el obsolete
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:46:27 +0000 (18:46 +0200)]
Mark some unused defaliases in semantic/fw.el obsolete

* lisp/cedet/semantic/fw.el (semantic-run-mode-hooks)
(semantic-subst-char-in-string): Make two unused defaliases obsolete.

4 years agoRemove some compat code from epa.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:43:06 +0000 (18:43 +0200)]
Remove some compat code from epa.el

* lisp/epa.el (epa--derived-mode-p, epa-import-keys): Make
defalias obsolete, and adjust a comment.

4 years agoRemove some compat code from bubbles.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:39:17 +0000 (18:39 +0200)]
Remove some compat code from bubbles.el

* lisp/play/bubbles.el (bubbles--remove-overlays): Make into an
obsolete alias.
(bubbles--initialize, bubbles--show-images): Adjust callers.

4 years agoFix a check for whether Emacs can play sounds in eudc-bob
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:37:18 +0000 (18:37 +0200)]
Fix a check for whether Emacs can play sounds in eudc-bob

* lisp/net/eudc-bob.el (eudc-bob-sound-menu)
(eudc-bob-play-sound-at-point): Check for play-sound-internal
instead of play-sound, because the latter is always defined.

4 years agoRemove some compat code from allout.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:35:29 +0000 (18:35 +0200)]
Remove some compat code from allout.el

* lisp/allout.el (allout-numbered-bullet)
(allout-file-xref-bullet): string-or-null-p is always defined.

4 years agoRemove some compat code from allout*.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:34:29 +0000 (18:34 +0200)]
Remove some compat code from allout*.el

* lisp/allout-widgets.el (allout-widgets-mode-inhibit): Ditto.

* lisp/allout.el (allout-use-hanging-indents)
(allout-show-bodies, allout-old-style-prefixes)
(allout-stylish-prefixes): `booleanp' is always defined.

4 years agoRemove some compat code from prolog.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:31:50 +0000 (18:31 +0200)]
Remove some compat code from prolog.el

* lisp/progmodes/prolog.el (match-string): Remove alias to
function that always exists.

4 years agoRemove some compat code from idlwave.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:29:05 +0000 (18:29 +0200)]
Remove some compat code from idlwave.el

* lisp/progmodes/idlwave.el: Remove some checks for functions that
always exist.

4 years agoRemove some compat code from ediff-init.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:26:20 +0000 (18:26 +0200)]
Remove some compat code from ediff-init.el

* lisp/vc/ediff-init.el (subst-char-in-string, format-message):
Remove aliases to functions that always exist.

4 years agoCheck make-process to determine if we support multi-processing
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:09:24 +0000 (18:09 +0200)]
Check make-process to determine if we support multi-processing

* lisp/eshell/esh-proc.el (eshell-gather-process-output):
* lisp/comint.el (make-comint-in-buffer): Check that make-process
exists instead of start-file-process (which always exists).

4 years agoRevert "Remove compat code from esh-proc.el"
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:06:50 +0000 (18:06 +0200)]
Revert "Remove compat code from esh-proc.el"

This reverts commit 97c4d941daffba1635bd738fae9c4ff36e5ad0cf.

We still have Emacs builds on systems with no multi-tasking.

4 years agoRevert "Remove compat code from comint.el"
Lars Ingebrigtsen [Wed, 12 Aug 2020 16:06:13 +0000 (18:06 +0200)]
Revert "Remove compat code from comint.el"

This reverts commit 4d00db5538dc0ef47cf1cdf425b895d04145fe9e.

We still have Emacs builds on systems with no multi-taskin.

4 years agoDo not truncate /foo//bar to /bar/ in parse-colon-path
Tino Calancha [Wed, 12 Aug 2020 12:53:29 +0000 (14:53 +0200)]
Do not truncate /foo//bar to /bar/ in parse-colon-path

* lisp/files.el (parse-colon-path): Use substitute-env-vars and
expand-file-name instead of substitute-in-file-name (Bug#21454).

4 years agoRemove Emacs 23 compat code from checkdoc.el
Stefan Kangas [Wed, 12 Aug 2020 13:43:23 +0000 (15:43 +0200)]
Remove Emacs 23 compat code from checkdoc.el

* lisp/emacs-lisp/checkdoc.el (checkdoc-run-hooks): Redefine as
obsolete function alias for 'run-hook-with-args-until-success'.
(checkdoc-this-string-valid-engine)
(checkdoc-file-comments-engine): Adjust callers.

4 years agoMinor cleanup in ps-def.el
Stefan Kangas [Wed, 12 Aug 2020 13:34:13 +0000 (15:34 +0200)]
Minor cleanup in ps-def.el

* lisp/ps-def.el (ps-frame-parameter): Make alias obsolete.
* lisp/ps-print.el (ps-begin-job): Adjust caller.

4 years agoFix monospace font calculations on macOS
YAMAMOTO Mitsuharu [Wed, 12 Aug 2020 11:15:44 +0000 (13:15 +0200)]
Fix monospace font calculations on macOS

* src/macfont.m (macfont_monospace_width_multiplier): New function
to compute the width for monospace fonts (bug#24582).
(macfont_glyph_extents): Fix monospace glyph computation.
(macfont_shape): Ditto.

4 years agoFix erc-reuse-buffers behavior
Mingde (Matthew) Zeng [Wed, 12 Aug 2020 11:09:35 +0000 (13:09 +0200)]
Fix erc-reuse-buffers behavior

* lisp/erc/erc.el (erc-generate-new-buffer-name): Fixes behavior 1,
also determines if the '#channel/server' buffer already exists
and will reuse that buffer when joining on the same
server. Additionally when creating a new buffer with
'#channel/serverB', the existing buffer '#channel' on 'severA' will be
renamed to '#channel/serverA' for the sake of consistency (bug#40121).

* lisp/erc/erc-join.el (erc-autojoin-channels): The logic is
simplified ensuring that when autojoining channels specified in
erc-autojoin-channels-alist, if there exists an erc buffer with the
same channel name but a different server, it will create a new buffer
to join the channel. The current logic is very weak that will skip
joining same channel on different servers altogether.

By the definition of erc-reuse-buffers, if non-nil it should create a
new buffer when joining channels with same names on different
servers. The current behavior of erc-reuse-buffers is:
1. when non-nil, it will always reuse the same channel buffer,
resulting in server A's channel gets reconnected to the channel with
the same name of server B.
2. when nil, the buffer-name of the joined channel is
'#channel/server'. However if one tries to '/join #channel' from the
server buffer, it creates a new empty buffer with buffer-name
'#channel', instead of opening the already-joined channel buffer.

4 years agoImplement Tramp direct async processes fallback for multi-hops
Michael Albinus [Wed, 12 Aug 2020 10:45:45 +0000 (12:45 +0200)]
Implement Tramp direct async processes fallback for multi-hops

* doc/misc/tramp.texi (Remote processes): Precise restrictions for direct
async processes.

* lisp/net/tramp-adb.el (tramp-adb-handle-make-process):
* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Use `tramp-direct-async-process-p'.

* lisp/net/tramp.el (tramp-direct-async-process-p): New defun.
(tramp-handle-make-process): Adapt handling of :stderr.  Simplify.

4 years ago; Fix copyright years for recent additions
Glenn Morris [Wed, 12 Aug 2020 10:41:17 +0000 (11:41 +0100)]
; Fix copyright years for recent additions

4 years agoAdd utility functions and new xwidget commands
Sungbin Jo [Wed, 12 Aug 2020 10:39:50 +0000 (12:39 +0200)]
Add utility functions and new xwidget commands

Co-authored-by: Jaesup Kwak <veshboo@gmail.com>
* lisp/xwidget.el (xwidget-webkit-callback): Add case for
'response-callback' event.
(xwidget-webkit-download-dir): New variable.
(xwidget-webkit-save-as-file): New function.
* src/nsxwidget.m (XwWebView::decidePolicyForNavigationResponse):
Store download event.
* src/xwidget.c src/xwidget.h (store_xwidget_download_callback_event):
New function.

4 years agoAdd utility functions and new xwidget commands
Sungbin Jo [Wed, 12 Aug 2020 10:34:29 +0000 (12:34 +0200)]
Add utility functions and new xwidget commands

Co-authored-by: Jaesup Kwak <veshboo@gmail.com>
* etc/NEWS: Announce new functions and options.
* lisp/xwidget.el (xwidget): New defgroup.
(xwidget-webkit-mode-map): Add new keybindings.
(xwidget-webkit-scroll-up, xwidget-webkit-scroll-down)
(xwidget-webkit-scroll-forward, xwidget-webkit-scroll-backward):
Add optional argument to specify specific amounts to scroll down.
(xwidget-webkit-scroll-up-line, xwidget-webkit-scroll-down-line): New
functions.
(xwidget-webkit-scroll-bottom): Fix function to scroll to the bottom
of the document.
(xwidget-webkit-callback): Use new function to update buffer title
even when Javascript is disabled.
(xwidget-webkit-bookmark-jump-new-session): New variable.
(xwidget-webkit-bookmark-make-record): Modify to use xwidget-webkit to
open bookmark that is created in xwidget-webkit.
(xwidget-webkit-insert-string): Fix Javascript snippet to not throw
Javsscript exceptions.
(xwidget-webkit-inside-pixel-width)
(xwidget-window-inside-pixel-height): New functions.
(xwidget-webkit-adjust-size-to-window): Use new functions.
(xwidget-webkit-new-session): Insert invisible URL instead of an empty
string to achieve better default behavior.
(xwidget-webkit-back, xwidget-webkit-forward, xwidget-webkit-reload)
(xwidget-webkit-current-url): Use new functions to enable scrolling
even when Javascript is disabled.
(xwidget-webkit-copy-selection-as-kill): Remove unnecessary lambda.
* src/nsxwidget.h src/nsxwidget.m (nsxwidget_webkit_uri)
(nsxwidget_webkit_title, nsxwidget_webkit_goto_history): Add new
functions.
* src/xwidget.c (Fxwidget_webkit_uri, Fxwidget_webkit_title)
(Fxwidget_webkit_goto_history): Add new functions.
(syms_of_xwidget): Define new functions.

4 years agoTweak recent solar.el change
Glenn Morris [Wed, 12 Aug 2020 10:29:51 +0000 (11:29 +0100)]
Tweak recent solar.el change

* lisp/calendar/solar.el (sunrise-sunset, solar-equinoxes-solstices):
Use +0000 for "numeric" UTC, not +0100.

4 years agoRename recent calendar user option
Glenn Morris [Wed, 12 Aug 2020 10:22:31 +0000 (11:22 +0100)]
Rename recent calendar user option

* lisp/calendar/calendar.el (calendar-time-zone-style):
Rename from calendar-use-numeric-time-zones.
* lisp/calendar/cal-dst.el (calendar-standard-time-zone-name)
(calendar-daylight-time-zone-name):
* lisp/calendar/solar.el (sunrise-sunset, solar-equinoxes-solstices):
Use new variable name.
* doc/emacs/calendar.texi (Sunrise/Sunset): Update.
; * etc/NEWS: Update.

4 years agoAdd xwidget support for macOS
Sungbin Jo [Wed, 12 Aug 2020 10:12:34 +0000 (12:12 +0200)]
Add xwidget support for macOS

Co-authored-by: Jaesup Kwak <veshboo@gmail.com>
* configure.ac: Allow '--with-xwidgets' for "${NS_IMPL_COCOA}".
* etc/NEWS: Mention new feature.
* etc/TODO: Remove done TODO to implement xwidget in NeXTstep port.
* lisp/xwidget.el (xwidget-webkit-clone-and-split-below)
(xwidget-webkit-clone-and-split-right): New procedures.
(xwidget-webkit-callback): Remove call to
'xwidget-webkit-adjust-size-to-window' as adjusting xwidget size is
handled in 'x_draw_xwidget_glyph_string'.
(xwidget-webkit-enable-plugins): New variable.
* nextstep/templates/Info.plist.in: Add 'NSAppTransportSecurity'.
* src/Makefile.in: Add nsxwidget.o for compilation.
* src/emacs.c (main): Move conditional call to 'syms_of_xwidget'.
* src/nsterm.m (ns_draw_glyph_string): Add case for 'XWIDGET_GLYPH'.
(note_mouse_movement mouseMoved): Make it easy to resize window by
dragging mode-line or vertical separator adjacent to large glyph.
* src/nsxwidget.h src/nsxwidget.m: Newly added files, xwidget webkit
backend for macOS Cocoa.
* src/xwidget.c (Fmake_xwidget, xwidget_init_view)
(x_draw_xwidget_glyph_string, xwidget_is_web_view)
(Fxwidget_webkit_goto_uri, Fxwidget_webkit_zoom, Fxwidget_resize)
(Fxwidget_size_request, Fdelete_xwidget_view, xwidget_end_redisplay)
(kill_buffer_xwidgets): Add macOS Cocoa specific functions and code
with 'NS_IMPL_COCOA' and guard GTK specific functions and code with
'USE_GTK'.
(x_draw_xwidget_glyph_string): Handle adjusting xwidget size.
* src/xwidget.h (xwidget, xwidget_view): Add macOS Cocoa specific
fields with 'NS_IMPL_COCOA' and guard GTK specific fields with
USE_GTK.

4 years agoRemove comment on Burma / Myanmar (Bug#42788)
Stefan Kangas [Sun, 9 Aug 2020 22:22:51 +0000 (00:22 +0200)]
Remove comment on Burma / Myanmar (Bug#42788)

* lisp/language/burmese.el: Remove comment on Burma / Myanmar.

4 years agoAvoid ambiguity about what st refers to
Stefan Kangas [Tue, 11 Aug 2020 07:23:40 +0000 (09:23 +0200)]
Avoid ambiguity about what st refers to

* lisp/term/st.el: Add link to website.

4 years agoDon’t warn about integer conversion in pdumper.c
Paul Eggert [Wed, 12 Aug 2020 01:35:44 +0000 (18:35 -0700)]
Don’t warn about integer conversion in pdumper.c

Problem reported by Juanma Barranquero in:
https://lists.gnu.org/r/emacs-devel/2020-08/msg00279.html
and a similar glitch was reported by Eli Zaretskii (Bug#36597#67).
* src/pdumper.c: Remove -Wconversion pragma.
(ALLOW_IMPLICIT_CONVERSION, DISALLOW_IMPLICIT_CONVERSION):
Remove.  All uses removed.  Although -Wconversion may have
been helpful when writing pdumper.c it is now causing more
trouble than it’s worth here (just as in the rest of Emacs).
(dump_read_all): Avoid no-longer-necessary use of ‘size_t’
rather than ‘int’.

4 years agoRemove compat code from autoload.el
Lars Ingebrigtsen [Tue, 11 Aug 2020 19:21:13 +0000 (21:21 +0200)]
Remove compat code from autoload.el

* lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload):
register-definition-prefixes is in subr.el, so it shouldn't be
necessary to check whether it's defined.

4 years agoRemove compat code from comint.el
Lars Ingebrigtsen [Tue, 11 Aug 2020 18:57:56 +0000 (20:57 +0200)]
Remove compat code from comint.el

* lisp/comint.el (make-comint-in-buffer): `start-file-process' is
always defined, so remove test.

4 years agoRemove compat code from esh-proc.el
Lars Ingebrigtsen [Tue, 11 Aug 2020 18:57:10 +0000 (20:57 +0200)]
Remove compat code from esh-proc.el

* lisp/eshell/esh-proc.el (eshell-gather-process-output):
`start-file-process' is always defined, so remove the code that
deals with Emacs versions that doesn't have it.

4 years agoRemove compat code from allout.el
Lars Ingebrigtsen [Tue, 11 Aug 2020 18:53:46 +0000 (20:53 +0200)]
Remove compat code from allout.el

* lisp/allout.el: (allout-process-exposed): Make
allout-region-active-p an obsolete alias, and adjust callers.

4 years agoRemove compat code in prolog.el
Lars Ingebrigtsen [Tue, 11 Aug 2020 18:51:33 +0000 (20:51 +0200)]
Remove compat code in prolog.el

* lisp/progmodes/prolog.el (use-region-p): Remove compat code.

4 years agoSlight allout.el clean-up
Lars Ingebrigtsen [Tue, 11 Aug 2020 18:50:16 +0000 (20:50 +0200)]
Slight allout.el clean-up

* lisp/allout.el (allout-end-of-line, allout-mark-active-p): Make
allout-mark-active-p obsolete, and adjust callers.

4 years agoMinor idlwave clean up
Lars Ingebrigtsen [Tue, 11 Aug 2020 18:41:23 +0000 (20:41 +0200)]
Minor idlwave clean up

* lisp/progmodes/idlw-shell.el (idlwave-shell-mouse-examine)
(idlwave-shell-print): Adjust callers.

* lisp/progmodes/idlwave.el (idlwave-region-active-p): Make into
obsolete alias.

4 years agoSlight gnus-util clean-up
Lars Ingebrigtsen [Tue, 11 Aug 2020 18:36:10 +0000 (20:36 +0200)]
Slight gnus-util clean-up

* lisp/gnus/gnus-util.el (gnus-message-with-timestamp-1):
messages-buffer is always defined.

4 years agoSlight cleanup in calc-yank
Lars Ingebrigtsen [Tue, 11 Aug 2020 16:46:34 +0000 (18:46 +0200)]
Slight cleanup in calc-yank

* lisp/calc/calc-yank.el (calc-yank): Remove compat code.

4 years agoUnbreak build with --enable-checking=all
Philipp Stephani [Tue, 11 Aug 2020 18:20:44 +0000 (20:20 +0200)]
Unbreak build with --enable-checking=all

Commit 16a16645f524c62f7906036b0e383e4247b58de7 has only changed a
comment in ‘struct Lisp_Hash_Table’, so the portable dumper doesn’t
need to be adapted.

* src/pdumper.c (dump_hash_table): Update hash code for ‘struct
Lisp_Hash_Table’.

4 years agoUse Gnulib inttypes module
Paul Eggert [Tue, 11 Aug 2020 18:06:39 +0000 (11:06 -0700)]
Use Gnulib inttypes module

Needed for platforms like MinGW that don’t support C99 PRIdPTR.
* admin/merge-gnulib (GNULIB_MODULES): Add inttypes.
* m4/gnulib-comp.m4: Regenerate.

4 years agoUpdate from Gnulib
Paul Eggert [Tue, 11 Aug 2020 17:58:35 +0000 (10:58 -0700)]
Update from Gnulib

This incorporates:
2020-08-11 Use expression statements also on clang
2020-08-10 Use many __attribute__s with clang
2020-08-09 Use attribute __aligned__ with clang
2020-08-09 Use __alignof__ with clang
2020-08-09 ignore-value: Simplify on clang
2020-08-09 Use __typeof__ with clang
2020-08-09 intprops: Fix typo in comment
2020-08-09 Silence warnings from clang 10 with -Wimplicit-fallthrough
2020-08-09 count-one-bits: Use __builtin_popcount{,l,ll} on clang
2020-08-09 string: Fix build error in C++ mode with clang
2020-08-09 Add ability to emit user-defined diagnostics with clang
2020-08-07 alloca: No need to compile alloca.c with clang
2020-08-06 Use __builtin_assume with clang
* lib/alloca.in.h, lib/arg-nonnull.h, lib/c++defs.h, lib/cdefs.h:
* lib/count-one-bits.h, lib/dirent.in.h, lib/ignore-value.h:
* lib/intprops.h, lib/malloca.h, lib/regex_internal.h:
* lib/stdalign.in.h, lib/stddef.in.h, lib/stdio.in.h:
* lib/stdlib.in.h, lib/string.in.h, lib/verify.h, lib/warn-on-use.h:
* m4/gnulib-common.m4, m4/stddef_h.m4, m4/stdint.m4:
Copy from Gnulib.

4 years agoPrefer make_nil_vector to make-vector with nil
Paul Eggert [Tue, 11 Aug 2020 17:29:02 +0000 (10:29 -0700)]
Prefer make_nil_vector to make-vector with nil

* src/pdumper.c (hash_table_thaw): Pacify -Wconversion so
we can use make_nil_vector again.
* src/timefns.c (syms_of_timefns): Prefer make_nil_vector
to make_vector with Qnil.

4 years agoFix MinGW build broken by recent pdumper changes.
Eli Zaretskii [Tue, 11 Aug 2020 16:59:17 +0000 (19:59 +0300)]
Fix MinGW build broken by recent pdumper changes.

* src/pdumper.c (hash_table_thaw): Use Fmake_vector.  Suggested by
Pip Cet <pipcet@gmail.com>.
(dump_trace): Declare ATTRIBUTE_FORMAT_PRINTF, not
ATTRIBUTE_FORMAT((__printf__), so that we pick the right attribute
for MinGW.

4 years agoMake mouse-2 respect select-enable-primary etc
Bastian Beischer [Tue, 11 Aug 2020 16:45:01 +0000 (18:45 +0200)]
Make mouse-2 respect select-enable-primary etc

* lisp/calc/calc-yank.el (calc-yank-internal): Factor out into its
own function (bug#23629).
(calc-yank): Factored out from here.
(calc-yank-mouse-primary): New command to

Copyright-paperwork-exempt: yes

4 years agoAllow count-lines to ignore invisible lines
Robert Weiner [Tue, 11 Aug 2020 14:52:01 +0000 (16:52 +0200)]
Allow count-lines to ignore invisible lines

* doc/lispref/positions.texi (Text Lines): Document it (bug#23675).

* lisp/simple.el (count-lines): Add an optional parameter to
ignore invisible lines (bug#23675).

4 years ago* lisp/net/tramp.el: Make last change backward compatible.
Michael Albinus [Tue, 11 Aug 2020 14:46:41 +0000 (16:46 +0200)]
* lisp/net/tramp.el: Make last change backward compatible.

4 years agoFix face merging at EOL when inherited face specifies :extend
Eli Zaretskii [Tue, 11 Aug 2020 14:39:35 +0000 (17:39 +0300)]
Fix face merging at EOL when inherited face specifies :extend

* src/xfaces.c (merge_face_ref): Handle correctly faces that
inherit from another, and in addition specify :extend.
(Bug#42552)

4 years agoAdd new commands for environment movement in .texi files
Robert Weiner [Tue, 11 Aug 2020 14:37:01 +0000 (16:37 +0200)]
Add new commands for environment movement in .texi files

* lisp/textmodes/texinfo.el (texinfo-mode-map): New keystrokes for
environment movement commands (bug#23985).

4 years agoAllow specifying the callback in new xwidget sessions
Puneeth Chaganti [Tue, 11 Aug 2020 14:23:10 +0000 (16:23 +0200)]
Allow specifying the callback in new xwidget sessions

* lisp/xwidget.el (xwidget-webkit-new-session): Optional callback
arg (bug#24019).
(xwidget-event-handler): Respect the 'callback parameter.

4 years agoFix (end-of-defun N) for N >= 2
Noam Postavsky [Tue, 11 Aug 2020 14:02:11 +0000 (16:02 +0200)]
Fix (end-of-defun N) for N >= 2

* lisp/emacs-lisp/lisp.el (end-of-defun): Only skip to next line when
after end of defun when ARG is 1 or less.
* test/lisp/emacs-lisp/lisp-tests.el (end-of-defun-twice): New
test (bug#24427).

4 years agoChange the Calc text input method to insert at point
Tino Calancha [Tue, 11 Aug 2020 13:40:48 +0000 (15:40 +0200)]
Change the Calc text input method to insert at point

* lisp/calc/calc.el (calcDigit-delchar): New command to delete chars
forward in the calc minibuffer.
(calc-digit-map): Bind calcDigit-delchar to '\C-d'.
(calcDigit-key): Do not go to (point-max) in calc minibuffer
before insert a digit (Bug#24612).

4 years agoOnly search for a variable when instructed
Alexander Gramiak [Tue, 11 Aug 2020 13:26:24 +0000 (15:26 +0200)]
Only search for a variable when instructed

* lisp/help-fns.el (find-lisp-object-file-name): Check for 'defvar
argument before searching for an internal variable (Bug#24697).
* test/lisp/help-fns-tests.el: New tests.

4 years agoAllow Dired to dereference symbolic links when copying
Kaushal Modi [Tue, 11 Aug 2020 13:16:11 +0000 (15:16 +0200)]
Allow Dired to dereference symbolic links when copying

* doc/emacs/dired.texi (Operating on Files): Mention the new
defcustom (bug#25075).
* lisp/dired-aux.el (dired-do-copy): Invert the value of
`dired-copy-dereference' in lexical scope when prefix argument is
'(4). Update function documentation for the new defcustom.

* lisp/dired-aux.el (dired-copy-file): Use `dired-copy-dereference' as
the `dereference' argument to `dired-copy-file-recursive'.

* lisp/dired-aux.el (dired-copy-file-recursive): Add new optional
argument `dereference'.

* lisp/dired.el (dired-copy-dereference): New defcustom, defaults to
nil.

4 years agoMark further mml-sec-tests as unstable
Lars Ingebrigtsen [Tue, 11 Aug 2020 11:44:33 +0000 (13:44 +0200)]
Mark further mml-sec-tests as unstable

* test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-sign-3):
(mml-secure-en-decrypt-sign-1-3-double): These tests are unstable
on Ubuntu (bug#42803).

4 years agoFurther tweaks to the user manual about shell-command-buffer-name
Lars Ingebrigtsen [Tue, 11 Aug 2020 11:16:07 +0000 (13:16 +0200)]
Further tweaks to the user manual about shell-command-buffer-name

* doc/emacs/misc.texi (Single Shell): Reintroduce the actual
buffer names in the user manual (bug#39138), but keep the
references to the variables.  It's easier for people reading the
user manual to deal with actual names.

4 years agopdumper avoid listing hash table contents
Paul Eggert [Tue, 11 Aug 2020 09:16:54 +0000 (02:16 -0700)]
pdumper avoid listing hash table contents

* src/pdumper.c (hash_table_contents): Create a vector directly,
instead of creating a list and then converting that to a vector.

4 years agopdumper speed tweeks for hash tables
Paul Eggert [Tue, 11 Aug 2020 09:16:54 +0000 (02:16 -0700)]
pdumper speed tweeks for hash tables

* src/pdumper.c (dump_queue_empty_p): Avoid unnecessary call
to Fhash_table_count on a known hash table.
(dump_hash_table_list): !NILP, not CONSP.
(hash_table_freeze, hash_table_thaw): ASIZE, not Flength, on vectors.
Initialize in same order as struct.
(hash_table_thaw): make_nil_vector, not Fmake_vector with nil.

4 years agoIn pdumper, simplify INT_MAX computation
Paul Eggert [Tue, 11 Aug 2020 09:16:54 +0000 (02:16 -0700)]
In pdumper, simplify INT_MAX computation

* src/pdumper.c (dump_read_all): Avoid unnecessary cast.
Also, round down to page size, as sysdep.c does.
Also, don’t assume INT_MAX <= UINT_MAX (!).

4 years agoDon’t needlessly convert to ‘unsigned’ in pdumper
Paul Eggert [Tue, 11 Aug 2020 09:16:54 +0000 (02:16 -0700)]
Don’t needlessly convert to ‘unsigned’ in pdumper

* src/pdumper.c (PRIdDUMP_OFF): New macro.
(EMACS_INT_XDIGITS): New constant.
(struct dump_context): Use dump_off for relocation counts.
All uses changed.
(dump_queue_enqueue, dump_queue_dequeue, Fdump_emacs_portable):
Don’t assume counts fit in ‘unsigned’ or ‘unsigned long’.
Use EMACS_INT_XDIGITS instead of assuming it’s 16.

4 years ago* src/pdumper.c (pdumper_load): XSETVECTOR -> make_lisp_ptr.
Paul Eggert [Tue, 11 Aug 2020 09:16:54 +0000 (02:16 -0700)]
* src/pdumper.c (pdumper_load): XSETVECTOR -> make_lisp_ptr.

4 years ago* src/fns.c (hash_table_rehash): Help the compiler a bit.
Paul Eggert [Tue, 11 Aug 2020 09:16:54 +0000 (02:16 -0700)]
* src/fns.c (hash_table_rehash): Help the compiler a bit.

4 years agoRehash hash tables eagerly after loading a dump
Pip Cet [Tue, 11 Aug 2020 09:16:53 +0000 (02:16 -0700)]
Rehash hash tables eagerly after loading a dump

This simplifies code, and helps performance in some cases (Bug#36597).
* src/lisp.h (hash_rehash_needed_p): Remove.  All uses removed.
(hash_rehash_if_needed): Remove.  All uses removed.
(struct Lisp_Hash_Table): Remove comment about rehashing hash tables.
* src/pdumper.c (thaw_hash_tables): New function.
(hash_table_thaw): New function.
(hash_table_freeze): New function.
(dump_hash_table): Simplify.
(dump_hash_table_list): New function.
(hash_table_contents): New function.
(Fdump_emacs_portable): Handle hash tables by eager rehashing.
(pdumper_load): Restore hash tables.
(init_pdumper_once): New function.

4 years ago; * lisp/leim/quail/latin-ltx.el: Fix regexp in last commit.
Stefan Kangas [Tue, 11 Aug 2020 06:47:40 +0000 (08:47 +0200)]
; * lisp/leim/quail/latin-ltx.el: Fix regexp in last commit.

4 years agoFix \epsilon and \varepsilon in TeX input method
Stefan Kangas [Mon, 10 Aug 2020 22:42:31 +0000 (00:42 +0200)]
Fix \epsilon and \varepsilon in TeX input method

* lisp/leim/quail/latin-ltx.el: Add correct \epsilon and \varepsilon
characters to TeX input method.  (Bug#26060)

4 years agoFix fontification of outdated TeX form
Lars Ingebrigtsen [Mon, 10 Aug 2020 14:26:34 +0000 (16:26 +0200)]
Fix fontification of outdated TeX form

* lisp/textmodes/tex-mode.el (tex-font-lock-keywords-2): End the
expression before the terminating $ in constructions like $\it
identifiername$
(bug#28277). This avoids italicising the final $ character.

This fixes the final $ of the final test case here:

$foo$
\textit{foo}
{\it foo}
$\mathit{identifiername}$
$\textit{identifiername}$
${\it identifiername}$
$\it identifiername$

4 years agoAdd new command apropos-function (Bug#41021)
Stefan Kangas [Sat, 2 May 2020 10:29:13 +0000 (12:29 +0200)]
Add new command apropos-function (Bug#41021)

* lisp/apropos.el (apropos-function): New command.
* etc/NEWS: Announce it.

4 years ago; Add my last change to NEWS.
Stefan Kangas [Mon, 10 Aug 2020 12:44:35 +0000 (14:44 +0200)]
; Add my last change to NEWS.

4 years agoChange 'M-:' to not error out on incomplete expressions
Charles A. Roelli [Mon, 10 Aug 2020 13:16:11 +0000 (15:16 +0200)]
Change 'M-:' to not error out on incomplete expressions

* lisp/simple.el (read--expression-try-read): New function to read
a Lisp expression from the minibuffer (bug#30697).  This will not
(as before) signal an error on incomplete expressions, but allow
users to continue editing it.
(read--expression): Use it (and add a doc string).

4 years agoFix problem with /- incorrectly starting a comment in SQL mode
Lars Ingebrigtsen [Mon, 10 Aug 2020 11:24:19 +0000 (13:24 +0200)]
Fix problem with /- incorrectly starting a comment in SQL mode

* lisp/progmodes/sql.el (sql-mode): Move all the syntax setup
stuff here (bug#35646).  Add handling of -* and /- from Kristian
Hole <kristian@hole.priv.no>.

4 years agoAdd term/st.el (Bug#33182)
Stefan Kangas [Thu, 3 Oct 2019 00:46:44 +0000 (02:46 +0200)]
Add term/st.el (Bug#33182)

This is a copy of term/konsole.el with konsole -> st.
* lisp/term/st.el: New file.

4 years ago; Copyright fix
Glenn Morris [Mon, 10 Aug 2020 11:28:27 +0000 (12:28 +0100)]
; Copyright fix

Author has assignment on file

4 years agoAdd zsh extended_history handling for comint.el input ring
Matthew Bauer [Mon, 10 Aug 2020 11:09:57 +0000 (13:09 +0200)]
Add zsh extended_history handling for comint.el input ring

* lisp/comint.el (comint-input-ring-file-prefix): New variable
(bug#36034).
(comint-read-input-ring): Use it.

* lisp/shell.el (shell-mode): Set it.

4 years ago; Fix typos.
Stefan Kangas [Sun, 9 Aug 2020 23:03:09 +0000 (01:03 +0200)]
; Fix typos.

4 years ago; * lisp/man.el (manual-entry): Fix comment to say we will keep it.
Stefan Kangas [Sun, 9 Aug 2020 22:56:33 +0000 (00:56 +0200)]
; * lisp/man.el (manual-entry): Fix comment to say we will keep it.

4 years ago* lisp/vt100-led.el: Use lexical-binding.
Stefan Kangas [Sun, 9 Aug 2020 22:16:44 +0000 (00:16 +0200)]
* lisp/vt100-led.el: Use lexical-binding.

4 years agoRevert "Indent python multiline strings to start and previous levels"
Lars Ingebrigtsen [Sun, 9 Aug 2020 21:51:24 +0000 (23:51 +0200)]
Revert "Indent python multiline strings to start and previous levels"

This reverts commit b78583cde7d8aaa1fa19c20975c03d689c78baef.

The multi-line string indentation was incorrect after applying this patch.

4 years agoAdd ability to mark/unmark/delete all bookmarks
Matthew White [Thu, 23 Jul 2020 21:14:32 +0000 (21:14 +0000)]
Add ability to mark/unmark/delete all bookmarks

Thanks to Karl Fogel for pre-commit review.

* lisp/bookmark.el (bookmark-delete-all): New function to delete all
  bookmarks.
  (bookmark-bmenu-mark-all): New function to mark all bookmarks in the
  bookmark list buffer.
  (bookmark-bmenu-unmark-all): New function to unmark all bookmarks in
  the bookmark list buffer.
  (bookmark-bmenu-delete-all): New function to mark for deletion all
  bookmarks in the bookmark list buffer.
  (bookmark-map): Map "D" to `bookmark-delete-all'.
  (bookmark-bmenu-mode-map): New mappping for "M" to
  `bookmark-bmenu-mark-all'.
  (bookmark-bmenu-mode-map): New mappping for "U" to
  `bookmark-bmenu-unmark-all'.
  (bookmark-bmenu-mode-map): New mappping for "D" to
  `bookmark-bmenu-delete-all'.
  (bookmark-bmenu-mark-all): New bookmark menu to
  `bookmark-delete-all'.
  (easy-menu-define): New bookmark menu to `bookmark-bmenu-mark-all'.
  (easy-menu-define): New bookmark menu to
  `bookmark-bmenu-unmark-all'.
  (easy-menu-define): New bookmark menu to
  `bookmark-bmenu-delete-all'.
  (bookmark-bmenu-select): Update docstring to include a reference to
  `bookmark-bmenu-mark-all'.
  (bookmark-bmenu-mode): Update docstring. Add/Update description:
  `bookmark-bmenu-mark-all', `bookmark-bmenu-delete-all',
  `bookmark-bmenu-execute-deletions', and `bookmark-bmenu-unmark-all'.
* test/lisp/bookmark-resources/test-list.bmk: New bookmark file to
  test a list of bookmarks.
* test/lisp/bookmark-tests.el (bookmark-tests-bookmark-file-list): New
  reference to the bookmark file used for testing a list of bookmarks.
  (bookmark-tests-bookmark-list-0, bookmark-tests-bookmark-list-1,
  bookmark-tests-bookmark-list-2): New cached values for testing a
  list of bookmark.
  (bookmark-tests-cache-timestamp-list): New variable to set
  `bookmark-bookmarks-timestamp'.
  (with-bookmark-test-list): New macro environment to test a list of
  bookmarks.
  (with-bookmark-test-file-list): New macro environment to test a list
  of bookmarks with example.txt.
  (with-bookmark-bmenu-test-list): New macro environment to test
  functions about a list of bookmarks from `bookmark-bmenu-list'.
  (bookmark-tests-all-names-list, bookmark-tests-get-bookmark-list,
  bookmark-tests-get-bookmark-record-list): New functions to test the
  records of the list of bookmarks.
  (bookmark-tests-make-record-list): New function to test the creation
  of a record from example.txt with a list of bookmarks loaded.
  (bookmark-tests-delete-all): New function to test
  `bookmark-delete-all'.
  (bookmark-test-bmenu-any-marks-list): New function to test
  `bookmark-bmenu-any-marks' with a list of bookmarks.
  (bookmark-test-bmenu-mark-all): New function to test
  `bookmark-bmenu-mark-all'.
  (bookmark-test-bmenu-unmark-all): New function to test
  `bookmark-bmenu-unmark-all'.
  (bookmark-test-bmenu-delete-all): New function to test
  `bookmark-bmenu-delete-all'.

4 years agoUse one src status -a call for vc-src-dir-status-files
Wolfgang Scherer [Sun, 9 Aug 2020 19:48:37 +0000 (21:48 +0200)]
Use one src status -a call for vc-src-dir-status-files

lisp/vc/vc-src.el: (vc-src--parse-state) new function.
(vc-src-state) use vc-src--parse-state.
(vc-src-dir-status-files) use recursive calls to `src status -a' (bug#39502).

4 years agoAdds backslash as escape character to mysql syntax-alist
Kristian Hole [Sun, 9 Aug 2020 18:55:52 +0000 (20:55 +0200)]
Adds backslash as escape character to mysql syntax-alist

* lisp/progmodes/sql.el (sql-product-alist): The \ character is an
escape character in mysql (bug#37459).
(sql-mode): Changes the example from the incorrect use of
punctuation rule, to the escape character rule.

Copyright-paperwork-exempt: yes

4 years agoIndent python multiline strings to start and previous levels
Carlos Pita [Sun, 9 Aug 2020 18:44:50 +0000 (20:44 +0200)]
Indent python multiline strings to start and previous levels

* progmodes/python.el (python-indent--calculate-indentation): Add an
additional indentation point to match indentation of previous line in
a multiline string.  Then Tab iterates between 0, the start indentation
level and the previous line level (bug#37726).

4 years ago* src/json.c (lisp_to_json): Simplify.
Philipp Stephani [Sun, 9 Aug 2020 17:31:01 +0000 (19:31 +0200)]
* src/json.c (lisp_to_json): Simplify.

4 years agoRevert obsoletion of manual-entry
Stefan Kangas [Sun, 9 Aug 2020 16:23:45 +0000 (18:23 +0200)]
Revert obsoletion of manual-entry

Ref: https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00167.html

* lisp/man.el (manual-entry): Revert obsoletion of this alias.

4 years agoFix recently added documentation bits
Eli Zaretskii [Sun, 9 Aug 2020 16:13:53 +0000 (19:13 +0300)]
Fix recently added documentation bits

* lisp/simple.el (async-shell-command-buffer)
(async-shell-command, shell-command, shell-command-on-region):
* lisp/dired-aux.el (dired-do-async-shell-command)
(dired-do-shell-command):
* doc/misc/tramp.texi (Remote processes):
* doc/emacs/misc.texi (Single Shell):
* etc/NEWS: Fix wording and punctuation of recently added
documentation.

4 years agoImprove client/daemon xdg/systemd experience
Carlos Pita [Sun, 9 Aug 2020 13:57:51 +0000 (15:57 +0200)]
Improve client/daemon xdg/systemd experience

* Makefile.in: Add emacsclient.desktop generation.
* etc/emacsclient.desktop: Add file, use emacsd as StartupWMClass.
* etc/emacs.service: Run with name emacsd (bug#37847).

4 years agoAdd the new library hierarchy.el
Damien Cassou [Sun, 9 Aug 2020 12:48:22 +0000 (14:48 +0200)]
Add the new library hierarchy.el

* lisp/emacs-lisp/hierarchy.el: New file.

4 years agovc-hg: use 'hg summary' to populate vc-dir headers
Andrii Kolomoiets [Sun, 9 Aug 2020 12:35:26 +0000 (14:35 +0200)]
vc-hg: use 'hg summary' to populate vc-dir headers

* lisp/vc/vc-hg.el (vc-hg-dir-extra-headers): Use 'hg summary' command.
(vc-hg-dir-extra-header): Remove unused function.
* etc/NEWS: Mention changes to vc-hg.el (bug#38387).

4 years agovc-hg-create-tag: Possibility to create a branch
Andrii Kolomoiets [Sun, 9 Aug 2020 12:30:55 +0000 (14:30 +0200)]
vc-hg-create-tag: Possibility to create a branch

* lisp/vc/vc-hg.el (vc-hg-create-bookmark): New user option.
(vc-hg-create-tag): Use it (bug#38425).

4 years agoAdd constants for shell command output buffer names
Tino Calancha [Sun, 9 Aug 2020 12:18:09 +0000 (14:18 +0200)]
Add constants for shell command output buffer names

Buffers `*Shell Command Output*' and `*Async Shell Command*'
have been around since a long time; used across several libraries,
they are de facto output buffers for shell commands.

* lisp/simple.el (shell-command-buffer-name)
(shell-command-buffer-name-async): New variables.
* lisp/dired-aux.el
* lisp/gnus/gnus-sum.el
* lisp/gnus/gnus-win.el
* lisp/ibuf-ext.el
* lisp/net/tramp.el: Use them.

* etc/NEWS (Changes in Emacs 28.1): Announce this change.

* doc/emacs/misc.texi (Single Shell)
* doc/misc/tramp.texi (Remote processes):
Update manual (bug#39138).