1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 06:50:39 -08:00
Commit graph

74702 commits

Author SHA1 Message Date
Filipp Gunbin
0b4eec3169 Check gnus-mailing-list-groups in turn-on-gnus-mailing-list-mode
* lisp/gnus/gnus-ml.el (turn-on-gnus-mailing-list-mode): Check also
gnus-mailing-list-groups variable.
2019-11-22 20:49:02 +03:00
Filipp Gunbin
6df8900af6 Make gnus-mailing-list-archive recognize https
* /lisp/gnus/gnus-ml.el (gnus-mailing-list-archive): Accept https in
regexp.
2019-11-22 20:37:27 +03:00
Filipp Gunbin
d3f0cf7404 Unify docstrings of Gnus summary's copy/move/crosspost article functions
* lisp/gnus/gnus-sum.el (gnus-summary-copy-article)
(gnus-summary-crosspost-article): Make docstrings refer to
gnus-summary-move-article.
2019-11-22 19:24:47 +03:00
dickmao
045cfbef09 Refix conditional step clauses in cl-loop
* lisp/emacs-lisp/cl-macs.el
(cl--loop-bindings, cl--loop-symbol-macs, cl-loop):
Add cl--loop-conditions, remove cl--loop-guard-cond.
(cl--push-clause-loop-body): Apply clause to both cl--loop-conditions
and cl--loop-body
(cl--parse-loop-clause): Use cl--push-clause-loop-body.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-assignment):
Use docstring.
(cl-macs-loop-for-as-arith): Removed expected failure.
(cl-macs-loop-conditional-step-clauses): Add some tests (bug#29799).
2019-11-22 15:53:58 +01:00
Eli Zaretskii
f373cec7f5 Fix uses of inhibit-message in package.el
* lisp/emacs-lisp/package.el (package-generate-autoloads)
(package--compile, package--save-selected-packages): Don't use
'inhibit-message' to bind 'noninteractive' and 'save-silently',
since 'inhibit-message' already disables all messages.
(Bug#38264)
2019-11-22 16:36:25 +02:00
Hong Xu
f9b8c74af1 font-lock special attributes in python-mode
* lisp/progmodes/python.el (python-font-lock-keywords-level-2): Add
special attributes (bug#38318).
2019-11-22 14:34:59 +01:00
Lars Ingebrigtsen
f5667953f7 Give better error messages in image-convert
* lisp/image/image-converter.el (image-convert): Make
image-convert bug out earlier on a wrong IMAGE-FORMAT value
(bug#38310).
2019-11-22 13:15:46 +01:00
João Távora
92fda5a7f9 Make auth-source-pass-search understand port lists
For cases such as a typical IMAP Gnus setup, auto-source-pass-search
is passed a list of "port aliases" like (993 "imaps" "imap" "993"
"143") in hopes of finding a matching ~/.password-store entry.

This modification makes this library understand and unroll the port
list so that, i.e. "domain:993", "domain:imaps"", "domain:imap",
etc. are computed as potential suffixes.  Previously a nonsensical
string "domain:(993 imaps imap ...)" was returned.

* lisp/auth-source-pass.el
(auth-source-pass--generate-entry-suffixes): Allow PORT to be a list
of ports.
2019-11-22 09:36:58 +00:00
Stefan Monnier
c5de861af1 * lisp/emacs-lisp/smie.el (smie-next-sexp): Fix bug#38255
Handle the case where the token is not in `smie-grammar`, either because
the caller is making an error, or because it's a paren-like token that's
not handled in the grammar but directly via the syntax tables.
2019-11-21 18:25:00 -05:00
Lars Ingebrigtsen
0420878026 Make `C-c C-w' insert a signature even when overridden
* lisp/gnus/message.el (message-insert-signature): When called
interactively, look harder for a signature to insert (bug#38289).
2019-11-22 00:20:02 +01:00
Stefan Monnier
20b1e959e0 * lisp/minibuffer.el (completions-common-part): Make it blue when possible 2019-11-21 17:53:02 -05:00
Stefan Monnier
81ab458aae * lisp/files.el (locate-file-completion-table): Fix typo 2019-11-21 17:39:38 -05:00
Thierry Volpiatto
86d8d95893
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2019-11-21 21:01:53 +01:00
Thierry Volpiatto
5a62c4b49c
Add new variable to prevent flex completion style
matching spaces.  This allows flex style working smoothly with other
styles like helm using spaces.

* lisp/minibuffer.el (completion-flex-nospace): New user var.
(completion-flex-try-completion): Use it.
(completion-flex-all-completions): Same.
2019-11-21 20:48:17 +01:00
Wilson Snyder
6c9c45bfab When verilog-auto-ignore-concat is true, also ignore parenthesized signals.
* lisp/progmodes/verilog-mode.el (verilog-auto-ignore-concat): When
`verilog-auto-ignore-concat' is true, also ignore parenthesized
signals.
2019-11-21 14:38:09 -05:00
Eric Abrahamsen
03938ba381 Fix Gnus summary backtab keybindings to use button-based functions
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map,
  gnus-summary-article-map): Backtab should call
  gnus-summary-button-backward, not gnus-summary-widget-backward.
2019-11-21 10:08:41 -08:00
Eli Zaretskii
1110d14228 Support 'vc-region-history' for Mercurial
* lisp/vc/vc-hg.el (vc-hg-region-history)
(vc-hg-region-history-font-lock, vc-hg-region-history-mode):
New functions.
(vc-hg-region-history-mode-map)
(vc-hg--log-view-long-font-lock-keywords)
(vc-hg-region-history-font-lock-keywords): New variables.
* lisp/vc/vc-git.el (vc-git-region-history): Update commentary.

* doc/emacs/maintaining.texi (VC Change Log): Add
'vc-region-history' to the table at beginning of node.  Update
the VCSes that support 'vc-region-history'.

* etc/NEWS: Mention the new feature of vc-hg.el.
2019-11-21 16:07:19 +02:00
Lars Ingebrigtsen
37999b2eec Restore point after sending a message
* lisp/gnus/message.el (message-send-and-exit): Restore point
after sending (bug#38303).
2019-11-21 14:32:56 +01:00
Lars Ingebrigtsen
bc4190b3f4 Make pp-buffer into a command
* lisp/emacs-lisp/pp.el (pp-buffer): Make into a command (bug#38306).
2019-11-21 14:09:32 +01:00
Lars Ingebrigtsen
4a13c2af9b Fix loading image-converter in the case where the type is passed in
* lisp/image.el (create-image): Load image-converter when
converting images (bug#38310).
2019-11-21 14:02:00 +01:00
Lars Ingebrigtsen
832bdaf6e5 Rewrite the image-convert doc string
* lisp/image/image-converter.el (image-convert): Clarify the
calling convention (bug#38310).
2019-11-21 13:59:37 +01:00
Dario Gjorgjevski
f13a4afde7 Hide quoted passwords with spaces in Authinfo
* lisp/auth-source.el (auth-source-netrc-looking-at-one): New
function, extracted from auth-source-netrc-parse-one.
(auth-source-netrc-parse-one, authinfo--hide-passwords): Use
auth-source-netrc-looking-at-one (bug#38311).
2019-11-21 13:51:55 +01:00
Michael Albinus
70b88adbe7 * lisp/net/tramp.el (tramp-unload-tramp): Do not enable ange-ftp. (Bug#38025) 2019-11-21 10:35:14 +01:00
Juri Linkov
1805b4cc08 * lisp/image.el: Mouse-wheel scaling on images (bug#38187)
* lisp/image.el (image-mouse-increase-size)
(image-mouse-decrease-size): New commands.
(image-map): Bind C-wheel-down and C-mouse-5 to
image-mouse-decrease-size, C-wheel-up and C-mouse-4 to
image-mouse-increase-size.
2019-11-21 00:59:49 +02:00
Michael Albinus
035931777b Add renaming of remote buffer file names to Tramp
* doc/misc/tramp.texi (Default User): Fix typo.
(Cleanup remote connections): Adapt arguments of
`tramp-cleanup-connection'.
(Renaming remote files): New node.
(Frequently Asked Questions): New item "How to save files when a
remote host isn't reachable anymore?".

* etc/NEWS: Add `tramp-rename-files' and `tramp-rename-these-files'.

* lisp/net/tramp-cmds.el (tramp-default-rename-alist)
(tramp-confirm-rename-file-names): New defcustoms.
(tramp-rename-read-file-name-dir)
(tramp-rename-read-file-name-init): New defsubsts.
(tramp-default-rename-file, tramp-rename-files)
(tramp-rename-these-files): New defuns.

* lisp/net/tramp-integration.el (ido, ivy): Integrate with them.
2019-11-20 13:45:30 +01:00
Lars Ingebrigtsen
5c5c1b5593 Make with-suppressed-warnings work for macros, too
* lisp/emacs-lisp/macroexp.el (macroexp-macroexpand): Pass the
macro/alias symbol on to byte-compile-warning-enabled-p so that
with-suppressed-warnings works for macros, too.
2019-11-20 12:28:43 +01:00
João Távora
aa79f4e8c6 * lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage
Discussed in the context of bug#19064, bug#17272.
2019-11-19 23:55:54 +00:00
Eli Zaretskii
a76a1d0c0b Ensure Rmail summary is updated after editing a message
* lisp/mail/rmailedit.el (rmail-cease-edit): If this mbox file
has a summary, update the summary after editing.  (Bug#38193)
2019-11-19 17:59:02 +02:00
Eli Zaretskii
6f30642973 Fix updating members of zip archives
* lisp/arc-mode.el (archive-zip-case-fiddle): Change the
default to nil except on MS-DOS.  Update the doc string to
make clear that a non-nil value also affects updating the
archive.  (Bug#38260)
2019-11-19 17:48:55 +02:00
Robert Pluim
cf0a76a438 Don't error when comparing IPv4 and IPv6 addresses
* lisp/net/nsm.el (nsm-network-same-subnet): Compare lengths of
local-ip and ip; different lengths can never match.
(nsm-should-check): Chop port off end of address.
2019-11-19 13:36:07 +01:00
Lars Ingebrigtsen
067a42f8dd Allow eww to display exotic images like webp
* lisp/image.el (image-type): Allow passing in the image type.
(create-image): Make conversion work with data in addition to files.

* lisp/image/image-converter.el (image-convert-p): Allow taking
working on data in addition to files (bug#38036).
(image-convert): Ditto.
(image-converter--convert): Extend signature to say whether we're
getting a file or data.
(image-converter--convert-magick): Convert data.
(image-converter--convert): Ditto.
2019-11-19 11:47:25 +01:00
Juanma Barranquero
49192e9510 Strip "(fn...)" from output of `describe-mode' (bug#38222)
* lisp/help.el (help--doc-without-fn): New function.
(describe-mode): Use it.
2019-11-19 11:18:48 +01:00
Michael Albinus
a15431ffe2 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2019-11-19 08:19:00 +01:00
Stefan Monnier
5bc97ebceb * lisp/org/org.el (org-mode): Add pcomplete-completions-at-point to capf.
This lets the normal `completion-at-point` and `complete-symbol`
use `pcomplete` for completion.

(org-mode-map): Leave M-TAB bound to the global default since
`pcomplete` is now obsolete.
2019-11-18 17:47:06 -05:00
Juri Linkov
da00577793 * lisp/tab-line.el (tab-line-auto-hscroll): New defcustom (bug#37667)
(tab-line-auto-hscroll): Use this option in the function.
2019-11-18 23:57:16 +02:00
Juri Linkov
3ba98fb1d7 * lisp/vc/ediff-util.el: Set this-command to ediff-quit (bug#38219)
* lisp/vc/ediff-util.el (ediff-toggle-read-only, ediff-quit):
Set this-command to the same command after using y-or-n-p
that doesn't guarantee to keep this-command unchanged
to check it later for some contrived logic.
2019-11-18 23:53:11 +02:00
Michael Albinus
3cc06d1abb * lisp/net/tramp.el (tramp-handle-file-regular-p): Improve error handling. 2019-11-18 15:33:21 +01:00
Lars Ingebrigtsen
2e92f176a3 Fix cl-prettyexpand in the non-FULL case
* lisp/emacs-lisp/cl-extra.el (cl-prettyexpand): This function has
apparently not worked for at least a couple of decades
(bug#38206) unless supplied with a FULL parameter.  Make the FULL
parameter obsolete and make the function always work as it did
with a non-nil FULL.
2019-11-18 11:02:27 +01:00
Phil Sainty
33676820bd lisp/so-long.el: Refactor menu action commands
* lisp/so-long.el (so-long-menu): Call `so-long' with an ACTION
argument instead of using `so-long-menu-item-replace-action'.
(so-long-menu-item-replace-action): Remove the deprecated function.

* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-so-long-menu-item-replace-action): Update the test.
2019-11-18 21:25:36 +13:00
Phil Sainty
83c50cc6ef * lisp/so-long.el (so-long): Firstly revert the existing action, if any
This makes `so-long' consistent with the action commands in the menu.

If multiple actions were to be layered on top of one another, we would
lose the ability to revert to the normal state.  Custom actions
combining multiple other actions can be defined if necessary.
2019-11-18 21:25:36 +13:00
Stefan Monnier
6b361d9530 lisp/so-long.el: Use (interactive "@") for menu commands
* lisp/so-long.el (so-long-menu, so-long-menu-item-replace-action)
(so-long-revert): Use interactive code "@", replacing all uses of
`so-long-menu-click-window'.  This approach leaves the window selected
afterwards, whereas the old code did not; but that is not a problem.
(so-long-menu-click-window, so-long-menu-item-revert): Remove the
deprecated functions.

* test/lisp/so-long-tests/so-long-tests.el
(so-long-tests-so-long-menu-item-replace-action): Update the test.

Co-authored-by: Phil Sainty <psainty@orcon.net.nz>
2019-11-18 21:25:36 +13:00
Stefan Monnier
206f36b38c ; * lisp/so-long.el: Use declare-function nearer the code that needs it 2019-11-18 21:25:36 +13:00
Stefan Monnier
bf7934a63d ; * lisp/so-long.el: Use function quoting in example configuration 2019-11-18 21:25:36 +13:00
Stefan Monnier
62187142b9 ; * lisp/so-long.el: Delete redundant :group declarations
Refer to (elisp) Common Keywords:

> If this keyword is missing from a customization item, it’ll be
> placed in the same group that was last defined (in the current file).
2019-11-18 21:25:36 +13:00
Paul Eggert
0b47d731c0 * lisp/simple.el (process-file): Clarify doc string. 2019-11-17 15:27:21 -08:00
Stefan Monnier
0415ad210c * lisp/tmm.el (tmm-add-one-shortcut): Use dolist 2019-11-17 17:34:50 -05:00
Juri Linkov
4e4e550858 * lisp/subr.el (read-char-from-minibuffer, y-or-n-p): Remove discard-input.
(do-after-load-evaluation): Replace run-with-timer with	run-with-idle-timer
to give a chance for the minibuffer to handle initial events before sit-for.
https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg00581.html
2019-11-17 23:51:55 +02:00
Juri Linkov
a8f2ee424c Auto-scrolling in tab-line (bug#37667)
* lisp/tab-line.el (tab-line-auto-hscroll): New function.
(tab-line-format): Use tab-line-auto-hscroll.
2019-11-17 23:43:28 +02:00
Alan Mackenzie
7c6335de5e Compilation Mode: Fix arrow handling when compilation-context-lines is t
In particular, fix some exception occurrences, fix handling of a Compilation
Mode buffer being displayed in several windows, and fix the margin when
temporarily displaying a different buffer in a window, then returning to the
compilation mode buffer.  The fix is relevant for frames without fringes,
e.g. tty frames.

* lisp/progmodes/compile.el: (compilation-set-window): Always set point to
(parameter) MK.
(compilation--set-up-margin, compilation--tear-down-margin): New functions.
(compilation--set-up-arrow-spec-in-margins)
(compilation--tear-down-arrow-spec-in-margins): Renamed by introducing -- and
pluralising margin to margins.  Handle the margins in _all_ windows displaying
the pertinent buffer by using get-buffer-window-list.  In ...--set-up-... add
compilation--set-up-margin to window-buffer-change-functions.  In
...--tear-down-... remove the hook functions added in ...--set-up-....
2019-11-17 14:59:42 +00:00
Lars Ingebrigtsen
58ceb8bac0 Make ido-read-file-name respect ido-read-file-name-non-ido more
* lisp/ido.el (ido-read-file-name): Respect
ido-read-file-name-non-ido in the file-directory-p case, too
(bug#38231).
2019-11-17 10:40:11 +01:00