1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-10 05:30:45 -08:00
Commit graph

137477 commits

Author SHA1 Message Date
Lars Ingebrigtsen
4438459eaa Refactor rfc2047-fold-region slightly and add a couple of tests
* lisp/mail/rfc2047.el (rfc2047--break-line): Refactor out to
avoid code repetition...
(rfc2047-fold-region): ... from this function.
2019-07-12 15:48:34 +02:00
Lars Ingebrigtsen
c281b9a121 Add comments to rfc2047
* lisp/mail/rfc2047.el (rfc2047-fold-region): Add comments to the
function.
2019-07-12 15:38:34 +02:00
Michael Albinus
812715a471 Merge from origin/emacs-26
305abae50e Raise required librsvg version so as to match the current use
c6775bc9ca * lisp/net/tramp-sh.el (tramp-inline-compress-start-size):...
2019-07-12 15:13:20 +02:00
Michael Albinus
955db22005 Check directory in Tramp's {copy,rename}-file
* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Check, that NEWNAME is not a directory given as file name.

* test/lisp/net/tramp-tests.el (tramp-test11-copy-file)
(tramp-test12-rename-file): Extend tests.
2019-07-12 15:10:57 +02:00
Michael Albinus
9f76913184 Re-add tramp-autoload cookie for all defcustoms
* lisp/net/tramp-adb.el (tramp-adb-program)
(tramp-adb-connect-if-not-connected, tramp-adb-prompt):
* lisp/net/tramp-cache.el (tramp-persistency-file-name):
* lisp/net/tramp-gvfs.el (tramp-gvfs-zeroconf-domain):
* lisp/net/tramp-rclone.el (tramp-rclone-program):
* lisp/net/tramp-sh.el (tramp-copy-size-limit, tramp-histfile-override)
(tramp-use-ssh-controlmaster-options):
* lisp/net/tramp-smb.el (tramp-smb-program, tramp-smb-acl-program)
(tramp-smb-conf, tramp-smb-winexe-program)
(tramp-smb-winexe-shell-command)
(tramp-smb-winexe-shell-command-switch): Re-add tramp-autoload
cookie for all defcustoms.

* lisp/net/tramp-adb.el (tramp-adb-handle-copy-file)
(tramp-adb-handle-rename-file):
* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file):
* lisp/net/tramp-rclone.el (tramp-rclone-do-copy-or-rename-file):
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-file)
(tramp-smb-handle-rename-file):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-do-copy-or-rename-file):
Check, that NEWNAME is not a directory given as file name.
2019-07-12 15:05:55 +02:00
Michael Albinus
1d727e94b2 * doc/misc/tramp.texi (Inline methods): Precise about used external programs. 2019-07-12 15:05:11 +02:00
Michael Albinus
75f7fe87c3 Change Tramp version to 2.4.3-pre
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.4.3-pre".

* lisp/net/tramp.el: Bump version to 2.4.3-pre.
2019-07-12 15:04:55 +02:00
Paul Eggert
81a1088ee8 Tweak builtin symbol order for speed
* lib-src/make-docfile.c (compare_globals):
Make symbols 1 through 4 be t, unbound, error, lambda.
This is in addition to symbol 0 being nil.
This change improved ‘make compile-always’ performance by 0.6%
on my platform.
2019-07-11 23:07:22 -07:00
Paul Eggert
77a4cc9f1a Avoid duplicate comparison in describe_map_compare
* src/fns.c (string_version_cmp): New function.
This has most of the old Fstring_version_lessp,
with an assertion to make things a bit clearer.
* src/fns.c (Fstring_version_lessp):
* src/keymap.c (describe_map_compare): Use it (Bug#33237).
2019-07-11 17:04:55 -07:00
YAMAMOTO Mitsuharu
305abae50e Raise required librsvg version so as to match the current use
* configure.ac: Set RSVG_REQUIRED to 2.14.0 as rsvg_handle_get_dimensions
needs it.
2019-07-12 09:03:39 +09:00
Juri Linkov
ef6715364d * lisp/progmodes/compile.el (compilation-filter): Use font-lock-ensure
to update the number of errors in compilation-mode-line-errors
displayed in the mode-line.  (Bug#36564)
2019-07-12 00:46:12 +03:00
Juri Linkov
53fb021acc Better match-data handling in perform-replace
* lisp/replace.el (perform-replace): Don't wrap replace-highlight
in save-match-data.  Use `(nth 0 real-match-data)' instead of
`(match-beginning 0)' after replace-highlight.  (Bug#36328)
2019-07-12 00:35:21 +03:00
Michael Albinus
0b0ed31df9 Remove lisp/obsolete/xesam.el 2019-07-11 20:22:40 +02:00
Michael Albinus
37cb129979 * test/lisp/format-spec-tests.el (test-format-unknown): Use `should-error'. 2019-07-11 20:01:57 +02:00
Lars Ingebrigtsen
b44f0c4579 Allow passing unknown specs to format-spec
* lisp/format-spec.el (format-spec): Allow passing through format
strings that have no specs (to be able to act as a filter).  Also
add an example.
* test/lisp/format-spec-tests.el (test-format-spec): Add tests for
the new functionality.
2019-07-11 18:44:30 +02:00
Lars Ingebrigtsen
b41ddb7a8b Add tests for format-spec 2019-07-11 18:37:55 +02:00
Lars Ingebrigtsen
50e7e8101a Add test to time-stamp.el 2019-07-11 18:27:12 +02:00
Phil Sainty
2daeea7833 Support program switches in 'comint-run' command
* etc/NEWS:
* doc/emacs/misc.texi: Describe new behaviour (bug#33037).
* lisp/comint.el (comint-run): Add optional SWITCHES argument.
With prefix argument C-u, prompt for SWITCHES.
2019-07-11 18:27:12 +02:00
Lars Ingebrigtsen
aecc82d7eb Clarify the expand-file-name doc string
* src/fileio.c (Fexpand_file_name): Clarify that "~" in NAME is
expanded, and not just "~/".  Also clarify that ~USER is not
expanded if USER doesn't exist (bug#36490).
2019-07-11 17:10:52 +02:00
Lars Ingebrigtsen
1c3b320614 Tweak the order keystrokes are sorted in keymap listings
* src/keymap.c (describe_map_compare): Change the sorting order of
keystrokes, so that we get the order <f1> <f2> <f11> instead of
<f1> <f11> <f2> (bug#33237).
2019-07-11 16:53:43 +02:00
Lars Ingebrigtsen
9912cf376c Tweak misterioso header line background color
* etc/themes/misterioso-theme.el (class): Make the header line
background darker so that cedet function names and parameters are
legible (bug#33061).
2019-07-11 16:42:16 +02:00
Stefan Kangas
0a3d727cb1 Remove misleading message in customize
* lisp/cus-edit.el (custom-buffer-create-internal): Remove misleading
message about "Resetting customization items" (bug#22451).
2019-07-11 16:06:03 +02:00
Lars Ingebrigtsen
a87bdb8f91 Fix C-x C-e with defvars in comments preceding
* lisp/progmodes/elisp-mode.el (eval-sexp-add-defvars): When
collecting defvars in the current buffer, ignore the ones that are
in comments or strings (bug#34233).
2019-07-11 15:46:06 +02:00
Eli Zaretskii
60fc771ac6 Resurrect SVG support on MS-Windows
* src/image.c (syms_of_image) <Qgio> [HAVE_NTGUI]: New DEFSYM.
(init_svg_functions) [LIBRSVG_CHECK_VERSION >= 2.32.0]: Load
g_file_new_for_path and g_memory_input_stream_new_from_data
from libgio, not from libglib.  (Bug#35548)

* lisp/term/w32-win.el (dynamic-library-alist): Add the libgio
DLL.
2019-07-11 16:28:41 +03:00
Eli Zaretskii
2581513abe Avoid assertion violations when resize-mini-windows is nil
* src/xdisp.c (resize_mini_window): Always reset the
mini-window's start point to the beginning of the buffer, even
if resizing is not needed.  This avoids assertion violations
when resize-mini-windows is nil.  (Bug#36595)
2019-07-11 16:03:33 +03:00
Paul Eggert
40cd6278ba Avoid functions deprecated in librsvg 2.45.1
* src/image.c (init_svg_functions) [WINDOWSNT]:
Load the pre-2.32 or 2.32 functions,
depending on LIBRSVG_CHECK_VERSION.
(svg_load_image): In librsvg 2.32 or later, use
g_memory_input_stream_new_from_data, g_file_new_for_path and
rsvg_handle_new_from_stream_sync rather than the
deprecated-in-2.45 rsvg_handle_write and rsvg_handle_close.
From a patch by YAMAMOTO Mitsuharu (Bug#35548#11).
2019-07-10 12:41:13 -07:00
Mattias Engdegård
83ed722c8d Fix trig simplification crash (bug#33052)
* lisp/calc/calc-alg.el (calcFunc-sec, calcFunc-csc, calcFunc-cot):
Check that `math-known-sin' and `math-known-tan' succeeded before
using their value in arithmetic.
* test/lisp/calc/calc-tests.el (calc-test-trig): Add regression tests.
2019-07-10 19:28:35 +02:00
Basil L. Contovounesios
ff5dd4ed76 ; Update asm-mode docstring after last change
* lisp/progmodes/asm-mode.el (asm-mode): Display binding for
newline-and-indent instead of its obsolete alias
asm-newline (bug#36540).
2019-07-10 14:58:32 +01:00
Stefan Kangas
ddc8c2c298 Small cleanups in asm-mode.el (Bug#36540)
* lisp/progmodes/asm-mode.el: Remove "tools" from "Keywords" header.
Doc fixes.
(asm-comment-char, asm-comment): Doc fixes.
(asm-newline): Redefine as an obsolete function alias for
'newline-and-indent' instead of using a defalias.
2019-07-10 14:54:39 +01:00
Lars Ingebrigtsen
09c805a405 Add recursion check for comint password prompting
* lisp/comint.el (comint--prompt-recursion-depth): New variable
(bug#33252).
(comint-watch-for-password-prompt): Use it to avoid bugging out
and making Emacs unusable when a shell script is prompting for
passwords in an infloop.
2019-07-10 15:23:27 +02:00
Lars Ingebrigtsen
08f0b0b98c Fold too-long headers in Message automatically
* lisp/gnus/message.el (message--fold-long-headers): Header lines
should be no longer than 79 characters before folding
(bug#33313).  Previous comment about 998 octets is about maximum
allowed header field length.
2019-07-10 15:03:12 +02:00
Lars Ingebrigtsen
dfb5282faf Doc clarification in abbrev-prefix-mark
* lisp/abbrev.el (abbrev-prefix-mark): Clarify when the hyphen is
removed (bug#33382).
2019-07-10 14:50:20 +02:00
Lars Ingebrigtsen
ba59181c41 Fix problem with files like "~" in `directory-files-recursively'
* lisp/files.el (directory-files-recursively): Don't bug out on
files like "~" that have special meaning to `expand-file-name'
(bug#36490).
2019-07-10 14:03:55 +02:00
Stefan Kangas
9524e1f6a6 Add new section on reading a bug to admin/notes/bugtracker
* admin/notes/bugtracker: New section "How do I read a bug?" in
"Quickstart" (Bug#36560).
2019-07-10 13:45:18 +02:00
Lars Ingebrigtsen
b93bde184e Fix pretty-printing of {}
* lisp/json.el (json-pretty-print): Fix reading {}, which returns nil.
2019-07-10 13:23:47 +02:00
Stefan Kangas
c198ecda9f Fix warnings in todo-mode-tests.el (Bug#36569)
* test/lisp/calendar/todo-mode-tests.el (todo-test--insert-item):
Fix "Unused lexical argument" warnings.
2019-07-10 11:26:18 +01:00
Stefan Kangas
faedbe4665 Fix warning in electric-tests.el (Bug#36570)
* test/lisp/electric-tests.el (plainer-c-mode): Remove duplicate
definition.
2019-07-10 11:11:39 +01:00
Michael Albinus
c6775bc9ca * lisp/net/tramp-sh.el (tramp-inline-compress-start-size): Set nil on w32. 2019-07-10 10:34:02 +02:00
Paul Eggert
d579dd370d Simplify math-get-calendar-tzinfo
* lisp/calc/calc-forms.el (calendar-current-time-zone-cache):
Remove defvar.
(math-get-calendar-tzinfo): Simplify and do not reach
into caldst’s cache.
2019-07-09 23:18:36 -07:00
Lars Ingebrigtsen
77cf71ce8c Fix documentation of cl-member
* doc/misc/cl.texi (Lists as Sets): cl-member with no :test is not
equal to memq (because it uses eql) (bug#33655).
2019-07-10 01:39:33 +02:00
Lars Ingebrigtsen
f55b5e9998 auth-source does not support "host" in .netrc files
* doc/misc/auth.texi (Help for users): Remove mention of "host" in
.netrc files, because it's not supported (bug#33826).
2019-07-10 01:18:39 +02:00
Lars Ingebrigtsen
7d8e759c09 White-space fix in fortune-compile
* lisp/play/fortune.el (fortune-compile): Reindent function.
2019-07-10 00:53:39 +02:00
Benjamin Ragheb
52847315da Search exec-path for fortune strfile program
* lisp/play/fortune.el (fortune-compile): Search exec-path for
strfile program (bug#33984).

Copyright-paperwork-exempt: yes
2019-07-10 00:33:17 +02:00
Lars Ingebrigtsen
ba4f1d28ec Remove json-pretty-print-max-secs introduced earlier this year
* lisp/json.el (json-pretty-print-max-secs): Remove the variable
as it's no longer used.
2019-07-10 00:09:30 +02:00
Lars Ingebrigtsen
101dad2c15 Fix timezone east of GMT in Calv
* lisp/calc/calc-forms.el (math-calendar-tzinfo): Make timezone
calculation work east of Greenwich.  Fix proposed by David O'Shea
(bug#34075).
2019-07-10 00:06:06 +02:00
Stefan Monnier
fec111c9ee * src/fileio.c: Fix bug#36431
(decide_coding_unwind): Re-introduce.  Move text back to the gap.
Return the new `inserted` via the unwind_data.
(Finsert_file_contents): Use it.
Make sure `inserted` is always 0 when we jump straight to `notfound`.
Don't insert the text in the buffer until we know it's properly decoded
for the byteness of the buffer.

* test/src/fileio-tests.el (fileio-tests--insert-file-interrupt):
Allow insert-file-contents to return an empty buffer in case of
non-local exit in set-auto-coding-function.
2019-07-09 17:04:24 -04:00
Paul Eggert
4c619758b2 Defend fingerprint against even-smarter LTO
* src/pdumper.c (Fdump_emacs_portable, pdumper_load):
Don’t cast volatile to non-volatile pointer, as that does not in
general suffice to prevent a compiler from optimizing away memcmp
and/or memcpy calls.  Instead, copy the fingerprint by hand.
2019-07-09 13:56:45 -07:00
Stefan Monnier
6397716871 Revert "Turn off bytecode jumptables to avoid Bug#36447"
This reverts commit 122198d2f1.
Should not be needed any more thanks to Pip Cet's patch to hash_table_rehash.
2019-07-09 16:16:37 -04:00
Pip Cet
de229df09c Don't alter shared structure in dumped purecopied hash tables.
* src/fns.c (hash_table_rehash): Make sure we're operating on
fresh copies of ->next, ->index, ->hash.
2019-07-09 16:15:29 -04:00
Stefan Monnier
3078e6d2fb Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs into trunk 2019-07-09 16:13:25 -04:00