]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoDoc update wrt Tramp support of SSH security keys
Michael Albinus [Sun, 8 Aug 2021 14:18:59 +0000 (16:18 +0200)]
Doc update wrt Tramp support of SSH security keys

* doc/misc/tramp.texi (Frequently Asked Questions): Speak about
SSH security keys.
(GVFS-based methods, Predefined connection information)
(Remote shell setup): Fix typo.

* etc/NEWS: Precise Tramp's support for SSH security keys.  Fix typos.

3 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Sun, 8 Aug 2021 14:18:10 +0000 (16:18 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

3 years agoproject.el: Bump the version
Dmitry Gutov [Sun, 8 Aug 2021 11:13:49 +0000 (14:13 +0300)]
project.el: Bump the version

* lisp/progmodes/project.el: Bump the version.

3 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Sun, 8 Aug 2021 10:39:11 +0000 (12:39 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

3 years agoFurther fix to filtering Gnus search group names
Eric Abrahamsen [Fri, 6 Aug 2021 00:53:05 +0000 (17:53 -0700)]
Further fix to filtering Gnus search group names

* lisp/gnus/gnus-search.el (gnus-search-indexed-parse-output): Group
names in the GROUPS argument may be prefixed or not, depending on
which server we're searching, so always enforce prefix policy within
the function.

3 years agoFix files-tests broken on MS-Windows by a recent change
Eli Zaretskii [Sat, 7 Aug 2021 11:29:45 +0000 (14:29 +0300)]
Fix files-tests broken on MS-Windows by a recent change

* test/lisp/files-tests.el (files-colon-path): Use path-separator, and
account for drive letters in absolute file names on MS-Windows.  (Bug#49918)

3 years agoFix prin1 problem in package-quickstart-refresh
Lars Ingebrigtsen [Sat, 7 Aug 2021 11:02:01 +0000 (13:02 +0200)]
Fix prin1 problem in package-quickstart-refresh

* lisp/emacs-lisp/package.el (package-quickstart-refresh): Bind
print-length/print-level before using prin1-to-string (bug#49924).

3 years agoFix print-length issue in comp-run-async-workers
Lars Ingebrigtsen [Sat, 7 Aug 2021 10:59:22 +0000 (12:59 +0200)]
Fix print-length issue in comp-run-async-workers

* lisp/emacs-lisp/comp.el (comp-run-async-workers): Bind
print-length/print-level to ensure there's no truncation (bug#49922).

3 years agoMake `q' in `org-agenda' work even with `debug-on-error' set
Lars Ingebrigtsen [Sat, 7 Aug 2021 10:55:39 +0000 (12:55 +0200)]
Make `q' in `org-agenda' work even with `debug-on-error' set

* lisp/org/org-agenda.el (org-agenda-get-restriction-and-command):
Using `error' here will trigger users with `debug-on-error' so use
`user-error' instead (bug#49920).  It would probably be preferable
to rewrite this to not use the error system to do control flow.

3 years agoFix problem with relative directories in CDPATH
Lars Ingebrigtsen [Sat, 7 Aug 2021 10:50:56 +0000 (12:50 +0200)]
Fix problem with relative directories in CDPATH

* lisp/files.el (parse-colon-path): Allow relative directories
(like ".") in CDPATH (bug#49918).

3 years agoperl-mode: fix variable fontification
Tomasz Konojacki [Sat, 7 Aug 2021 10:36:22 +0000 (12:36 +0200)]
perl-mode: fix variable fontification

* lisp/progmodes/perl-mode.el: Handle variables first to avoid
conflicting with keywords. This fixes cases like "$package"
(bug#49906).
Copyright-paperwork-exempt: yes

3 years ago; * lisp/replace.el (occur-1): Remove old fringe arrow.
Mattias Engdegård [Sat, 7 Aug 2021 09:11:52 +0000 (11:11 +0200)]
; * lisp/replace.el (occur-1): Remove old fringe arrow.

3 years agoAllow building on MacOS with MacPorts and libgccjit
Lars Ingebrigtsen [Sat, 7 Aug 2021 09:56:37 +0000 (11:56 +0200)]
Allow building on MacOS with MacPorts and libgccjit

* configure.ac: Check for the "port" command (MacPorts).
Add the required lib/include directories for nativecomp.

* src/Makefile.in (LIBGCCJIT_CFLAGS, LIBGCCJIT_LIBS): Split into
two parts to allow including -L/-I for MacPorts.
(LIBES): Adjust.
(EMACS_CFLAGS): Ditto.

3 years agoMerge from origin/emacs-27
Glenn Morris [Fri, 6 Aug 2021 15:49:32 +0000 (08:49 -0700)]
Merge from origin/emacs-27

b77f6af24e (origin/emacs-27) ERC right stamps: also use latest buffer...

# Conflicts:
# lisp/erc/erc-stamp.el

3 years agoImprove ffap-ido-mode test
dickmao [Fri, 6 Aug 2021 11:29:31 +0000 (13:29 +0200)]
Improve ffap-ido-mode test

* test/lisp/ffap-tests.el (ffap-ido-mode): Actually test
`ido-everywhere' at run time, not compile time (bug#49895).

3 years agoFix problem with occasional stalls in `url-retrieve-synchronously'
dick r. chiang [Fri, 6 Aug 2021 11:24:53 +0000 (13:24 +0200)]
Fix problem with occasional stalls in `url-retrieve-synchronously'

* lisp/url/url.el (url-retrieve-synchronously): Use
`accept-process-output' on a null process.  That is the safer, more
conventional way of achieving non-blocking sleep-for (bug#49897).

Also rewrite for greater readability.

3 years ago; * doc/lispref/package.texi (Package Archives): Fix typo.
Eli Zaretskii [Fri, 6 Aug 2021 11:20:54 +0000 (14:20 +0300)]
; * doc/lispref/package.texi (Package Archives): Fix typo.

3 years agoMention NonGNU in "Package Archives" node in the manual
Lars Ingebrigtsen [Fri, 6 Aug 2021 11:03:28 +0000 (13:03 +0200)]
Mention NonGNU in "Package Archives" node in the manual

* doc/lispref/package.texi (Package Archives): Mention NonGNU, too
(bug#49899).

3 years agoAdd colon-space after prompt
Dmitry Gutov [Fri, 6 Aug 2021 08:34:02 +0000 (11:34 +0300)]
Add colon-space after prompt

* lisp/progmodes/project.el (project--completing-read-strict):
Fix last change's regression (bug#49865).

3 years agoFix automatic hscrolling when line numbers are displayed
Eli Zaretskii [Fri, 6 Aug 2021 07:51:45 +0000 (10:51 +0300)]
Fix automatic hscrolling when line numbers are displayed

* src/xdisp.c (hscroll_window_tree): When line numbers are
displayed, account for the the line-number space when calculating
the desired X coordinate on the left.  (Bug#49891)

3 years agoImprove wording of recently changed documentation
Eli Zaretskii [Fri, 6 Aug 2021 07:22:22 +0000 (10:22 +0300)]
Improve wording of recently changed documentation

* src/minibuf.c (syms_of_minibuf):
* lisp/minibuffer.el (minibuffer-restore-windows):
* lisp/progmodes/etags.el (etags-xref-prefer-current-file):
Improve wording of doc strings.

* etc/NEWS: Improve wording and format of recently added entries.

3 years agoMake sure installed *.eln files have correct permissions
Eli Zaretskii [Fri, 6 Aug 2021 06:46:39 +0000 (09:46 +0300)]
Make sure installed *.eln files have correct permissions

* Makefile.in (install-eln): Add "umask 022" to ensure the *.eln
files are accessible from the user's Emacs session.  Suggested by
Wilhelm Kirschbaum <wkirschbaum@gmail.com>.  (Bug#49864)

3 years agoERC right stamps: also use latest buffer's window's width (Bug#44140)
Olivier Certner [Tue, 6 Jul 2021 10:35:43 +0000 (12:35 +0200)]
ERC right stamps: also use latest buffer's window's width (Bug#44140)

* lisp/erc/erc-stamp.el (erc-insert-timestamp-right): Use latest
buffer's window's width to position the timestamp, if both
`erc-timestamp-right-column' and `erc-fill-column' are not set (or
`erc-fill-mode' is off).  This is what the documentation says, but was
not implemented.  Also fix the bug of using selected window's width
instead of the (or some) window showing the buffer.  The latest
window's width is saved in `erc-timestamp-last-window-width' and used
when the buffer is no more shown.  In case the buffer was never shown,
which I'm not sure can happen, either use `fill-column' if set, or
give up on aligning and just output the timestamp (modulo the kludge)
right after message text.  While here, fix the off by one calculation
of point start when the reference is the window's width.

3 years agoChange how project-find-file's completion works
Dmitry Gutov [Fri, 6 Aug 2021 00:30:10 +0000 (03:30 +0300)]
Change how project-find-file's completion works

* lisp/progmodes/project.el (project--completing-read-strict):
Allow to choose a non-existent file, with confirmation
(bug#49204).
Don't use the string at point as a "real" default, and instead
only include it in "future history": meaning, it will be inserted
on 'M-n' (bug#49865).

3 years agoNew option etags-xref-prefer-current-file
Dmitry Gutov [Fri, 6 Aug 2021 00:12:40 +0000 (03:12 +0300)]
New option etags-xref-prefer-current-file

* lisp/progmodes/etags.el (etags-xref-prefer-current-file):
New user option (bug#2544).
(xref-backend-definitions): Use it.

3 years agoProvide a default for xref-find-apropos pattern
Dmitry Gutov [Fri, 6 Aug 2021 00:02:13 +0000 (03:02 +0300)]
Provide a default for xref-find-apropos pattern

* lisp/progmodes/xref.el (xref-find-apropos):
Provide a default for the pattern (bug#49731).

3 years agoChange the xref-goto-xref error message
Dmitry Gutov [Thu, 5 Aug 2021 23:49:42 +0000 (02:49 +0300)]
Change the xref-goto-xref error message

* lisp/progmodes/xref.el (xref-goto-xref):
Change the error message (bug#49846).

3 years agoAdd function minibuffer-restore-windows (bug#45072)
Juri Linkov [Thu, 5 Aug 2021 23:36:22 +0000 (02:36 +0300)]
Add function minibuffer-restore-windows (bug#45072)

* lisp/minibuffer.el (minibuffer-restore-windows): New function
that removes the completions buffer.  Add it to minibuffer-exit-hook.
* src/minibuf.c (read-minibuffer-restore-windows): Mention
minibuffer-restore-windows.

3 years agoReset mtime of a buffer reverted "delicately"
Konstantin Kharlamov [Thu, 5 Aug 2021 15:25:56 +0000 (18:25 +0300)]
Reset mtime of a buffer reverted "delicately"

* lisp/files.el (revert-buffer-insert-file-contents-delicately):
Once buffer is reverted, reset its mtime to that of the file.
(Bug#49893)

3 years agoFix files-tests on non-Posix systems
Eli Zaretskii [Thu, 5 Aug 2021 17:42:10 +0000 (20:42 +0300)]
Fix files-tests on non-Posix systems

* test/lisp/files-tests.el (files-test-auto-save-name-default)
(files-test-auto-save-name-transform)
(files-test-auto-save-name-unique, files-test-lock-name-default)
(files-test-lock-name-unique): Skip the drive letter in absolute
file names on MS-Windows/MS-DOS when comparing file names against
the expected ones.
(files-tests-file-name-non-special--subprocess): Skip test on
MS-Windows/MS-DOS.

3 years agoCease attempts to const-propagate through setq
Mattias Engdegård [Thu, 5 Aug 2021 09:50:25 +0000 (11:50 +0200)]
Cease attempts to const-propagate through setq

The current method of propagating constants through setq was unsound
because it relied on each setq form only being traversed at most once
during optimisation, which isn't necessarily true in general; it could
be made to miscompile code in rare cases.

Since it was only used in limited circumstances, disabling this
optimisation doesn't cost us much.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Don't update the known value when traversing `setq`.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test case.

3 years agoFix M-n description in refcards
Lars Ingebrigtsen [Thu, 5 Aug 2021 11:14:26 +0000 (13:14 +0200)]
Fix M-n description in refcards

* etc/refcards/pl-refcard.tex (section{Szukanie przyrostowe}):
Ditto (in comments).

* etc/refcards/refcard.tex (section{Incremental Search}): Fix M-n
description (bug#49872).

3 years ago; Fix oauth typos in last change.
Basil L. Contovounesios [Thu, 5 Aug 2021 10:40:31 +0000 (11:40 +0100)]
; Fix oauth typos in last change.

3 years agoAdd support for the oauth2.el library in nnimap and smtpmail
Roland Winkler [Thu, 5 Aug 2021 10:33:21 +0000 (12:33 +0200)]
Add support for the oauth2.el library in nnimap and smtpmail

* doc/misc/gnus.texi (Customizing the IMAP Connection):
* doc/misc/smtpmail.texi (Authentication): Mention it.

* lisp/gnus/nnimap.el (nnimap-login): Support oauth2.

* lisp/mail/smtpmail.el (smtpmail-try-auth-method): New function
for oauth2.

3 years ago* lisp/cus-start.el (read-minibuffer-restore-windows): Fix entry.
Glenn Morris [Thu, 5 Aug 2021 00:42:55 +0000 (17:42 -0700)]
* lisp/cus-start.el (read-minibuffer-restore-windows): Fix entry.

3 years ago* lisp/vc/smerge-mode.el (smerge-mode-menu): Add menu item for smerge-refine.
Juri Linkov [Wed, 4 Aug 2021 20:43:21 +0000 (23:43 +0300)]
* lisp/vc/smerge-mode.el (smerge-mode-menu): Add menu item for smerge-refine.

3 years agoPackage archive location needs to be absolute filename
dickmao [Wed, 4 Aug 2021 08:50:38 +0000 (10:50 +0200)]
Package archive location needs to be absolute filename

* lisp/emacs-lisp/package.el (package--with-response-buffer-1):
Actually check that URL is absolute (bug#49788).

3 years agoAdd a new thing-at-point type: existing-filename
Lars Ingebrigtsen [Wed, 4 Aug 2021 08:35:53 +0000 (10:35 +0200)]
Add a new thing-at-point type: existing-filename

* doc/lispref/text.texi (Buffer Contents): Mention it.

* lisp/thingatpt.el (thing-at-point-file-at-point): New function.
(existing-filename): Register it.

3 years agoMake `M-j' work reliably if `comment-auto-fill-only-comments' is set
Lars Ingebrigtsen [Wed, 4 Aug 2021 08:03:12 +0000 (10:03 +0200)]
Make `M-j' work reliably if `comment-auto-fill-only-comments' is set

* lisp/simple.el (default-indent-new-line): Force breaking the
line when called interactively (bug#49849).  (Perhaps the
interactive command should be rebound and call this function
instead...)

3 years agoImprove `define-globalized-minor-mode' doc strings
Lars Ingebrigtsen [Wed, 4 Aug 2021 07:38:45 +0000 (09:38 +0200)]
Improve `define-globalized-minor-mode' doc strings

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Copy the description from easy-mmode--arg-docstring (bug#49843).

3 years agoffap ido accommodation
dickmao [Tue, 3 Aug 2021 16:02:48 +0000 (12:02 -0400)]
ffap ido accommodation

Now that ffap-file-finder can be ido-find-file, the
noninteractive portion of find-file-at-point cannot
assume ffap-file-finder always takes an argument
(ido-find-file does not).

* lisp/ffap.el (find-file-at-point): Do not call ffap-file-finder.
* test/lisp/ffap-tests.el (ffap-ido-mode): Test it.

3 years agoUse `abort-minibuffers' in delsel
Miha Rihtaršič [Wed, 4 Aug 2021 07:15:25 +0000 (09:15 +0200)]
Use `abort-minibuffers' in delsel

* lisp/delsel.el (minibuffer-keyboard-quit): Use
`abort-minibuffers' (bug#49821).

Previously, C-g was bound to abort-recursive-edit, now it is bound to
abort-minibuffers.  However, after requiring delsel, it gets bound to
minibuffer-keyboard-quit, which still uses abort-recursive-edit.  Use
the new function instead.

3 years agoAdd new user option 'read-minibuffer-restore-windows'
martin rudalics [Wed, 4 Aug 2021 06:48:18 +0000 (08:48 +0200)]
Add new user option 'read-minibuffer-restore-windows'

* doc/lispref/minibuf.texi (Text from Minibuffer): Document it
(bug#45072).

* lisp/cus-start.el (standard): Add.

* src/minibuf.c (syms_of_minibuf): New variable
'read-minibuffer-restore-windows'.

3 years agoUpdate outdated Gnus information
Lars Ingebrigtsen [Wed, 4 Aug 2021 05:34:36 +0000 (07:34 +0200)]
Update outdated Gnus information

* doc/misc/gnus.texi (History): Update information.

3 years ago; * lisp/so-long.el: Bump version for the GNU ELPA build
Phil Sainty [Wed, 4 Aug 2021 05:17:23 +0000 (17:17 +1200)]
; * lisp/so-long.el: Bump version for the GNU ELPA build

GNU ELPA released commit 359a8e4eda047b7dcb7e64faff7f8eaacf5d937c as
version 1.1.

3 years agoFix apparent typo in new cl-generic-tests.el test case
Lars Ingebrigtsen [Wed, 4 Aug 2021 04:38:34 +0000 (06:38 +0200)]
Fix apparent typo in new cl-generic-tests.el test case

3 years ago* lisp/emacs-lisp/cl-generic.el (cl-generic-generalizers): Don't emit warning
Stefan Monnier [Tue, 3 Aug 2021 23:02:11 +0000 (19:02 -0400)]
* lisp/emacs-lisp/cl-generic.el (cl-generic-generalizers): Don't emit warning

Also remove "WARNING" annotations after confirming that he code was right.

3 years agoEvaluate eql specializers
akater [Tue, 20 Jul 2021 01:25:01 +0000 (01:25 +0000)]
Evaluate eql specializers

* lisp/emacs-lisp/cl-generic.el (cl-generic-generalizers): Evaluate
forms that are eql specializers.  Provide backward compatibility
with a warning.

* test/lisp/emacs-lisp/cl-generic-tests.el: Add a test.
* lisp/emacs-lisp/bindat.el (bindat--type): Adhere to the new rule.
* lisp/emacs-lisp/edebug.el (edebug--match-&-spec-op): Adhere to the new rule.
* lisp/emacs-lisp/map.el (map-into): Adhere to the new rule.
* lisp/emacs-lisp/radix-tree.el (map-into): Adhere to the new rule.
* lisp/frame.el (cl-generic-define-context-rewriter): Adhere to the new rule.
* lisp/gnus/gnus-search.el
(gnus-search-transform-expression): Adhere to the new rule.
* lisp/image/image-converter.el
(image-converter--probe image-converter--convert): Adhere to the new rule.
* lisp/mail/smtpmail.el (smtpmail-try-auth-method): Adhere to the new rule.
* lisp/progmodes/elisp-mode.el
(xref-backend-definitions)
(xref-backend-apropos): Adhere to the new rule.
* lisp/progmodes/etags.el (xref-backend-identifier-at-point)
(xref-backend-identifier-completion-table)
(xref-backend-identifier-completion-ignore-case)
(xref-backend-definitions)(xref-backend-apropos): Adhere to the new rule.
* test/lisp/emacs-lisp/checkdoc-tests.el
(checkdoc-cl-defmethod-with-types-ok)
(checkdoc-cl-defmethod-qualified-ok)
(checkdoc-cl-defmethod-with-extra-qualifier-ok): Adhere to the new rule.

* etc/NEWS: Describe the change.

3 years agoCode cleanup for Tramp's yubikey integration
Michael Albinus [Tue, 3 Aug 2021 20:08:18 +0000 (22:08 +0200)]
Code cleanup for Tramp's yubikey integration

* lisp/net/tramp-sh.el (tramp-actions-before-shell)
(tramp-actions-copy-out-of-band):
Use `tramp-security-key-confirm-regexp'.

* lisp/net/tramp.el (tramp-security-key-confirm-regexp): Rename from
`tramp-yubikey-regexp'.  Adapt docstring.
(tramp-security-key-confirmed-regexp): New defcustom.
(tramp-action-show-and-confirm-message):
Redisplay.  Use `tramp-security-key-confirmed-regexp'.

3 years agofile-name-concat is not error free
Lars Ingebrigtsen [Tue, 3 Aug 2021 17:41:57 +0000 (19:41 +0200)]
file-name-concat is not error free

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Declare
file-name-concat as side-effect free.

3 years agoDeclare file-name-concat as side-effect free
Lars Ingebrigtsen [Tue, 3 Aug 2021 17:08:43 +0000 (19:08 +0200)]
Declare file-name-concat as side-effect free

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Declare
file-name-concat as side-effect (and error) free.

3 years agoRemove ineffective expression in verilog-mode
Mattias Engdegård [Tue, 3 Aug 2021 13:55:55 +0000 (15:55 +0200)]
Remove ineffective expression in verilog-mode

* lisp/progmodes/verilog-mode.el (verilog-set-auto-endcomments):
Remove expression that now elicits a byte-compiler warning.

3 years agoDeclare `match-beginning` and `match-end` as side-effect-free
Mattias Engdegård [Tue, 3 Aug 2021 13:28:10 +0000 (15:28 +0200)]
Declare `match-beginning` and `match-end` as side-effect-free

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add functions.

3 years agoMerge branch 'scratch/so-long'
Phil Sainty [Tue, 3 Aug 2021 11:42:35 +0000 (23:42 +1200)]
Merge branch 'scratch/so-long'

3 years agoMake `global-so-long-mode' use `buffer-line-statistics'
Phil Sainty [Sat, 16 Jan 2021 12:25:13 +0000 (01:25 +1300)]
Make `global-so-long-mode' use `buffer-line-statistics'

* lisp/so-long.el: (so-long-statistics-excessive-p): New predicate
function using `buffer-line-statistics'.
(so-long-predicate): Use `so-long-statistics-excessive-p' by default.

* etc/NEWS: Describe changes.

* test/lisp/so-long-tests/so-long-tests-helpers.el:
* test/lisp/so-long-tests/so-long-tests.el: Update tests.
Also improve the existing `so-long-tests-predicate' tests.

3 years ago; Revert "Make `so-long' restore `view-mode'"
Phil Sainty [Fri, 30 Jul 2021 01:46:00 +0000 (13:46 +1200)]
; Revert "Make `so-long' restore `view-mode'"

This reverts commit 3c2db0c541491fceb7081d5b54de5abec25e2f4b.

A more general solution to bug#45084 has been implemented via
new user options `so-long-mode-preserved-variables' and
`so-long-mode-preserved-minor-modes'.

See the previous commit (before this revert) for details.

3 years agoSupport 'preserved' variables and minor modes in `so-long-mode'
Phil Sainty [Sun, 10 Jan 2021 02:02:58 +0000 (15:02 +1300)]
Support 'preserved' variables and minor modes in `so-long-mode'

The default values support preserving the state of `view-mode' when
switching to (and reverting from) `so-long-mode' (bug#45084).

* lisp/so-long.el (so-long-mode-preserved-variables)
(so-long-mode-preserved-minor-modes): New user options.
(so-long-mode-maintain-preserved-variables)
(so-long-mode-maintain-preserved-minor-modes): New functions.
(so-long-remember-all, so-long-after-change-major-mode)
(so-long-mode-revert): Use them.

* etc/NEWS: Describe changes.

* test/lisp/so-long-tests/so-long-tests-helpers.el:
* test/lisp/so-long-tests/so-long-tests.el: Update tests.

3 years ago; so-long-tests.el: Suppress expected warnings
Phil Sainty [Sat, 20 Mar 2021 08:48:18 +0000 (21:48 +1300)]
; so-long-tests.el: Suppress expected warnings

* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-invisible-buffer-function): Suppress warning about
obsolete function `run-window-configuration-change-hook', as we are
using it intentionally (see the preceding code comments and URL for
details).

3 years ago; * lisp/so-long.el: Minor bug fixes
Phil Sainty [Sun, 10 Jan 2021 02:20:51 +0000 (15:20 +1300)]
; * lisp/so-long.el: Minor bug fixes

(so-long-disable-minor-modes): Don't call the mode function to disable
the mode unless it was actually enabled.

(so-long-restore-minor-modes, so-long-restore-variables): Use the
remembered list values, which might be different to the defaults.

Also comments, and spelling consistency changes for the so-long tests
(a fixup for commit 83bc4ad369 which had only addressed so-long.el,
and not the test files).

3 years ago* lisp/so-long.el (so-long-minor-modes): Additional modes to disable
Phil Sainty [Fri, 3 Jul 2020 13:44:32 +0000 (01:44 +1200)]
* lisp/so-long.el (so-long-minor-modes): Additional modes to disable

3 years agoMake `global-so-long-mode' handle unrecognised file types
Phil Sainty [Sun, 10 Jan 2021 01:43:16 +0000 (14:43 +1300)]
Make `global-so-long-mode' handle unrecognised file types

* lisp/so-long.el (so-long-target-modes): Add `fundamental-mode'

* etc/NEWS: Describe changes.

This doesn't affect buffers which are simply in `fundamental-mode' by
default.  It only affects buffers for which `set-auto-mode' has been
called (normally via `find-file') without establishing a different
major mode.

3 years agoIncrease `so-long-threshold' and `so-long-max-lines' defaults
Phil Sainty [Sun, 10 Jan 2021 01:29:32 +0000 (14:29 +1300)]
Increase `so-long-threshold' and `so-long-max-lines' defaults

* lisp/so-long.el (so-long-threshold, so-long-max-lines): Increase
default values to reduce false-positives.

* etc/NEWS: Describe changes.

Lines shorter than 10,000 characters shouldn't generally be causing
problems, so testing this explicitly will largely eliminate
false-positives.  We must also increase the maximum number of lines
to check, because 'minified' code may still include newlines, and so
there may be many lines shorter than the new threshold before we find
a line which exceeds it.

Previously we used a minimum-effort heuristic, testing a very small
number of lines against a maximum length which, while not remotely
long enough to cause problems, would nevertheless be uncommon in any
normal file of programming code (and hence indicative that the file
was likely to be minified code).

Testing indicates that the performance penalty for the larger values
should be negligible.

3 years ago; * lisp/so-long.el: Bump to version 1.1
Phil Sainty [Sun, 10 Jan 2021 01:28:17 +0000 (14:28 +1300)]
; * lisp/so-long.el: Bump to version 1.1

3 years ago; * lisp/so-long.el: Documentation
Phil Sainty [Sun, 10 Jan 2021 12:58:26 +0000 (01:58 +1300)]
; * lisp/so-long.el: Documentation

3 years ago* Fix error while disassembling native code on macOS
Jimmy Yuen Ho Wong [Tue, 3 Aug 2021 07:14:38 +0000 (08:14 +0100)]
* Fix error while disassembling native code on macOS

* lisp/emacs-lisp/disass.el (disassemble-internal): Make sure the
regexp that searches for a symbol takes into account of llvm-objdump's
output format.

3 years agoMerge from origin/emacs-27
Amin Bandali [Tue, 3 Aug 2021 02:39:43 +0000 (22:39 -0400)]
Merge from origin/emacs-27

75ecce4323 Unbreak ERC's Ibuffer filter (Bug#44100)

3 years ago; Merge from origin/emacs-27
Amin Bandali [Tue, 3 Aug 2021 02:39:43 +0000 (22:39 -0400)]
; Merge from origin/emacs-27

The following commit was skipped:

61def1e392 ; Auto-commit of loaddefs files.

3 years agoUnbreak ERC's Ibuffer filter (Bug#44100)
Olivier Certner [Tue, 6 Jul 2021 08:51:57 +0000 (10:51 +0200)]
Unbreak ERC's Ibuffer filter (Bug#44100)

* lisp/erc/erc-ibuffer.el (erc-modified): Don't use `length' on dotted
lists (and not even to test if there is more than one element, for
that matter).  Use `cdr' instead.

3 years agoAdjust tab-bar to the new mode-line-misc-info value (bug#49806)
Juri Linkov [Mon, 2 Aug 2021 22:08:23 +0000 (01:08 +0300)]
Adjust tab-bar to the new mode-line-misc-info value (bug#49806)

* lisp/tab-bar.el (tab-bar--define-keys): Adjust to the new
default value for `mode-line-misc-info'.

3 years ago; mh-junk-background: fix documentation typo
Stephen Gildea [Mon, 2 Aug 2021 04:07:52 +0000 (21:07 -0700)]
; mh-junk-background: fix documentation typo

* lisp/mh-e/mh-e.el (mh-junk-background), doc/misc/mh-e.texi:
In documentation, name the correct argument to call-process.

3 years agomh-junk: adjust messages for allow/block actions
Stephen Gildea [Mon, 2 Aug 2021 04:00:37 +0000 (21:00 -0700)]
mh-junk: adjust messages for allow/block actions

* lisp/mh-e/mh-junk.el: Remove messages that get overwritten quickly.
Keep messages that give status for slow operations.  Add information
that might be useful for debugging failures.

3 years ago* lisp/mwheel.el: Don't use `custom-initialize-delay`.
Stefan Monnier [Sun, 1 Aug 2021 22:13:41 +0000 (18:13 -0400)]
* lisp/mwheel.el: Don't use `custom-initialize-delay`.

Set up the keybindings when loading the file.

(mouse-wheel--installed-bindings-alist): Move to beginning.
(mouse-wheel-change-button): Don't update bindings when they're not installed.
(mouse-wheel--setup-bindings): New function extracted from `mouse-wheel-mode`.
(<topleve>): Call it when loading the file.
(mouse-wheel-mode): Use the default :initializer.

3 years ago* lisp/progmodes/flymake.el (flymake--mode-line-title): Don't quote lambda
Stefan Monnier [Sun, 1 Aug 2021 22:08:01 +0000 (18:08 -0400)]
* lisp/progmodes/flymake.el (flymake--mode-line-title): Don't quote lambda

3 years ago* lisp/progmodes/project.el (project-switch-project): Use 'let*' (bug#49635).
Juri Linkov [Sun, 1 Aug 2021 20:43:37 +0000 (23:43 +0300)]
* lisp/progmodes/project.el (project-switch-project): Use 'let*' (bug#49635).

This allows overriding-local-map to have effect on read-key-sequence.

3 years ago* lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload): Display warning.
Juri Linkov [Sun, 1 Aug 2021 19:58:09 +0000 (22:58 +0300)]
* lisp/emacs-lisp/autoload.el (autoload--make-defs-autoload): Display warning.

https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg00007.html

3 years agoMake dlet work like let, not let*
Mattias Engdegård [Sun, 1 Aug 2021 15:05:48 +0000 (17:05 +0200)]
Make dlet work like let, not let*

Change `dlet` so that it has binding semantics like `let` because that
is what a user would expect and it allows a corresponding `dlet*` to
be added later should the need arise.  Fortunately the change has no
effect where it is currently used.

* lisp/subr.el (dlet): Work like let.
* lisp/calendar/cal-bahai.el (calendar-bahai-date-string):
* lisp/calendar/cal-coptic.el (calendar-coptic-date-string):
* lisp/calendar/cal-dst.el (calendar-time-zone-daylight-rules)
(calendar-dst-starts, dst-in-effect):
* lisp/calendar/cal-persia.el (calendar-persian-date-string):
* lisp/calendar/calendar.el (calendar-dlet, calendar-generate-month)
(calendar-update-mode-line, calendar-date-string):
* lisp/calendar/diary-lib.el (diary-list-entries-2)
(diary-list-entries, diary-mark-entries-1, diary-sexp-entry)
(diary-remind, diary-font-lock-date-forms, diary-fancy-date-pattern):
* lisp/calendar/holidays.el (holiday-sexp):
* lisp/calendar/icalendar.el (icalendar--convert-float-to-ical):
* lisp/calendar/solar.el (solar-time-string):
* lisp/calendar/todo-mode.el (todo-date-pattern)
(todo-edit-item--header, todo-convert-legacy-date-time)
(todo-read-date):
Rename `calendar-dlet*` to `calendar-dlet` since it uses `dlet`.

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Aug 2021 13:29:49 +0000 (06:29 -0700)]
; Auto-commit of loaddefs files.

3 years ago; * lisp/replace.el (occur--set-arrow): Remove unused variable.
Mattias Engdegård [Sun, 1 Aug 2021 13:25:02 +0000 (15:25 +0200)]
; * lisp/replace.el (occur--set-arrow): Remove unused variable.

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Aug 2021 13:12:18 +0000 (06:12 -0700)]
; Auto-commit of loaddefs files.

3 years agoIndicate selected occur target with fringe arrow
Mattias Engdegård [Sun, 1 Aug 2021 09:52:00 +0000 (11:52 +0200)]
Indicate selected occur target with fringe arrow

* lisp/replace.el (occur--set-arrow): New function.
(occur-mode-goto-occurrence)
(occur-mode-goto-occurrence-other-window)
(occur-mode-display-occurrence): Call it.
* etc/NEWS: Announce.

3 years ago* lisp/filecache.el: Fix cycling (bug#49761).
Juri Linkov [Sun, 1 Aug 2021 08:38:51 +0000 (11:38 +0300)]
* lisp/filecache.el: Fix cycling (bug#49761).

(file-cache-cycle): Refactor from file-cache-minibuffer-complete.
(file-cache-minibuffer-complete): Use file-cache-cycle in 2 old places,
and in 1 following new place.  When last-command is equal to this-command,
use file-cache-cycle to continue cycling the previous completion
as long as the user continues typing C-TAB.
Also when displaying a list of completions, don't try to move point
to the common prefix.

3 years agoExtend Gnus summary highlight faces by default
Kévin Le Gouguec [Sat, 31 Jul 2021 21:54:06 +0000 (23:54 +0200)]
Extend Gnus summary highlight faces by default

* lisp/gnus/gnus.el (gnus-summary-selected):
(gnus-summary-normal-ancient):
(gnus-summary-normal-undownloaded):
(gnus-summary-normal-unread):
(gnus-summary-normal-read): Set :extend attribute.

3 years agoAdjust the fully qualified host name when nothing is set
Lars Ingebrigtsen [Sat, 31 Jul 2021 22:01:59 +0000 (00:01 +0200)]
Adjust the fully qualified host name when nothing is set

* doc/misc/message.texi (News Headers): Adjust index.
* lisp/gnus/message.el (message-check-news-header-syntax): Adjust check.
(message-make-fqdn): Be less hilarious.

3 years agoFix `u' binding in Gnus Browse mode
Lars Ingebrigtsen [Sat, 31 Jul 2021 21:49:00 +0000 (23:49 +0200)]
Fix `u' binding in Gnus Browse mode

* lisp/gnus/gnus-srvr.el (gnus-browse-mode-map): Bind to
`gnus-browse-toggle-subscription-at-point', which is the command.

3 years ago; compilation-error-regexp-alist-alist): eval-when-compile
Mattias Engdegård [Sat, 31 Jul 2021 21:44:17 +0000 (23:44 +0200)]
; compilation-error-regexp-alist-alist): eval-when-compile

3 years agoOccur-mode multi-line match property gap filling
Mattias Engdegård [Sat, 31 Jul 2021 20:37:03 +0000 (22:37 +0200)]
Occur-mode multi-line match property gap filling

When an occur-mode regexp matches across multiple lines, the spacing
prefixes inserted between each did not have the `occur-target`
property which is essential for jumping to the corresponding place in
the target buffer.  This prevented next-error and previous-error
from working.

* lisp/replace.el (occur-engine): Put the `occur-target` property on
the continuation prefix to avoid the gap.

3 years ago* etc/NEWS: Mention occur-mode highlight changes.
Mattias Engdegård [Sat, 31 Jul 2021 09:22:37 +0000 (11:22 +0200)]
* etc/NEWS: Mention occur-mode highlight changes.

3 years agoC-x 5 5 manual tweak
Lars Ingebrigtsen [Sat, 31 Jul 2021 20:36:19 +0000 (22:36 +0200)]
C-x 5 5 manual tweak

* doc/emacs/frames.texi (Creating Frames): Mention
other-frame-prefix function name.

3 years agoUpdate NEWS tagging for a couple entries
Lars Ingebrigtsen [Sat, 31 Jul 2021 20:27:08 +0000 (22:27 +0200)]
Update NEWS tagging for a couple entries

3 years agoAdd an index entry for outline-minor-mode-cycle
Lars Ingebrigtsen [Sat, 31 Jul 2021 20:25:38 +0000 (22:25 +0200)]
Add an index entry for outline-minor-mode-cycle

* doc/emacs/text.texi (Outline Mode): Document outline-minor-mode-cycle.

3 years agoDocument outline-minor-mode-cycle in the manual.
Lars Ingebrigtsen [Sat, 31 Jul 2021 20:22:42 +0000 (22:22 +0200)]
Document outline-minor-mode-cycle in the manual.

* doc/emacs/text.texi (Outline Mode): Document outline-minor-mode-cycle.

3 years agoMake `ffap-read-file-or-url' work again (to read URLs)
Lars Ingebrigtsen [Sat, 31 Jul 2021 17:51:16 +0000 (19:51 +0200)]
Make `ffap-read-file-or-url' work again (to read URLs)

* lisp/ffap.el (ffap--url-file-handler): New function (bug#44822).
(ffap-read-file-or-url): Use it to allow switching between URLs
and files.

3 years agoAdd new user option python-forward-sexp-function
Lars Ingebrigtsen [Sat, 31 Jul 2021 16:44:02 +0000 (18:44 +0200)]
Add new user option python-forward-sexp-function

* lisp/progmodes/python.el (python-forward-sexp-function): New
user option (bug#41361).
(python-mode): Use it.

3 years agoAdjust how `replace-match' runs modification hooks
Lars Ingebrigtsen [Sat, 31 Jul 2021 15:44:43 +0000 (17:44 +0200)]
Adjust how `replace-match' runs modification hooks

* src/editfns.c (Fsubst_char_in_region)
(Ftranslate_region_internal):
* src/cmds.c (internal_self_insert): Update callers.
* src/insdel.c (replace_range): Allow inhibiting
signal_after_change/update_compositions.
* src/lisp.h: Update.

* src/search.c (Freplace_match): Run the modification hooks at the
end instead of before adjusting point (bug#42424).

3 years agoExtend whitespace-empty to the end of the line
Lars Ingebrigtsen [Sat, 31 Jul 2021 14:52:44 +0000 (16:52 +0200)]
Extend whitespace-empty to the end of the line

* lisp/whitespace.el (whitespace-empty): Restore Emacs 26 look by
extending the face (bug#42112).

3 years agoRevert "Fix `speedbar-directory-buttons' when using Tramp"
Lars Ingebrigtsen [Sat, 31 Jul 2021 12:54:52 +0000 (14:54 +0200)]
Revert "Fix `speedbar-directory-buttons' when using Tramp"

This reverts commit 5afad3918bc8816b74e8efcff9cc441785446aa6.

This patch can't possibly be correct, and it breaks the stated interface.

3 years agoRevert "Allow nil initializers in define-minor-mode"
Lars Ingebrigtsen [Sat, 31 Jul 2021 11:37:42 +0000 (13:37 +0200)]
Revert "Allow nil initializers in define-minor-mode"

This reverts commit 02cbb37de73d563149389615ee44741322007108.

This was mistakenly commited and doesn't really make much sense.

3 years agoDon't bind <mouse-2> and RET in *Help* buffers
Lars Ingebrigtsen [Sat, 31 Jul 2021 11:26:26 +0000 (13:26 +0200)]
Don't bind <mouse-2> and RET in *Help* buffers

* lisp/help-mode.el (help-mode-map): Remove key bindings for RET
and <mouse-2> (bug#49784).
(help-xref-stack, help-xref-forward-stack, help-xref-stack-item)
(help-make-xrefs): Fix doc strings -- these aren't used by
`help-follow', but by `help-follow-symbol'.
(help-follow-mouse, help-follow): Make obsolete.

3 years agoAllow nil initializers in define-minor-mode
Lars Ingebrigtsen [Fri, 30 Jul 2021 16:25:12 +0000 (18:25 +0200)]
Allow nil initializers in define-minor-mode

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Make the
meaning of :initialize nil and a missing :initialize the same.

3 years agoFix some macOS problems
Alan Third [Wed, 23 Jun 2021 15:07:12 +0000 (16:07 +0100)]
Fix some macOS problems

* src/nsmenu.m (update_frame_tool_bar): Make sure the toolbar isn't
displayed when it's not supposed to be.
* src/nsterm.m ([EmacsView layoutSublayersOfLayer:]): Reinstate code
intended to prevent a crash when running redisplay.