]> git.eshelyaron.com Git - emacs.git/log
emacs.git
4 years agohelp-at-pt-display-when-idle doc string clarification
Lars Ingebrigtsen [Fri, 21 Aug 2020 14:33:33 +0000 (16:33 +0200)]
help-at-pt-display-when-idle doc string clarification

* lisp/help-at-pt.el (help-at-pt-display-when-idle): Clarify when
kbd-help is useful (bug#39295).

4 years agoMention `exec-path' in some process related doc strings
Lars Ingebrigtsen [Fri, 21 Aug 2020 14:15:18 +0000 (16:15 +0200)]
Mention `exec-path' in some process related doc strings

* src/callproc.c (Fcall_process_region):
(Fcall_process):
* src/process.c (Fmake_process): Mention `exec-path' in the doc
strings (bug#42704).

4 years agoHighlight error messages from diff in diff-mode
Lars Ingebrigtsen [Fri, 21 Aug 2020 13:58:32 +0000 (15:58 +0200)]
Highlight error messages from diff in diff-mode

* lisp/vc/diff-mode.el (diff-error): New face (bug#2739).
(diff-font-lock-keywords): Use it to highlight lines like "diff: "
which are error messages from diff (for instance, when a file
doesn't exist).

4 years agoFix problem with 8bit content-transfer-encoding in nndoc mbox files
Lars Ingebrigtsen [Fri, 21 Aug 2020 13:36:45 +0000 (15:36 +0200)]
Fix problem with 8bit content-transfer-encoding in nndoc mbox files

* lisp/gnus/nndoc.el (nndoc-possibly-change-buffer): If we're
reading an mbox file, it may contain messages that use
content-transfer-encoding 8bit, which means that we have to treat
the file as a sequence of byte (bug#42951).  This avoids
double-decoding -- once by Emacs when inserting the mbox into the
buffer, and once by Gnus when displaying the articles.

4 years ago; * etc/NEWS: Fix a recently added entry.
Eli Zaretskii [Fri, 21 Aug 2020 13:35:58 +0000 (16:35 +0300)]
; * etc/NEWS: Fix a recently added entry.

4 years agoClarify docs about line movement
Noam Postavsky [Fri, 21 Aug 2020 13:08:27 +0000 (15:08 +0200)]
Clarify docs about line movement

* doc/lispref/positions.texi (Text Lines, Screen Lines): Add index
entries.
* lisp/simple.el (move-beginning-of-line): Remove incorrect mention of
images, and reference beginning-of-visual-line.
* src/editfns.c (Fline_beginning_position): Reference
`vertical-motion' (bug#35899).

4 years agoFix lock failures in xg_select
Pip Cet [Fri, 21 Aug 2020 12:56:06 +0000 (14:56 +0200)]
Fix lock failures in xg_select

* src/xgselect.c (release_select_lock, acquire_select_lock):
Introduce.
(xg_select): Use `acquire_select_lock', `release_select_lock'.
* src/thread.c (release_select_lock): Introduce for non-GLib builds.
(really_call_select): Call `release_select_lock'.  Simplify by
ensuring acquisition of the lock always succeeds (bug#36609).

4 years agoFix return value for CCL opcode lookup-integer
Pip Cet [Fri, 21 Aug 2020 12:47:45 +0000 (14:47 +0200)]
Fix return value for CCL opcode lookup-integer

* src/ccl.c (ccl_driver): Fix LookupIntConstTbl return value.
* test/lisp/international/ccl-tests.el (ccl-hash-table): Add test.
* lisp/international/ccl.el (ccl-embed-data): Don't pass non-numbers
to `ccl-fixnum' (bug#36740).

4 years agoMake hs-special-modes-alist also work for modes derived from those modes
Tobias Zawada [Fri, 21 Aug 2020 12:42:20 +0000 (14:42 +0200)]
Make hs-special-modes-alist also work for modes derived from those modes

* lisp/progmodes/hideshow.el (hs-grok-mode-type): Also set up
hideshow variables based on hs-special-modes-alist in derived
modes (bug#39354).

4 years agoHave ispell add new LocalWords lines after any such existing lines
Kevin Ryde [Fri, 21 Aug 2020 12:17:56 +0000 (14:17 +0200)]
Have ispell add new LocalWords lines after any such existing lines

* textmodes/ispell.el (ispell-add-per-file-word-list): Add new
LocalWords line just after existing such lines.  Good to keep words
together or if deliberately placed somewhere special (bug#20486).

4 years agoFix displaying inline ical attachments with no charset
Christophe Troestler [Fri, 21 Aug 2020 11:31:38 +0000 (13:31 +0200)]
Fix displaying inline ical attachments with no charset

* lisp/gnus/gnus-icalendar.el
(gnus-icalendar-with-decoded-handle): Check whether there is a
charset before using it (bug#40290).

Copyright-paperwork-exempt: yes

4 years agoTweak completion of Makefile targets
Gregory Heytings [Fri, 21 Aug 2020 10:44:52 +0000 (12:44 +0200)]
Tweak completion of Makefile targets

* lisp/pcmpl-gnu.el (pcmpl-gnu-make-targets): Require that target
names not be preceded by a TAG character (bug#42411).

Copyright-paperwork-exempt: yes

4 years agoRemove some compat code from cperl-mode
Stefan Kangas [Sun, 16 Aug 2020 11:11:16 +0000 (13:11 +0200)]
Remove some compat code from cperl-mode

* lisp/progmodes/cperl-mode.el (cperl-use-syntax-table-text-property)
(cperl-syntaxify-by-font-lock, cperl-mode-map, cperl-mode)
(cperl-windowed-init, cperl-init-faces, cperl-write-tags): Remove
some XEmacs and <21 compat code.

4 years agoMake image cache lookups work again after previous patch
Lars Ingebrigtsen [Thu, 20 Aug 2020 23:29:26 +0000 (01:29 +0200)]
Make image cache lookups work again after previous patch

* src/image.c (search_image_cache): Fix reversed logic in previous
patch.

4 years ago* lisp/simple.el (previous-line-or-history-element): Handle logical lines.
Juri Linkov [Thu, 20 Aug 2020 23:21:26 +0000 (02:21 +0300)]
* lisp/simple.el (previous-line-or-history-element): Handle logical lines.

When 'line-move-visual' is nil, use 'end-of-line' to move point to the end
of the first logical line (bug#42862)

Thanks to Michael Welsh Duggan <mwd@md5i.com>.

4 years agoFix off-by-one error in decoded-time-add (with months)
Lars Ingebrigtsen [Thu, 20 Aug 2020 22:38:23 +0000 (00:38 +0200)]
Fix off-by-one error in decoded-time-add (with months)

* lisp/calendar/time-date.el (decoded-time-add): Fix month
addition, which was off-by-one.

4 years agoFix problem with non-ASCII characters in ediff error messages
Lars Ingebrigtsen [Thu, 20 Aug 2020 20:23:35 +0000 (22:23 +0200)]
Fix problem with non-ASCII characters in ediff error messages

* lisp/vc/ediff-diff.el (ediff-prepare-error-list): Decode the
data from diff before displaying (bug#5050).  This fixes a problem
with displaying raw bytes in the error messages in non-ASCII locales.

4 years agoMake image-mode give better feedback when the buffer is empty
Lars Ingebrigtsen [Thu, 20 Aug 2020 18:09:51 +0000 (20:09 +0200)]
Make image-mode give better feedback when the buffer is empty

* lisp/image-mode.el (image-mode): Give a less confusing message
if we don't have any image data (bug#16062).  Also leave the
buffer in fundamental mode.

4 years agoFix NS crash on invalid frame title string (bug#42904)
Mattias Engdegård [Tue, 18 Aug 2020 10:58:12 +0000 (12:58 +0200)]
Fix NS crash on invalid frame title string (bug#42904)

Instead of blindly assuming that all Emacs strings are valid UTF-8,
which they are not, use a more careful conversion going via UTF-16
which is what NSString uses internally.  Unpaired surrogates will
still go through to the NSString objects, but the NS libs handle them
gracefully.

* src/nsterm.h (EmacsString): New category.
* src/nsfns.m (all_nonzero_ascii): New helper function.
([NSString stringWithLispString:]): New method.
(ns_set_name_internal): Use new conversion method.

4 years agoFix compilation warning in vc-cvs from previous change
Lars Ingebrigtsen [Thu, 20 Aug 2020 15:18:46 +0000 (17:18 +0200)]
Fix compilation warning in vc-cvs from previous change

* lisp/vc/vc-cvs.el (log-edit-extract-headers): Fix compilation
warning.

4 years agoFix message.el compilation warning
Lars Ingebrigtsen [Thu, 20 Aug 2020 15:17:48 +0000 (17:17 +0200)]
Fix message.el compilation warning

* lisp/gnus/message.el (smtpmail-stream-type): Fix compilation
warning from last change.

4 years agoAllow specifying the TLS port in X-Message-SMTP-Method
Lars Ingebrigtsen [Thu, 20 Aug 2020 15:03:04 +0000 (17:03 +0200)]
Allow specifying the TLS port in X-Message-SMTP-Method

* lisp/gnus/message.el (message-multi-smtp-send-mail): If the user
has specified the TLS SMTP port, then force a TLS connection
(bug#38066).

4 years agoDon't message the hunk status when just going to it
Lars Ingebrigtsen [Thu, 20 Aug 2020 14:52:57 +0000 (16:52 +0200)]
Don't message the hunk status when just going to it

* lisp/vc/diff-mode.el (diff-goto-source): Don't output a status
about the hunk just when jumping to it (bug#38370).  This would
output "Hunk already applied" when browsing diffs.

4 years agoAdd a new way to encode unprintable characters in Message: url-encode
Lars Ingebrigtsen [Thu, 20 Aug 2020 14:42:06 +0000 (16:42 +0200)]
Add a new way to encode unprintable characters in Message: url-encode

* lisp/gnus/message.el (message-fix-before-sending): Add a new
conversion method for invalid characters -- URL-encoding (bug#38955).

4 years agoFix problem with unprintable characters in Message headers
Lars Ingebrigtsen [Thu, 20 Aug 2020 14:33:29 +0000 (16:33 +0200)]
Fix problem with unprintable characters in Message headers

* lisp/gnus/message.el (message-fix-before-sending): Remove
unprintable characters from the entire buffer, not just the body
(bug#38955).

4 years agoFix interactive spec of message-beginning-of-line
Lars Ingebrigtsen [Thu, 20 Aug 2020 14:12:07 +0000 (16:12 +0200)]
Fix interactive spec of message-beginning-of-line

* lisp/gnus/message.el (message-beginning-of-line): Fix problem
with C-S-a getting translated to C-a in message-mode (bug#39545).

4 years agoRemove the "Summary: " but from cvs checkins
Lars Ingebrigtsen [Thu, 20 Aug 2020 13:54:38 +0000 (15:54 +0200)]
Remove the "Summary: " but from cvs checkins

* lisp/vc/vc-cvs.el (vc-cvs-checkin): Remove the "Summary:" bit
from the comment (bug#40506).

4 years agomessage-sendmail-f-is-evil doc string fix
Lars Ingebrigtsen [Thu, 20 Aug 2020 13:27:07 +0000 (15:27 +0200)]
message-sendmail-f-is-evil doc string fix

* lisp/gnus/message.el (message-sendmail-f-is-evil): Make doc
string less confusing by removing a joke (bug#41096).

4 years agoAdd global-goto-address-mode
Noah Swainland [Thu, 20 Aug 2020 13:17:19 +0000 (15:17 +0200)]
Add global-goto-address-mode

* doc/emacs/misc.texi (Goto Address mode): Document it.

* lisp/net/goto-addr.el (global-goto-address-mode)
(goto-addr-mode--turn-on): New functions (bug#42937).

4 years ago; NEWS fix
Glenn Morris [Wed, 19 Aug 2020 19:53:29 +0000 (20:53 +0100)]
; NEWS fix

4 years agoFix minor issues after recent world-clock rename
Stefan Kangas [Wed, 19 Aug 2020 18:31:29 +0000 (20:31 +0200)]
Fix minor issues after recent world-clock rename

* lisp/time.el (world-clock-mode): Set 'revert-buffer-function'
buffer-locally rather than globally.
(display-time-world): Unobsolete alias for 'world-clock'.  Some users
might be used to the old name.

4 years ago; * etc/NEWS: Fix a recently added entry.
Eli Zaretskii [Wed, 19 Aug 2020 17:47:21 +0000 (20:47 +0300)]
; * etc/NEWS: Fix a recently added entry.

4 years ago; Minor simplification of two recent changes
Basil L. Contovounesios [Wed, 19 Aug 2020 13:43:11 +0000 (14:43 +0100)]
; Minor simplification of two recent changes

4 years agoMake shell-resync-dirs handle whitespace in directory names
Noah Friedman [Wed, 19 Aug 2020 13:59:59 +0000 (15:59 +0200)]
Make shell-resync-dirs handle whitespace in directory names

* lisp/shell.el (shell-resync-dirs): Correctly handle
whitespace in directory names (bug#23324).

4 years agoAllow searching interactively over completions in `M-x'
Juri Linkov [Wed, 19 Aug 2020 13:52:08 +0000 (15:52 +0200)]
Allow searching interactively over completions in `M-x'

* lisp/simple.el (read-extended-command): Allow doing interactive
searches over the completions (bug#12490).  This restores the
behaviour from Emacs 23 that was lost in Emacs 24.

4 years agoEnsure `bibtex-set-dialect' is executed in bibtex buffers
Grégoire Jadi [Wed, 19 Aug 2020 13:36:08 +0000 (15:36 +0200)]
Ensure `bibtex-set-dialect' is executed in bibtex buffers

* lisp/textmodes/bibtex.el (bibtex-mode): Call `bibtex-set-dialect'.
* test/automated/bibtex-tests.el: Add regression tests (bug#21764).

4 years agoMake etags-list-tags work with Exuberant ctags
Robert Weiner [Wed, 19 Aug 2020 13:28:32 +0000 (15:28 +0200)]
Make etags-list-tags work with Exuberant ctags

* lisp/progmodes/etags.el (etags-list-tags): Make the function
work with Exuberant ctags (bug#23400).

4 years agoFix #'(lambda ...) font locking
Anders Lindgren [Wed, 19 Aug 2020 12:19:12 +0000 (14:19 +0200)]
Fix #'(lambda ...) font locking

* lisp/emacs-lisp/lisp-mode.el (lisp--el-non-funcall-position-p):
Fontize #'(lambda ...) better (bug#23465).

4 years agoFix a segfault in daemon mode Emacs when detaching an X session
Doug Gilmore [Wed, 19 Aug 2020 12:04:46 +0000 (14:04 +0200)]
Fix a segfault in daemon mode Emacs when detaching an X session

* src/xterm.c (x_uncatch_errors): Add a sanity check for
x_error_message (bug#23939).

4 years agoDistinguish errors in bytecomp-tests
Mattias Engdegård [Wed, 19 Aug 2020 11:42:31 +0000 (13:42 +0200)]
Distinguish errors in bytecomp-tests

* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-check-1)
(test-byte-opt-arithmetic, bytecomp-lexbind-check-1)
(bytecomp-lexbind-explain-1):
When comparing interpreted with compiled results, don't consider all
errors to be equal; take the error type into account.  (The error
arguments may differ, but there may be good reasons for that.)

4 years agoMake bytecomp-tests re-runnable
Mattias Engdegård [Wed, 19 Aug 2020 11:39:18 +0000 (13:39 +0200)]
Make bytecomp-tests re-runnable

* test/lisp/emacs-lisp/bytecomp-tests.el
(test-byte-comp-macro-expand-lexical-override): Remove functions
before testing so that the test can be run twice without failing.

4 years agoMake thingatpt recognise files names with @ in them
Tino Calancha [Wed, 19 Aug 2020 11:52:21 +0000 (13:52 +0200)]
Make thingatpt recognise files names with @ in them

* lisp/thingatpt.el (thing-at-point-file-name-chars): Add @
(Bug#24606).

4 years ago; Fix last change to comint.el
Basil L. Contovounesios [Wed, 19 Aug 2020 11:37:03 +0000 (12:37 +0100)]
; Fix last change to comint.el

* lisp/comint.el (comint-highlight-input): Add :version tag.
(comint-send-input): Fix indentation.

4 years agoAdd a variable to control VC completion over branch names
Tom Tromey [Wed, 19 Aug 2020 11:38:44 +0000 (13:38 +0200)]
Add a variable to control VC completion over branch names

* lisp/vc/vc-git.el (vc-git-revision-complete-only-branches): New
variable (bug#25710).
(vc-git-revision-table): Use it.

4 years agoBetter check for multi-hops when calling direct async processes
Michael Albinus [Wed, 19 Aug 2020 11:19:19 +0000 (13:19 +0200)]
Better check for multi-hops when calling direct async processes

* lisp/net/tramp-sh.el (tramp-multi-hop-p, tramp-compute-multi-hops):
Move them from here ...

* lisp/net/tramp.el (tramp-multi-hop-p, tramp-compute-multi-hops): ... here.
(tramp-direct-async-process-p): Use `tramp-compute-multi-hops'.

4 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Wed, 19 Aug 2020 11:18:08 +0000 (13:18 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

4 years agoDon't override python font locking in comint
Carlos Pita [Wed, 19 Aug 2020 11:13:46 +0000 (13:13 +0200)]
Don't override python font locking in comint

* lisp/comint.el (comint-highlight-input): New variable (bug#32344).
(comint-send-input): Use it.

* lisp/progmodes/python.el (inferior-python-mode): Set it.

4 years ago; * etc/NEWS: Fix typos.
Michael Albinus [Wed, 19 Aug 2020 11:12:14 +0000 (13:12 +0200)]
; * etc/NEWS: Fix typos.

4 years agoSignal an end-of-file error upon errors when reading from stdin
Lars Ingebrigtsen [Wed, 19 Aug 2020 10:55:46 +0000 (12:55 +0200)]
Signal an end-of-file error upon errors when reading from stdin

* src/minibuf.c (read_minibuf_noninteractive): Signal an
`end-of-file' error when reading from stdin instead of a general
error (bug#34123).  This makes it easier to write code that
recovers from this situation.

Suggested by Noam Postavsky <npostavs@gmail.com>.

4 years agoLet ido-everywhere turn on ido-mode
Noam Postavsky [Wed, 19 Aug 2020 10:49:11 +0000 (12:49 +0200)]
Let ido-everywhere turn on ido-mode

* lisp/ido.el (ido-everywhere): Turn on ido-mode, if it's not already
on.  Otherwise, having ido-everywhere enabled messes all file and
buffer reading interactive commands (bug#34292).

4 years agoFix the [ command in speedbar mode
Lars Ingebrigtsen [Wed, 19 Aug 2020 10:45:05 +0000 (12:45 +0200)]
Fix the [ command in speedbar mode

* lisp/speedbar.el (speedbar-expand-line-descendants): Expand only
the current line -- not all subsequent lines in the speedbar
buffer (bug#35014).

4 years agoFix a page-break in the middle of a keystroke in basic.texi
Sebastian Urban [Wed, 19 Aug 2020 10:15:07 +0000 (12:15 +0200)]
Fix a page-break in the middle of a keystroke in basic.texi

* doc/emacs/basic.texi (Inserting Text): Avoid having the C-x 8 ]
keystroke broken over two pages in the PDF version (bug#35885).

4 years agoRemove some compat code from viper-cmd.el
Lars Ingebrigtsen [Wed, 19 Aug 2020 09:37:26 +0000 (11:37 +0200)]
Remove some compat code from viper-cmd.el

4 years agoRemove some compat code from ispell.el
Lars Ingebrigtsen [Wed, 19 Aug 2020 09:34:54 +0000 (11:34 +0200)]
Remove some compat code from ispell.el

* lisp/textmodes/ispell.el (ispell): transient-mark-mode and
mark-active are always bound, so remove the check.

4 years agoRemove some compat code from erc
Lars Ingebrigtsen [Wed, 19 Aug 2020 09:32:56 +0000 (11:32 +0200)]
Remove some compat code from erc

* lisp/erc/erc.el (erc-mode): next-line-add-newlines is always
defined, so remove the check.

4 years agoGet rid of build-time checks around NS tabbar code (bug#33118)
Alan Third [Mon, 17 Aug 2020 19:58:47 +0000 (20:58 +0100)]
Get rid of build-time checks around NS tabbar code (bug#33118)

* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Get rid of version
checks.

4 years agoRemove some compat code from viper-*.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:33:58 +0000 (23:33 +0200)]
Remove some compat code from viper-*.el

* lisp/emulation/viper-util.el (viper-check-minibuffer-overlay):
* lisp/emulation/viper-cmd.el (viper-minibuffer-standard-hook)
(viper-minibuffer-real-start, viper-submit-report): No need to
check whether minibuffer-prompt-end is defined.

4 years agoRemove some compat code from descr-text.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:23:42 +0000 (23:23 +0200)]
Remove some compat code from descr-text.el

* lisp/descr-text.el (describe-text-properties-1): button.el is
pre-loaded, so remove check for it.

4 years agoRemove some compat code from viper-cmd.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:22:36 +0000 (23:22 +0200)]
Remove some compat code from viper-cmd.el

* lisp/emulation/viper-cmd.el (viper-next-line-at-bol): No need to
check for button-at.

4 years agoRemove some compat code from ps-print.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:18:50 +0000 (23:18 +0200)]
Remove some compat code from ps-print.el

* lisp/ps-print.el: Don't make a face-list alias.

4 years agoRemove some compat code from forms.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:17:47 +0000 (23:17 +0200)]
Remove some compat code from forms.el

* lisp/forms.el (forms-mode): make-face always exists.

4 years agoRemove some compat code from smiley.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:15:09 +0000 (23:15 +0200)]
Remove some compat code from smiley.el

* lisp/gnus/smiley.el (smiley-style): face-attribute is always defined.

4 years agoRemove some compat code from chart.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:12:39 +0000 (23:12 +0200)]
Remove some compat code from chart.el

* lisp/emacs-lisp/chart.el (chart-face-list):
set-face-background-pixmap is always defined.

4 years agoRemove some compat code from htmlfontify.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:11:02 +0000 (23:11 +0200)]
Remove some compat code from htmlfontify.el

* lisp/htmlfontify.el (hfy-color-vals): color-values is always
defined.

4 years agoRemove some compat code from ps files
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:09:53 +0000 (23:09 +0200)]
Remove some compat code from ps files

* lisp/ps-def.el (ps-color-device): Ditto.

* lisp/ps-print.el (ps-color-scale): Make into an obsolete alias.
(ps-begin-job): Adjust caller.

* lisp/progmodes/ebnf2ps.el (ebnf-generate-eps, ebnf-generate): Ditto.

4 years agoRemove some compat code from woman.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 21:05:22 +0000 (23:05 +0200)]
Remove some compat code from woman.el

* lisp/woman.el (woman-fontify): Don't check for functions always
defined.

4 years agoReplace last uses of idlwave-get-buffer-visiting
Basil L. Contovounesios [Tue, 18 Aug 2020 20:29:41 +0000 (21:29 +0100)]
Replace last uses of idlwave-get-buffer-visiting

* lisp/progmodes/idlw-help.el (idlwave-help-with-source):
* lisp/progmodes/idlw-shell.el (idlwave-shell-set-bp-in-module)
(idlwave-shell-delete-temp-files, idlwave-shell-save-and-action):
Replace last occurrences of deprecated idlwave-get-buffer-visiting
with now-equivalent find-buffer-visiting.

4 years ago* lisp/vt-control.el: Use lexical-binding.
Stefan Kangas [Tue, 18 Aug 2020 19:03:40 +0000 (21:03 +0200)]
* lisp/vt-control.el: Use lexical-binding.

4 years agoFix Libravatar federation handling
Philip K [Tue, 18 Aug 2020 19:19:21 +0000 (21:19 +0200)]
Fix Libravatar federation handling

* lisp/image/gravatar.el (gravatar--service-libravatar): Implement
correct algorithm (bug#40354).

4 years agoFix Libravatar federation handling
Philip K [Tue, 18 Aug 2020 19:18:06 +0000 (21:18 +0200)]
Fix Libravatar federation handling

* lisp/image/gravatar.el (gravatar--service-libravatar): Implement
correct algorithm (bug#40354).

4 years agoFix truncated command names in process-attributes under Macos
Robert Pluim [Tue, 18 Aug 2020 18:31:37 +0000 (20:31 +0200)]
Fix truncated command names in process-attributes under Macos

* src/sysdep.c (system_process_attributes): Fix truncation of
command names in process-attributes under Macos (bug#36287).

4 years agoRearrange and clean up code in time.el (Bug#40863)
Stefan Kangas [Sun, 9 Aug 2020 21:42:06 +0000 (23:42 +0200)]
Rearrange and clean up code in time.el (Bug#40863)

* lisp/time.el (world-clock, zoneinfo-style-world-list)
(legacy-style-world-list, world-clock-list)
(time--display-world-list, world-clock-time-format)
(world-clock-timer-enable, world-clock-timer-second): Move definitions
closer to 'world-clock' code.  Remove redundant :group args.

(display-time-mail-file, display-time-mail-directory)
(display-time-mail-function)
(display-time-default-load-average)
(display-time-load-average-threshold, display-time-day-and-date)
(display-time-interval, display-time-24hr-format)
(display-time-hook, display-time-mail-face)
(display-time-use-mail-icon, display-time-mail-string)
(display-time-format, display-time-string-forms): Remove redundant
:group args.

4 years agoRename 'display-time-world' to 'world-clock' (Bug#40863)
Stefan Kangas [Sat, 2 May 2020 14:08:33 +0000 (16:08 +0200)]
Rename 'display-time-world' to 'world-clock' (Bug#40863)

* lisp/time.el (world-clock-list, world-clock-time-format)
(world-clock-buffer-name, world-clock-timer-enable)
(world-clock-timer-second, world-clock-label, world-clock-mode)
(world-clock-display, world-clock, world-clock-update): Rename
from 'display-time-world-*' and update all uses.

(world-clock): New defgroup.
(zoneinfo-style-world-list, legacy-style-world-list): Use :group
'world-clock'.

(display-time-world-list, display-time-world-time-format)
(display-time-world-buffer-name)
(display-time-world-timer-enable)
(display-time-world-timer-second): Make into obsolete variable
aliases for the new names.

* lisp/time.el (display-time-world-mode)
(display-time-world-display, display-time-world)
(display-time-world-timer): Make into obsolete function aliases
for the new names.

* etc/NEWS: Announce the above changes.

4 years agoImprove display-time-world UI (Bug#40863)
Stefan Kangas [Sun, 26 Apr 2020 08:16:06 +0000 (10:16 +0200)]
Improve display-time-world UI (Bug#40863)

* lisp/time.el (display-time-world-mode): Set 'revert-buffer-function'
to 'display-time-world-timer'.

(display-time-world-label): New face.
(display-time-world-display): Use the new face.  Move point to new
buffer on creation and resize.

4 years agoRemove the "Recent message" section from the bug reports
Stefan Kangas [Tue, 18 Aug 2020 18:16:06 +0000 (20:16 +0200)]
Remove the "Recent message" section from the bug reports

* lisp/mail/emacsbug.el (report-emacs-bug): Don't include "Recent
messages" since it has privacy implications.  Problem reported by
Lars Ingebrigtsen in:
https://lists.gnu.org/archive/html/emacs-devel/2019-11/msg01099.html
(bug#39185).

4 years agosrecode-utest-project test should now work on Hydra, hopefully
Lars Ingebrigtsen [Tue, 18 Aug 2020 18:10:44 +0000 (20:10 +0200)]
srecode-utest-project test should now work on Hydra, hopefully

4 years agoFix a big in the srecore test setup
Lars Ingebrigtsen [Tue, 18 Aug 2020 18:06:48 +0000 (11:06 -0700)]
Fix a big in the srecore test setup

* test/lisp/cedet/srecode-utest-template.el
(srecode-utest-project): Set the current directory in the project
so that we'll find it later (bug#42533).  The in-project directory
is /tmp, which is not actually what it is on many machines that
have the temporary directory somewhere else.

4 years ago* lisp/savehist.el: Doc fix.
Stefan Kangas [Tue, 18 Aug 2020 17:02:21 +0000 (19:02 +0200)]
* lisp/savehist.el: Doc fix.

4 years agoFix minor bugs in image.c
Pip Cet [Tue, 18 Aug 2020 16:27:05 +0000 (18:27 +0200)]
Fix minor bugs in image.c

* test/src/image-tests.el (image-test-circular-specs): New file.
* src/image.c (parse_image_spec): Return failure for circular lists.
(valid_image_p): Don't look at odd-numbered list elements expecting to
find a property name.
(image_spec_value): Handle circular lists.
(equal_lists): Introduce.
(search_image_cache): Use `equal_lists' (bug#36403).

4 years agoFix issues with OpenPGP header
Philip K [Tue, 18 Aug 2020 16:06:13 +0000 (18:06 +0200)]
Fix issues with OpenPGP header

* doc/misc/message.texi (OpenPGP Header): Mention correct hook
* lisp/gnus/message.el (message-openpgp-header): Improve customize type
(message-add-openpgp-header): Insert header into correct buffer
(bug#42913).

4 years agoFix buffer overflow in x-send-client-message
Kalle Olavi Niemitalo [Tue, 18 Aug 2020 15:03:07 +0000 (17:03 +0200)]
Fix buffer overflow in x-send-client-message

* xselect.c (x_fill_property_data): Add parameter NELEMENTS_MAX.
* xterm.h (x_fill_property_data): Update prototype.
* xselect.c (Fx_send_client_event): Update call.  This fixes
  a buffer overflow in event.xclient.data.
* xfns.c (Fx_change_window_property): Update call (bug#23482).

Copyright-paperwork-exempt: yes

4 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 18 Aug 2020 14:51:08 +0000 (07:51 -0700)]
Merge from origin/emacs-27

362ca83a3b (origin/emacs-27) Let Emacs start even if curdir is inacce...
dd989c0ea0 * etc/NEWS: Mention GnuPG 2.0 through 2.1.5 issue (Bug#428...
4542b750cc Fix bug with ~/Emacs file not being read at init
9b403d624e ; Fix last change
6bff65a626 ; * doc/lispref/sequences.texi (Sequence Functions): Typo ...
3c4edfd85e Prevent from frozen frame after `C-z' in Lucid builds
98e8241992 Document the 'flex' completion style
19fa8b7ca3 Note that Emacs needs systemd support if systemd is used t...

# Conflicts:
# etc/NEWS

4 years ago; Merge from origin/emacs-27
Glenn Morris [Tue, 18 Aug 2020 14:51:07 +0000 (07:51 -0700)]
; Merge from origin/emacs-27

The following commit was skipped:

8ff5e346fe Regexps cannot infloop; fix manual

4 years agoMerge from origin/emacs-27
Glenn Morris [Tue, 18 Aug 2020 14:51:05 +0000 (07:51 -0700)]
Merge from origin/emacs-27

cf0ee6f49b ; spelling fixes
16f4f26632 Fix startup working dir bug on NeXTSTEP

4 years agoImplement a cache for all types of gravatars
Lars Ingebrigtsen [Tue, 18 Aug 2020 14:45:29 +0000 (16:45 +0200)]
Implement a cache for all types of gravatars

* lisp/image/gravatar.el (gravatar-automatic-caching): Made obsolete.
(gravatar-cache-ttl): Ditto.
(gravatar--cache): New variable to cache gravatars in-memory.
(gravatar-retrieve): Maintain the cache.
(gravatar--prune-cache): Remove old entries.
(gravatar-retrieved): Remove use of the old-style cache (bug#40355).

4 years agoFix ert ability to peek inside structures when comparing unequal values
Clément Pit-Claudel [Tue, 18 Aug 2020 14:06:29 +0000 (16:06 +0200)]
Fix ert ability to peek inside structures when comparing unequal values

* lisp/emacs-lisp/ert.el (ert--explain-equal-rec): Treat records
as arrays (bug#40562).  Also add support for cl-structs.

4 years agoRemove reference to Emacs Lisp List from FAQ
Stefan Kangas [Thu, 13 Aug 2020 00:59:11 +0000 (02:59 +0200)]
Remove reference to Emacs Lisp List from FAQ

* doc/misc/efaq.texi (Packages that do not come with Emacs): Remove
reference to Emacs Lisp List.  (Bug#41681)

4 years agoAdd NEWS entry for the count-lines change
Lars Ingebrigtsen [Tue, 18 Aug 2020 13:35:56 +0000 (15:35 +0200)]
Add NEWS entry for the count-lines change

4 years agoAdd optional ALL-FRAMES arfument to count-windows
Jen-Chieh Shen [Tue, 18 Aug 2020 13:25:21 +0000 (15:25 +0200)]
Add optional ALL-FRAMES arfument to count-windows

* lisp/window.el (count-windows): Allow counting the windows on
all frames (bug#42872).

4 years agoRename new option to flyspell-use-mouse-3-for-menu
Stefan Kangas [Tue, 18 Aug 2020 10:43:16 +0000 (12:43 +0200)]
Rename new option to flyspell-use-mouse-3-for-menu

* lisp/textmodes/flyspell.el (flyspell-use-mouse-3-for-menu): Rename
from 'flyspell-correct-on-mouse-3'.  The previous name did not make it
clear that it's about opening a menu.  (Bug#11680)
(flyspell--set-use-mouse-3-for-menu): Rename from
'flyspell--set-correct-on-mouse-3'.  Bind menu to 'down-mouse-3'
instead of 'mouse-3' to be more in line with user expectations.
(flyspell-mode): Use the above new names.
* doc/emacs/fixit.texi (Spelling):
* etc/NEWS: Update documentation to use the new name.

Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.

4 years agoTrim titles in eww so that the host from the URL is visible
Lars Ingebrigtsen [Tue, 18 Aug 2020 10:31:22 +0000 (12:31 +0200)]
Trim titles in eww so that the host from the URL is visible

* lisp/net/eww.el (eww-update-header-line-format): Trim the line
of the title so that the host bit of the URL is visible (bug#42898).

4 years agoRemove some compat code from esh-io.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 10:12:02 +0000 (12:12 +0200)]
Remove some compat code from esh-io.el

* lisp/eshell/esh-io.el (eshell-set-output-handle): Remove check
for null-device, which is always bound.

4 years agoRemove some compat code from ediff
Lars Ingebrigtsen [Tue, 18 Aug 2020 10:10:29 +0000 (12:10 +0200)]
Remove some compat code from ediff

* lisp/vc/ediff-init.el (ediff-convert-standard-filename): Make
obsolete.
* lisp/vc/ediff-util.el (ediff-setup): Adjust callers.
(ediff-make-temp-file): Ditto.

4 years agoRemove some compat code from ede/make.el and semantic/dep.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 10:08:11 +0000 (12:08 +0200)]
Remove some compat code from ede/make.el and semantic/dep.el

* lisp/cedet/ede/make.el (ede--find-executable): Make obsolete.
(ede-make-command): Adjust caller.

* lisp/cedet/semantic/dep.el
(semantic--dependency-find-file-on-path): Make obsolete.
(semantic-dependency-find-file-on-path): Adjust callers.

4 years agoRemove some compat code from python.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 10:02:58 +0000 (12:02 +0200)]
Remove some compat code from python.el

* lisp/progmodes/python.el: Remove some compat function definitions.

4 years agoRemove some compat code from binhex.el and uudecode.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 10:01:09 +0000 (12:01 +0200)]
Remove some compat code from binhex.el and uudecode.el

* lisp/mail/binhex.el (binhex-temporary-file-directory): Make obsolete.
(binhex-decode-region-external): Adjust usage.

* lisp/mail/uudecode.el (uudecode-temporary-file-directory): Make
obsolete.
(uudecode-decode-region-external): Adjust usage.

4 years agoRemove some compat code from ispell.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 09:57:39 +0000 (11:57 +0200)]
Remove some compat code from ispell.el

* lisp/textmodes/ispell.el (ispell-check-version): Remove check
for temporary-file-directory, which is always defined.

4 years agoRemove some compat code from uudecode.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 09:56:39 +0000 (11:56 +0200)]
Remove some compat code from uudecode.el

* lisp/mail/uudecode.el (uudecode-decode-region-external): Remove
check for make-temp-file, which is always defined.

4 years agoRemove some compat code from ediff-util.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 09:55:29 +0000 (11:55 +0200)]
Remove some compat code from ediff-util.el

* lisp/vc/ediff-util.el (ediff-minibuffer-with-setup-hook): Make
into an obsolete macro.
(ediff-read-file-name): Adjust caller.

4 years agoRemove XEmacs compat code from idlwave.el
Lars Ingebrigtsen [Tue, 18 Aug 2020 09:53:21 +0000 (11:53 +0200)]
Remove XEmacs compat code from idlwave.el

idlwave.el: (idlwave-comment-line-start-skip, idlwave-mode-map)
(idlwave-mode, idlwave-get-buffer-visiting)
(idlwave-find-file-noselect, idlwave-complete-in-buffer)
(idlwave-attach-classes, idlwave-popup-select)
(idlwave-split-menu-emacs, idlwave-display-completion-list)
(idlwave-default-choose-completion)
(idlwave-display-completion-list-emacs)
(idlwave-display-completion-list-1)
(idlwave-make-modified-completion-map-emacs)
(idlwave-class-file-or-buffer, idlwave-rinfo-mouse-map)
(idlwave-display-calling-sequence)
(idlwave-insert-source-location)
(idlwave-list-load-path-shadows, idlwave-edit-in-idlde): Remove
XEmacs compat code.