]> git.eshelyaron.com Git - emacs.git/log
emacs.git
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).

4 years agoTUTORIAL: "buffer" vs "file" consistency; capitalize Dired
Jorge P. de Morais Neto [Sun, 9 Aug 2020 11:47:13 +0000 (13:47 +0200)]
TUTORIAL: "buffer" vs "file" consistency; capitalize Dired

* etc/tutorials/TUTORIAL: For consistency with C-x s ("save some
buffers") and for accuracy, describe C-x C-s as "Save buffer to
file"), and then C-x s as "Save some buffers to their files"
(bug#39359).  Also capitalize "Dired".

Copyright-paperwork-exempt: yes

4 years agoMake solar commands in Calendar less beepy
Lars Ingebrigtsen [Sun, 9 Aug 2020 11:12:27 +0000 (13:12 +0200)]
Make solar commands in Calendar less beepy

* lisp/calendar/solar.el (solar-setup): Remove a (beep) that's
been in this code since 1992 (bug#42774).

4 years ago; Fix typo in last change to calendar.el
Basil L. Contovounesios [Sun, 9 Aug 2020 10:53:44 +0000 (11:53 +0100)]
; Fix typo in last change to calendar.el

* lisp/calendar/calendar.el (calendar-use-numeric-time-zones): Fix
typo in docstring.

4 years agoAdd a command line (and MIME handler) function to start eww
Lars Ingebrigtsen [Sun, 9 Aug 2020 11:05:37 +0000 (13:05 +0200)]
Add a command line (and MIME handler) function to start eww

* lisp/net/eww.el (eww-browse): New command (bug#42768) to be used
from the command line.

* doc/misc/eww.texi (Command Line): Document it.

4 years agoDoc string fix for message-mailto
Lars Ingebrigtsen [Sun, 9 Aug 2020 10:55:15 +0000 (12:55 +0200)]
Doc string fix for message-mailto

* lisp/gnus/message.el (message-mailto): Doc string fix.

4 years agoSlight code clean-up in message-mailto
Lars Ingebrigtsen [Sun, 9 Aug 2020 10:52:02 +0000 (12:52 +0200)]
Slight code clean-up in message-mailto

* lisp/gnus/message.el (message-mailto): Clean up code slightly.

4 years agoAdd a variable to allow displaying numeric time zones
Lars Ingebrigtsen [Sun, 9 Aug 2020 10:34:23 +0000 (12:34 +0200)]
Add a variable to allow displaying numeric time zones

* lisp/calendar/calendar.el (calendar-use-numeric-time-zones): New
variable.

* doc/emacs/calendar.texi (Sunrise/Sunset): Document it (bug#33149).

* lisp/calendar/cal-dst.el (calendar-standard-time-zone-name): Use it.
(calendar-daylight-time-zone-name): Ditto.

* lisp/calendar/solar.el (sunrise-sunset): Adjust usage.
(solar-equinoxes-solstices): Ditto.

4 years agoRemove superfluous code from the previous '' sql string fix
Lars Ingebrigtsen [Sun, 9 Aug 2020 08:41:59 +0000 (10:41 +0200)]
Remove superfluous code from the previous '' sql string fix

* lisp/progmodes/sql.el (sql-mode): Remove setting that's now
superfluous from previous check-in.

4 years ago* lisp/custom.el (custom-add-choice): Fix previous commit.
Juri Linkov [Sat, 8 Aug 2020 23:48:14 +0000 (02:48 +0300)]
* lisp/custom.el (custom-add-choice): Fix previous commit.

4 years ago; Fix typos in recent message.el changes
Basil L. Contovounesios [Sat, 8 Aug 2020 22:53:14 +0000 (23:53 +0100)]
; Fix typos in recent message.el changes

* doc/misc/message.texi (OpenPGP Header):
* etc/NEWS:
* lisp/gnus/message.el (message-add-openpgp-header): Fix spelling of
function name.

4 years ago* lisp/outline.el (outline-minor-mode-prefix): Fix compilation.
Glenn Morris [Sat, 8 Aug 2020 15:35:34 +0000 (08:35 -0700)]
* lisp/outline.el (outline-minor-mode-prefix): Fix compilation.

4 years ago; Fix recent message.el-related changes
Eli Zaretskii [Sat, 8 Aug 2020 14:06:45 +0000 (17:06 +0300)]
; Fix recent message.el-related changes

* lisp/gnus/message.el (message-openpgp-header):
* doc/misc/message.texi (OpenPGP Header): Fix the documentation
added in recent commits.

4 years agoDocument the OpenPGP header
Lars Ingebrigtsen [Sat, 8 Aug 2020 13:49:48 +0000 (15:49 +0200)]
Document the OpenPGP header

* doc/misc/message.texi (Using the OpenPGP Header): Document the
OpenPGP header (bug#39964).

4 years agoAdd support for the OpenPGP header to Emacs
Philip K [Sat, 8 Aug 2020 13:40:32 +0000 (15:40 +0200)]
Add support for the OpenPGP header to Emacs

* lisp/gnus/message.el (message-openpgp-header): New variable
(bug#39964).
(messasge-add-openpgp-header): New function to use it.

4 years agoHandle '' in strings in SQL Mode
Florian v. Savigny [Sat, 8 Aug 2020 13:33:58 +0000 (15:33 +0200)]
Handle '' in strings in SQL Mode

* lisp/progmodes/sql.el
(sql--syntax-propertize-escaped-apostrophe): Handle '' in strings
(bug#40231).
(sql-mode): Use it.

4 years agoModernise a code example in os.texi
Lars Ingebrigtsen [Sat, 8 Aug 2020 13:17:33 +0000 (15:17 +0200)]
Modernise a code example in os.texi

* doc/lispref/os.texi (Session Management): Use
with-current-buffer in the example instead of save+switch (bug#40341).

4 years ago* doc/lispref/os.texi (Session Management): Make example homoiconic
Bruno Félix Rezende Ribeiro [Sat, 8 Aug 2020 13:13:57 +0000 (15:13 +0200)]
* doc/lispref/os.texi (Session Management): Make example homoiconic

* doc/lispref/os.texi (Session Management): Don't insert Lisp as
strings, but use format (bug#40341).

Copyright-paperwork-exempt: yes

4 years ago; * etc/NEWS: Rearrange some entries and add entry for recentf change.
Eli Zaretskii [Sat, 8 Aug 2020 13:07:16 +0000 (16:07 +0300)]
; * etc/NEWS: Rearrange some entries and add entry for recentf change.

4 years agoUpdate Leuven-theme
Fabrice Niessen [Sat, 8 Aug 2020 12:21:38 +0000 (14:21 +0200)]
Update Leuven-theme

* etc/themes/leuven-theme.el (class): Update theme (bug#40759).

4 years agoUse write-region when saving recentf file
Philip K [Sat, 8 Aug 2020 11:59:03 +0000 (13:59 +0200)]
Use write-region when saving recentf file

* lisp/recentf.el (recentf-save-list): Don't generate backups for
recentf files (bug#41060).

4 years agooutline-minor-mode-prefix is a key sequence, not a string
Philip K [Sat, 8 Aug 2020 11:56:05 +0000 (13:56 +0200)]
outline-minor-mode-prefix is a key sequence, not a string

* lisp/outline.el (outline-minor-mode-prefix): Fix the type (bug#41072).

4 years agoMake Customize changes to outline-minor-mode-prefix happen immediately
Philip K [Sat, 8 Aug 2020 11:52:46 +0000 (13:52 +0200)]
Make Customize changes to outline-minor-mode-prefix happen immediately

* lisp/outline.el (outline-minor-mode-prefix): Update the key map
after changing the value in Customize (bug#41073).

4 years agolisp/bookmark.el: Customize choice to show bookmark list in a new tab
Matthias Meulien [Sat, 8 Aug 2020 11:45:23 +0000 (13:45 +0200)]
lisp/bookmark.el: Customize choice to show bookmark list in a new tab

* lisp/bookmark.el (bookmark-bmenu-get-buffer): Add as a choice
for new-tab targets (bug#41225).

4 years agoAdd new utility function custom-add-choice
Lars Ingebrigtsen [Sat, 8 Aug 2020 11:42:48 +0000 (13:42 +0200)]
Add new utility function custom-add-choice

* lisp/custom.el (custom-add-choice): New function (bug#41225).

4 years agoFix up previous list-buffers patch to work when there's no buffer
Lars Ingebrigtsen [Sat, 8 Aug 2020 11:01:42 +0000 (13:01 +0200)]
Fix up previous list-buffers patch to work when there's no buffer

* lisp/buff-menu.el (Buffer-menu--dynamic-name-width): Use apply
#'max instead of seq-max since the list may be empty.

4 years agoMark an mml-sec test as unstable
Lars Ingebrigtsen [Sat, 8 Aug 2020 10:00:57 +0000 (12:00 +0200)]
Mark an mml-sec test as unstable

* test/lisp/gnus/mml-sec-tests.el
(mml-secure-en-decrypt-sign-1-1-single): Mark the test as unstable
(bug#42720).  It sometimes fails on some systems (Fedora?) when
run with "-j5", so there may be a race condition in the code somewhere.

4 years agoTweak how whitespace-mode marks the end of the buffer
Lars Ingebrigtsen [Sat, 8 Aug 2020 09:53:09 +0000 (11:53 +0200)]
Tweak how whitespace-mode marks the end of the buffer

* lisp/whitespace.el (whitespace-missing-newline-at-eof): Change
the colours to not be as angry.
(whitespace-color-on): Don't mark the end of the buffer if point
is there.

4 years agoMake the name column in 'list-buffers' have a dynamic width
Lars Ingebrigtsen [Sat, 8 Aug 2020 09:37:43 +0000 (11:37 +0200)]
Make the name column in 'list-buffers' have a dynamic width

* lisp/buff-menu.el (Buffer-menu--dynamic-name-width): New
function (bug#30692).
(Buffer-menu-name-width): Default to using it.
(list-buffers--refresh): Call it.

* lisp/emacs-lisp/seq.el (seq-max): Add autoload cookie.

4 years agoUse lexical-binding in saveplace.el and add tests
Stefan Kangas [Fri, 7 Aug 2020 23:20:01 +0000 (01:20 +0200)]
Use lexical-binding in saveplace.el and add tests

* lisp/saveplace.el: Use lexical-binding.
(save-place-to-alist): Doc fix.
* test/lisp/saveplace-tests.el:
* test/lisp/saveplace-resources/saveplace: New files.

4 years ago* lisp/scroll-lock.el: Use lexical-binding.
Stefan Kangas [Fri, 7 Aug 2020 17:40:31 +0000 (19:40 +0200)]
* lisp/scroll-lock.el: Use lexical-binding.

4 years agoUse lexical-binding in browse-url.el and add tests
Simen Heggestøyl [Tue, 16 Jun 2020 19:32:58 +0000 (21:32 +0200)]
Use lexical-binding in browse-url.el and add tests

* lisp/net/browse-url.el: Turn on lexical-binding.
(browse-url--mailto, browse-url--man, browse-url--browser): Use
imperative form in docstrings.
(browse-url-delete-temp-file): Turn comment into a proper docstring.

* test/lisp/net/browse-url-tests.el: New file with tests for
browse-url.el.

4 years agoRemove support for Mosaic from browse-url
Stefan Kangas [Fri, 7 Aug 2020 12:42:41 +0000 (14:42 +0200)]
Remove support for Mosaic from browse-url

* lisp/net/browse-url.el (browse-url-mosaic-program)
(browse-url-mosaic-arguments, browse-url-mosaic-pidfile)
(browse-url-CCI-port, browse-url-CCI-host)
(browse-url-default-browser, browse-url-mosaic, browse-url-cci):
Remove support for the Mosaic browser, which saw its last release in
1997, or 23 years ago.

* etc/NEWS: Announce its removal.

4 years agoFix fontification of %d in strings in cperl-mode
Lars Ingebrigtsen [Fri, 7 Aug 2020 12:07:14 +0000 (14:07 +0200)]
Fix fontification of %d in strings in cperl-mode

* lisp/progmodes/cperl-mode.el (cperl-init-faces): Don't fontify
directives like %d in strings as hashes (bug#22867).

4 years agoMake more erc function aliases obsolete
Stefan Kangas [Fri, 7 Aug 2020 11:54:50 +0000 (13:54 +0200)]
Make more erc function aliases obsolete

* lisp/erc/erc-compat.el (erc-propertize, erc-view-mode-enter)
(erc-function-arglist, erc-delete-dups)
(erc-replace-regexp-in-string): Make these aliases obsolete.

* lisp/erc/erc-capab.el (erc-capab-identify-add-prefix)
(erc-capab-identify-remove/set-identified-flag):
* lisp/erc/erc-dcc.el (erc-dcc-chat-parse-output)
(erc-dcc-unquote-filename, pcomplete/erc-mode/DCC):
* lisp/erc/erc-list.el (erc-list-menu-mode, erc-list-button)
(erc-list-make-string):
* lisp/erc/erc-log.el (erc-log-standardize-name):
* lisp/erc/erc-match.el (erc-log-matches-make-buffer):
* lisp/erc/erc-networks.el (erc-server-select):
* lisp/erc/erc.el (erc-message-english-PART)
(erc-update-mode-line-buffer, erc-format-my-nick)
(erc-format-@nick, erc-get-user-mode-prefix, erc-display-prompt)
(erc-part-reason-zippy, erc-quit-reason-zippy, erc-get-arglist)
(erc-toggle-debug-irc-protocol, erc-log-irc-protocol)
(erc-migrate-modules): Adjust callers.

4 years ago* lisp/files.el (auto-mode-alist): delete ada-mode; now in GNU ELPA only
Stephen Leake [Fri, 7 Aug 2020 11:43:18 +0000 (04:43 -0700)]
* lisp/files.el (auto-mode-alist): delete ada-mode; now in GNU ELPA only

4 years agoAdd some documentation for widget-describe and button-describe
Lars Ingebrigtsen [Fri, 7 Aug 2020 11:36:50 +0000 (13:36 +0200)]
Add some documentation for widget-describe and button-describe

* doc/emacs/help.texi (Key Help): Document button-describe and
widget-describe.

* lisp/button.el (push-button): Mention button-describe.

* lisp/cus-edit.el (Custom-newline): Mention widget-describe (bug#139).

4 years agoAdd new commands to describe buttons and widgets
Mauro Aranda [Fri, 7 Aug 2020 11:14:41 +0000 (13:14 +0200)]
Add new commands to describe buttons and widgets

* lisp/help-fns.el (describe-widget-functions): New variable, used by
describe-widget.
(describe-widget): New command, to display information about a widget.
* lisp/button.el (button-describe): New command, for describing a button.
(button--describe): Helper function for button-describe.
* lisp/wid-edit.el (widget-describe): New command, for describing a
widget.
(widget--resolve-parent-action): Helper function, to allow
widget-describe to display more useful information (bug#139).

4 years agoFix documentation of 'missing-newline-at-eof'
Eli Zaretskii [Fri, 7 Aug 2020 11:03:24 +0000 (14:03 +0300)]
Fix documentation of 'missing-newline-at-eof'

* doc/emacs/display.texi (Useless Whitespace):
* etc/NEWS (missing-newline-at-eof): Improve wording and
punctuation.

4 years agoBuffer-menu-select doc string clarification
Lars Ingebrigtsen [Fri, 7 Aug 2020 10:56:13 +0000 (12:56 +0200)]
Buffer-menu-select doc string clarification

* lisp/buff-menu.el (Buffer-menu-select): Document that it removed
the marks (bug#6491).

4 years ago; * lisp/arc-mode.el (archive-copy-file): Doc fix.
Eli Zaretskii [Fri, 7 Aug 2020 10:54:39 +0000 (13:54 +0300)]
; * lisp/arc-mode.el (archive-copy-file): Doc fix.

4 years ago* lisp/play/snake.el (snake-null-map): Quit on `q'. (Bug#42731)
Peder O. Klingenberg [Thu, 6 Aug 2020 12:32:52 +0000 (14:32 +0200)]
* lisp/play/snake.el (snake-null-map): Quit on `q'. (Bug#42731)

4 years agoAdd a new command to copy a file from zip files
Lars Ingebrigtsen [Fri, 7 Aug 2020 09:59:25 +0000 (11:59 +0200)]
Add a new command to copy a file from zip files

* lisp/arc-mode.el (archive-copy-file): New command, keystroke and
menu bar entry (bug#26192).
(archive-extract): Refactored out code from here...
(archive--extract-file): ... to here for use in archive-copy-file.

4 years agoAllow ffap to do the right thing with 'https://gnu.org'
Lars Ingebrigtsen [Fri, 7 Aug 2020 09:30:55 +0000 (11:30 +0200)]
Allow ffap to do the right thing with 'https://gnu.org'

* lisp/thingatpt.el (thing-at-point-bounds-of-url-at-point): Don't
include trailing ' in the URL, because it's more likely to be a
punctuation character (bug#29410).

4 years agoClean up and improve compilation of arithmetic (bug#42597)
Mattias Engdegård [Mon, 3 Aug 2020 14:29:06 +0000 (16:29 +0200)]
Clean up and improve compilation of arithmetic (bug#42597)

* lisp/emacs-lisp/byte-opt.el (byte-optimize-associative-math)
(byte-optimize-min-max): Transform 3-arg min/max call into two 2-arg
calls, which is faster.
* lisp/emacs-lisp/bytecomp.el (byte-compile-associative): Rename to...
(byte-compile-variadic-numeric): ...this function and simplify,
fixing incorrect comments.  The 3-arg strength reduction is now
always done in the optimisers and is no longer needed here.
(byte-compile-min-max): New function.
(byte-compile-minus): Simplify, remove incorrect comment, and use
byte-compile-variadic-numeric.
(byte-compile-quo): Simplify and fix comment.

4 years agoFix byte-compilation of (+ -0.0) (bug#42597)
Mattias Engdegård [Mon, 3 Aug 2020 13:29:41 +0000 (15:29 +0200)]
Fix byte-compilation of (+ -0.0) (bug#42597)

* lisp/emacs-lisp/bytecomp.el (byte-compile-associative):
Translate numerical identity expressions, such as (+ x) and (* x),
into (* x 1) since the previous translation (+ x 0) gets it wrong
for x = -0.0.
* test/lisp/emacs-lisp/bytecomp-tests.el
(byte-opt-testsuite-arith-data): Add test cases.

4 years agoAdd missing "this is documented" marker to previous checkin
Lars Ingebrigtsen [Fri, 7 Aug 2020 07:30:07 +0000 (09:30 +0200)]
Add missing "this is documented" marker to previous checkin