1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-12 01:42:37 -07:00
Commit graph

149293 commits

Author SHA1 Message Date
Mattias Engdegård
bf60338d6d 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.
2020-08-20 19:39:14 +02:00
Lars Ingebrigtsen
3b8a6ef185 Fix compilation warning in vc-cvs from previous change
* lisp/vc/vc-cvs.el (log-edit-extract-headers): Fix compilation
warning.
2020-08-20 17:18:46 +02:00
Lars Ingebrigtsen
ea8ead6a8b Fix message.el compilation warning
* lisp/gnus/message.el (smtpmail-stream-type): Fix compilation
warning from last change.
2020-08-20 17:17:48 +02:00
Lars Ingebrigtsen
44f75f0d9d 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).
2020-08-20 17:03:04 +02:00
Lars Ingebrigtsen
bd0523901b 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.
2020-08-20 16:52:57 +02:00
Lars Ingebrigtsen
b19b942f72 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).
2020-08-20 16:42:06 +02:00
Lars Ingebrigtsen
ac79d73760 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).
2020-08-20 16:33:29 +02:00
Lars Ingebrigtsen
63ac91a2ec 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).
2020-08-20 16:12:07 +02:00
Lars Ingebrigtsen
0faa2c9590 Remove the "Summary: " but from cvs checkins
* lisp/vc/vc-cvs.el (vc-cvs-checkin): Remove the "Summary:" bit
from the comment (bug#40506).
2020-08-20 15:54:38 +02:00
Lars Ingebrigtsen
219e80f0a3 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).
2020-08-20 15:27:07 +02:00
Noah Swainland
80628df778 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).
2020-08-20 15:17:19 +02:00
Andrea Corallo
c818c29771 Revert "Fix native code uneffective loads after recompilation" (bug#42944)
This reverts commit 8a931a97b8.

This introduced bug#42944.
2020-08-20 12:46:52 +02:00
Stefan Kangas
d3a4ce8420 Revert "; * etc/NEWS: Remove temporary note on documentation. (Bug#42917)"
This reverts commit 121be3e118.
2020-08-20 11:49:19 +02:00
Glenn Morris
a566e409d0 ; NEWS fix 2020-08-19 20:53:29 +01:00
Glenn Morris
16f00e36dc * admin/admin.el (set-version): Trap yet another NEWS error. 2020-08-19 20:52:08 +01:00
Stefan Kangas
6e3bc3c684 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.
2020-08-19 20:39:27 +02:00
Stefan Kangas
121be3e118 ; * etc/NEWS: Remove temporary note on documentation. (Bug#42917) 2020-08-19 19:58:36 +02:00
Eli Zaretskii
8c6765b37a ; * etc/NEWS: Fix a recently added entry. 2020-08-19 20:47:21 +03:00
Andreas Fuchs
bec2adebc6 Pass driver options to libgccjit where supported
Add a customizable variable for driver options (such as linker flags)
to pass to libgccjit (Bug #42761).

* lisp/emacs-lisp/comp.el (comp-native-driver-options): New
customization variable.
* src/comp.c: Use comp-native-driver-options to set libgccjit's driver
options, if supported on the library's ABI version.
2020-08-19 17:12:21 +02:00
Andrea Corallo
8a931a97b8 Fix native code uneffective loads after recompilation
'dlopen' can return the same handle if two shared with the same
filename are loaded in two different times (even if the first was
deleted!).  To prevent this scenario the last modification time of the
source file is included in the hashing algorithm.

	* src/comp.c (Fcomp_el_to_eln_filename): Update hashing algo to
	include the source last modification date.
	* src/lread.c (maybe_swap_for_eln): Do not check for eln newer
	then elc as this is now unnecessary.
2020-08-19 16:29:56 +02:00
Andrea Corallo
886377fefd Merge remote-tracking branch 'savannah/master' into HEAD 2020-08-19 16:11:00 +02:00
Basil L. Contovounesios
f8d3d18168 ; Minor simplification of two recent changes 2020-08-19 15:02:43 +01:00
Noah Friedman
90e65c826f Make shell-resync-dirs handle whitespace in directory names
* lisp/shell.el (shell-resync-dirs): Correctly handle
whitespace in directory names (bug#23324).
2020-08-19 15:59:59 +02:00
Juri Linkov
33a72465b5 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.
2020-08-19 15:52:08 +02:00
Grégoire Jadi
bdc5d38c7c 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).
2020-08-19 15:36:08 +02:00
Robert Weiner
3d0e0d9e77 Make etags-list-tags work with Exuberant ctags
* lisp/progmodes/etags.el (etags-list-tags): Make the function
work with Exuberant ctags (bug#23400).
2020-08-19 15:28:32 +02:00
Mattias Engdegård
5fcb97dabd Fix cond jump table compilation (bug#42919)
This bug affected compilation of

 (cond ((member '(some list) variable) ...) ...)

While equal is symmetric, member is not; in the latter case the
arguments must be a variable and a constant list, in that order.

Reported by Ikumi Keita.

* lisp/emacs-lisp/bytecomp.el (byte-compile--cond-switch-prefix):
Don't treat equality and member predicates in the same way; only
the former are symmetric in their arguments.
* test/lisp/emacs-lisp/bytecomp-tests.el
(byte-opt-testsuite-arith-data): Add test cases.
2020-08-19 15:26:34 +02:00
Anders Lindgren
dd6fa00fa3 Fix #'(lambda ...) font locking
* lisp/emacs-lisp/lisp-mode.el (lisp--el-non-funcall-position-p):
Fontize #'(lambda ...) better (bug#23465).
2020-08-19 14:19:12 +02:00
Doug Gilmore
a7291a9fb9 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).
2020-08-19 14:05:19 +02:00
Mattias Engdegård
1aacdf5aab 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.)
2020-08-19 13:56:32 +02:00
Mattias Engdegård
a8fc4f7dca 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.
2020-08-19 13:56:32 +02:00
Tino Calancha
6a61d5edd0 Make thingatpt recognise files names with @ in them
* lisp/thingatpt.el (thing-at-point-file-name-chars): Add @
(Bug#24606).
2020-08-19 13:55:49 +02:00
Basil L. Contovounesios
bd3e2e8487 ; Fix last change to comint.el
* lisp/comint.el (comint-highlight-input): Add :version tag.
(comint-send-input): Fix indentation.
2020-08-19 12:47:51 +01:00
Tom Tromey
ed96a2121d 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.
2020-08-19 13:38:44 +02:00
Michael Albinus
3b8dfc46ce 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'.
2020-08-19 13:19:19 +02:00
Michael Albinus
18e6a0b5c0 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2020-08-19 13:18:08 +02:00
Carlos Pita
c570a79a77 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.
2020-08-19 13:13:46 +02:00
Michael Albinus
10b997f8f5 ; * etc/NEWS: Fix typos. 2020-08-19 13:12:14 +02:00
Lars Ingebrigtsen
9e586ac1d1 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>.
2020-08-19 12:55:46 +02:00
Noam Postavsky
dc90e62276 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).
2020-08-19 12:49:11 +02:00
Lars Ingebrigtsen
ba8cce26c8 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).
2020-08-19 12:45:05 +02:00
Sebastian Urban
b4e76ac077 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).
2020-08-19 12:15:07 +02:00
Lars Ingebrigtsen
9c17df59a3 Remove some compat code from viper-cmd.el 2020-08-19 11:37:26 +02:00
Lars Ingebrigtsen
c23fddbc30 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.
2020-08-19 11:34:54 +02:00
Lars Ingebrigtsen
87ded4c96d Remove some compat code from erc
* lisp/erc/erc.el (erc-mode): next-line-add-newlines is always
defined, so remove the check.
2020-08-19 11:32:56 +02:00
Alan Third
92ec47981a Get rid of build-time checks around NS tabbar code (bug#33118)
* src/nsterm.m ([EmacsView initFrameFromEmacs:]): Get rid of version
checks.
2020-08-18 22:43:21 +01:00
Lars Ingebrigtsen
411a6fd290 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.
2020-08-18 23:33:58 +02:00
Lars Ingebrigtsen
cb202551f7 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.
2020-08-18 23:23:42 +02:00
Lars Ingebrigtsen
b906ef38fc 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.
2020-08-18 23:22:36 +02:00
Lars Ingebrigtsen
556ff983e7 Remove some compat code from ps-print.el
* lisp/ps-print.el: Don't make a face-list alias.
2020-08-18 23:19:09 +02:00