1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-13 03:06:23 -08:00
Commit graph

137732 commits

Author SHA1 Message Date
Noam Postavsky
6778dbdaae * lisp/mail/footnote.el (footnote--local-advice): Add missing comma. 2019-07-26 08:47:39 -04:00
Lars Ingebrigtsen
e986ba1968 Separate out the "/" prefix into a named keymap in ibuffer
* lisp/ibuffer.el (ibuffer--filter-map): Separate out into its own
keymap (bug#25797).
(ibuffer-mode-map): Bind the "/" key to it.
2019-07-26 14:38:35 +02:00
Lars Ingebrigtsen
68789c9370 Add version tag to smtpmail-servers-requiring-authorization
* lisp/mail/smtpmail.el
(smtpmail-servers-requiring-authorization): Add version tag.
2019-07-26 14:17:14 +02:00
Lars Ingebrigtsen
9436391e1b Remove interactive spec from eshell-source-file
* lisp/eshell/em-script.el (eshell-source-file): This function
can't work as an interactive command, so remove the interactive
spec (bug#26057).
2019-07-26 14:13:56 +02:00
Lars Ingebrigtsen
2d969315e4 Clarify when gpg2 and gpg are used in the epg-gpg-program doc string
* lisp/epg-config.el (epg-gpg-program): Doc string clarification
(bug#26090).
2019-07-26 14:03:11 +02:00
Lars Ingebrigtsen
8c60694779 Make ffap find {/etc} files again
* lisp/ffap.el (ffap-string-at-point-mode-alist): Make
(ffap-file-at-point) work on {/etc} again (bug#26190).
2019-07-26 13:38:51 +02:00
Lars Ingebrigtsen
a31ea93432 Fix obsoletion notice in dired-pop-to-buffer
* lisp/dired.el (dired-pop-to-buffer): `dired-mark-pop-up' doesn't
seem to have anything to do with this function, so saying that
it's a replacement seems misleading (bug#26243).
2019-07-26 13:10:13 +02:00
Lars Ingebrigtsen
3a373bc235 Minor rewording of a couple of sentences in define-derived-mode doc
* lisp/emacs-lisp/derived.el (define-derived-mode): Reword
documentation to be less whimsical (bug#26301).
2019-07-26 13:05:08 +02:00
Lars Ingebrigtsen
e2f2745eb8 Doc clarification in time-stamp-pattern
* lisp/time-stamp.el (time-stamp-pattern): Try to document what
the examples mean (bug#26335).
2019-07-26 12:38:28 +02:00
Lars Ingebrigtsen
55a221c071 Add a NEWS item about smtpmail-servers-requiring-authorization 2019-07-26 12:18:58 +02:00
Lars Ingebrigtsen
6216c7abd4 Allow specifying that SMTP auth should always be used
* doc/misc/smtpmail.texi (Authentication): Document it.

* lisp/mail/smtpmail.el
(smtpmail-servers-requiring-authorization): New variable (bug#26359).
(smtpmail-via-smtp): Use it.
2019-07-26 12:16:49 +02:00
Lars Ingebrigtsen
1573cf98eb Clarify last-command-event doc string
* src/keyboard.c (syms_of_keyboard): Clarify the doc string
(bug#26626).
2019-07-26 11:34:15 +02:00
Lars Ingebrigtsen
7ada677e3f Add an autoload cookie to package-upload-file
* lisp/emacs-lisp/package-x.el (package-upload-file): Add an
autoload cookie (bug#26724).
2019-07-26 11:18:37 +02:00
Lars Ingebrigtsen
048bdc2740 Tweak prompt when symlinking in dired
* lisp/dired-aux.el (dired-do-create-files): Fix prompt when
sym/hardlinking (bug#26870).
2019-07-26 11:12:03 +02:00
Lars Ingebrigtsen
64b469f6ae Don't infloop in url.el when sending invalid basic auth
* lisp/url/url-http.el (url-http-handle-authentication): Bail out
if the wrong credentials were passed to the server instead of
inflooping (bug#27022).
2019-07-26 10:55:45 +02:00
Lars Ingebrigtsen
f462fcd1ff Further tweak dired-compress error message
* lisp/dired-aux.el (dired-compress): The function is called on
both compression and uncompression, so be more ambiguous in the
error message.
2019-07-26 10:55:45 +02:00
Lars Ingebrigtsen
e8ad8620a4 Tweak the error message on dired compression failures
* lisp/dired-aux.el (dired-compress): Fix error message.
2019-07-26 10:55:45 +02:00
Lars Ingebrigtsen
5a593f5977 Remove debugging left in previous patch
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Provide completion for `ignore-error'.
2019-07-26 10:00:47 +02:00
Lars Ingebrigtsen
eb45cc9521 Add new macro `ignore-error'
* doc/lispref/control.texi (Handling Errors): Document
`ignore-error'.
* lisp/subr.el (ignore-error): New macro.

* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Provide completion for `ignore-error'.
2019-07-26 09:58:53 +02:00
Lars Ingebrigtsen
66db7b2c36 Always include the number of unexpected results here too
* lisp/emacs-lisp/ert.el (ert-run-tests-batch): Always include the
number of unexpected results here as well.
2019-07-26 09:58:53 +02:00
Lars Ingebrigtsen
71f76a8025 Don't run gpg when loading package.el
* lisp/emacs-lisp/package.el (package-check-signature): Don't run
gpg on startup, but just default to `allow-unsigned'.
(package-check-signature): New function to check whether a OpenPGP
configuration is found when `allow-unsigned'.
(package--check-signature-content, package--check-signature)
(package--download-one-archive, package-refresh-contents)
(package-install-from-archive): Use function instead of variable
throughout.
* doc/emacs/package.texi (Package Installation): Document this.
2019-07-26 08:30:43 +02:00
Paul Eggert
6204791728 Minor pdumper tweaks
* src/pdumper.c (dump_hash_table_stable_p):
Bool vectors and bignums are also stable keys.
(decode_emacs_reloc, drain_reloc_list, Fdump_emacs_portable):
(dump_bitset_clear): Simplify use of memset.
2019-07-25 23:18:51 -07:00
Lars Ingebrigtsen
0efb88150d Tweak the behaviour of thing-at-point--end-of-sexp
* lisp/thingatpt.el (thing-at-point--end-of-sexp): Don't return
nil when called with point between two parentheses (bug#29499).
2019-07-26 07:59:41 +02:00
Paul Eggert
263b9680f3 Don't crash when parsing bad SVG data
Derived from a patch by Pip Cet (Bug#36773#47).
* src/image.c (svg_load_image): Work around librsvg 2.40.13 bug.
2019-07-25 14:34:07 -07:00
Lars Ingebrigtsen
d8272ff755 Fix mouse-1 in profiler-report-mode-map
* lisp/profiler.el (profiler-report-mode-map): Make `mouse-1'
respect `mouse-1-click-follows-link' (bug#30515).
2019-07-25 22:00:59 +02:00
Lars Ingebrigtsen
7633391ce0 Make cl-destructuring-bind errors a bit more understandable
* lisp/emacs-lisp/cl-macs.el (cl-destructuring-bind): Make errors
when giving the wrong number of arguments to the bindings form
more informational (bug#29345).
2019-07-25 21:56:17 +02:00
Eric Abrahamsen
fee2aeeb75 Don't set marks on imap groups when there are no marks to set
* lisp/gnus/nnimap.el (nnimap-update-qresync-info): This code runs in
a fairly tight loop and shouldn't call all these functions if not
necessary.
2019-07-25 12:24:43 -07:00
Alan Mackenzie
1c74e5b9ea * lisp/progmodes/cc-awk.el (c-awk-var-num-ket-re): Remove /x80-/xff from it. 2019-07-25 18:48:19 +00:00
Lars Ingebrigtsen
46301fc256 Tweak the sizing of the shr placeholder images on HiDPI screens
* lisp/net/shr.el (shr-make-placeholder-image): We have already
computed the size of the placeholder including the scale, so force
the automatic scale to 1.  This will make the placeholder the
correct size on HiDPI screen.
2019-07-25 20:44:07 +02:00
Lars Ingebrigtsen
7f0b69e8ed Make `C-u w' in the Gnus Summary buffer open externally
* doc/misc/gnus.texi (Article Commands): Document new behaviour.

* lisp/gnus/gnus-sum.el (gnus-shorten-url): New function.
(gnus-summary-browse-url): Change function to make `C-u' use the
external browser (as Gnus does when you hit URLs manually).  Don't
use an initial input.
2019-07-25 20:11:33 +02:00
Lars Ingebrigtsen
bb2115fd55 Tweak previous footnote-mode patch
* lisp/mail/footnote.el (footnote--local-advice): Ensure that the
variable really is local.
2019-07-25 19:39:51 +02:00
Lars Ingebrigtsen
e890d4b5d1 Fix setting fill-paragraph-function in footnote-mode
* lisp/mail/footnote.el (footnote--local-advice): New macro
refactored out from the code used to advice
footnote--adaptive-fill-function in footnote-mode.
(footnote-mode): Use it to advice both that variable and
fill-paragraph-function (the latter to avoid overwriting the major
mode's value) (bug#27775)
(footnote--fill-paragraph): Adjust calling convention now that
it's an :around advice.
2019-07-25 19:39:51 +02:00
Eli Zaretskii
28d231dbbb Fix HarfBuzz support on MS-Windows
* src/w32uniscribe.c [HAVE_HARFBUZZ]: Include hb-ot.h.
(fn_hb_ot_font_set_funcs, hb_ot_font_set_funcs): Define.
(w32hb_get_font): Call hb_ot_font_set_funcs after creating the
hb_font_t object, to make the code work with versions of
HarfBuzz before 2.0.0.  Problem reported by Stephen Leake
<stephen_leake@stephe-leake.org>.  Solution suggested by
Khaled Hosny <dr.khaled.hosny@gmail.com> in
https://lists.freedesktop.org/archives/harfbuzz/2019-July/007412.html.
2019-07-25 19:47:56 +03:00
Lars Ingebrigtsen
9c1ecca333 Fix many-compilations case of compilation-goto-in-progress-buffer
* lisp/progmodes/compile.el (compilation-goto-in-progress-buffer):
Fix thinko in initial version of the function in the
many-compilations case.
2019-07-25 18:44:17 +02:00
Eli Zaretskii
a3c5dcf54e Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2019-07-25 19:33:37 +03:00
Eli Zaretskii
385416af6a Fix recent commit in xref.el
* lisp/progmodes/xref.el (xref-file-name-display): Doc fix.

* etc/NEWS: Fix the corresponding entry.
2019-07-25 19:32:25 +03:00
Eric Abrahamsen
498be6a6dd Leave note about removing gnus-start-news-server
* lisp/gnus/gnus-int.el (gnus-nntp-server): Once this option is gone,
that whole function can go.
2019-07-25 09:16:01 -07:00
Nobuyoshi Nakada
0cbdbac2bb Strip trailing whitespaces at the end of converted do block
* lisp/progmodes/ruby-mode.el (ruby-brace-to-do-end):
Strip trailing whitespaces at the end of converted do block
(bug#36756).

https://bugs.ruby-lang.org/issues/16014
https://github.com/syl20bnr/spacemacs/issues/12548
2019-07-25 16:01:55 +03:00
Lars Ingebrigtsen
a112547f91 Clarify in the manual when to use function-key-map
* doc/misc/efaq.texi (No Escape key):
* doc/emacs/msdos-xtra.texi (MS-DOS Keyboard): Change back to
function-key-map from local-function-key-map, because these
bindings apply to all terminals.

* doc/lispref/keymaps.texi (Translation Keymaps): Clarify in what
circumstances you may still want to use function-key-map.
2019-07-25 11:52:59 +02:00
Juri Linkov
8a5a1bebfa * lisp/vc/vc.el (vc-log-search): Fix docstring (bug#36644).
* lisp/vc/vc-git.el (vc-git-log-search): Add docstring.
2019-07-25 02:21:28 +03:00
Paul Eggert
a5063aa8b1 Do not treat ~nosuchuser as an absolute file name
Derived from Ken Brown’s patch (Bug#36502#97).
* doc/lispref/files.texi (Relative File Names):
* etc/NEWS: Document this.
* src/fileio.c (user_homedir): New function.
(Fexpand_file_name, file_name_absolute_p): Use it.
(search_embedded_absfilename): Simplify via file_name_absolute_p.
* test/src/fileio-tests.el (fileio-tests--no-such-user): New test.
2019-07-24 14:33:02 -07:00
Sam Steingold
e089c3141a Add `gnus-collect-urls-primary-text'
* lisp/gnus/gnus-sum.el (gnus-collect-urls-primary-text): Add defcustom.
(gnus-collect-urls): Use it.
(gnus-summary-browse-url): Mention it in the docstring.
2019-07-24 16:44:21 -04:00
Paul Eggert
50126f2049 Port double-slash test to z/OS
* admin/merge-gnulib (GNULIB_MODULES): Add double-slash-root.
Emacs was already using this Gnulib module indirectly, so this
is merely noting that there is now a direct dependency.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* src/fileio.c (search_embedded_absfilename):
Use DOUBLE_SLASH_IS_DISTINCT_ROOT instead of (WINDOWSNT || CYGWIN).
Simplify.
2019-07-24 12:11:32 -07:00
Paul Eggert
f2cc674ebc Update from Gnulib
This incorporates:
2019-07-16 update-copyright: Make it work again
* build-aux/config.guess, build-aux/update-copyright:
Copy from Gnulib.
2019-07-24 10:57:28 -07:00
Sam Steingold
fd86149b1a Avoid potential extensive verbosity in gnus-summary-browse-url
* lisp/wid-edit.el (widget-move): Accept suppress-echo argument.
* lisp/gnus/gnus-sum.el (gnus-collect-urls): Use it.
2019-07-24 12:12:48 -04:00
Lars Ingebrigtsen
7da926ce3c Use input-decode-map in the manuals
* doc/misc/edt.texi (Changes):
* doc/emacs/custom.texi (Terminal Init): Use input-decode-map
instead of local-function-key-map, according to Stefan Monnier.
2019-07-24 14:37:28 +02:00
Mattias Engdegård
084e8381a7 Use destructuring in filenotify backend handlers
* lisp/filenotify.el (file-notify--callback-inotify)
(file-notify--callback-kqueue, file-notify--callback-w32notify)
(file-notify--callback-gfilenotify, file-notify--callback): Use cl-defun.
2019-07-24 11:54:10 +02:00
Mattias Engdegård
27f25d737c Use defstruct instead of list for filenotify pending-rename
* lisp/filenotify.el (file-notify--rename): New defstruct.
(file-notify--pending-rename): Changed type.
(file-notify--handle-event): Adapt to new type.
2019-07-24 11:53:58 +02:00
Mattias Engdegård
5a80a9ded1 Refactor the callback half of filenotify.el
Split callback code into backend-specific and general parts.  Refactor
pending event, which is always a rename, to include relevant
information only.  General clean-up.

* lisp/filenotify.el (file-notify--pending-event): Rename.
(file-notify--event-watched-file, file-notify--event-file-name)
(file-notify--event-file1-name, file-notify--event-cookie): Remove.
(file-notify--rename, file-notify--expand-file-name)
(file-notify--callback-inotify, file-notify--callback-kqueue)
(file-notify--callback-w32notify, file-notify--callback-gfilenotify)
(file-notify--call-handler, file-notify--handle-event): New.
(file-notify-callback): Split general parts into
file-notify--call-handler and file-notify--handle-event.
(file-notify--add-watch-inotify, file-notify--add-watch-kqueue)
(file-notify--add-watch-w32notify)
(file-notify--add-watch-gfilenotify): Use new callbacks.
2019-07-24 11:53:47 +02:00
Mattias Engdegård
3a76484865 Don't use internal filenotify function in test
* test/lisp/filenotify-tests.el
(file-notify--test-file, file-notify--test-add-watch): New.
(file-notify--test-event-test, file-notify--test-event-handler)
(file-notify-test02-rm-watch, file-notify-test03-events)
(file-notify-test05-file-validity, file-notify-test07-many-events)
(file-notify-test08-backup, file-notify-test09-watched-file-in-watched-dir):
Avoid using the internal `file-notify--event-watched-file' so that it
can be removed from filenotify.el.
Instead, pass the file name to the callback as an extra argument;
use `file-notify--test-add-watch' instead of `file-notify-add-watch'.
2019-07-24 11:52:44 +02:00