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
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
Paul Eggert
412139f1be
Do not alter match data in Fcapitalize etc.
...
Without this patch, (capitalize "x") can alter the match data,
which is not what users expect. Problem found by running
morse-tests-unnato-region in a stripped-down Emacs.
Perhaps ‘load’ should also save and restore the match data?
That would be a simpler fix, though arguably incompatible.
* src/lread.c (save_match_data_load): New function.
* src/chartab.c (uniprop_table):
* src/doc.c (reread_doc_file):
* src/eval.c (Fautoload_do_load):
* src/fns.c (Frequire): Use it.
2019-07-09 13:11:45 -07:00
Paul Eggert
ce59b41a28
Port image-type-from-file-header-test to non-SVG Emacs
...
Problem reported privately by Michael Albinus.
* test/lisp/image-tests.el (image-type-from-file-header-test):
Don’t assume svg is a supported image type.
2019-07-09 13:03:07 -07:00
Andreas Schwab
fc41b0610e
Make fingerprint handling compatible with LTO
...
Tell the compiler that the fingerprint variable is modified unpredictably.
* lib/fingerprint.h (fingerprint): Remove const.
* lib/fingerprint.c (fingerprint): Likewise.
* src/pdumper.c (Fdump_emacs_portable): Cast fingerprint variable.
(pdumper_load): Likewise.
* lib-src/make-fingerprint.c (main): Likewise.
2019-07-09 21:41:24 +02:00
Lars Ingebrigtsen
bff64115a0
Fix pretty-printing of multiple JSON objects
...
* lisp/json.el (json-pretty-print-max-secs): Make obsolete.
(json-pretty-print): Pretty-print all JSON objects in the region
instead of just the first one (and then deleting all other
objects) (bug#34160).
2019-07-09 21:32:41 +02:00
Lars Ingebrigtsen
864ab2c150
Revert "Fix pretty-printing of multiple JSON objects"
...
This reverts commit 48daf77a9d .
This apparently led to build errors.
2019-07-09 21:23:18 +02:00
Lars Ingebrigtsen
48daf77a9d
Fix pretty-printing of multiple JSON objects
...
* lisp/json.el (json-pretty-print-max-secs): Make obsolete.
(json-pretty-print): Pretty-print all JSON objects in the region
instead of just the first one (and then deleting all other
objects) (bug#34160).
2019-07-09 20:48:58 +02:00
Michael Albinus
1e4e165eaf
* lisp/simple.el (shell-command): Raise a user-error instead of an error.
2019-07-09 20:48:35 +02:00
Eli Zaretskii
8c9fe44cdc
; * lisp/json.el (json-encode): Doc fix.
2019-07-09 21:41:26 +03:00
Lars Ingebrigtsen
7c317c835a
Clarify json-read and json-encode parameters and return values
...
* lisp/json.el (json-read): Try to clarify what's returned (bug#34242).
(json-encode): Refer to `json-read' about what the input is and
say what error is signalled.
2019-07-09 19:41:11 +02:00
Lars Ingebrigtsen
75af25cba0
Fix alternative-email-as-from with empty To headers in Message
...
* lisp/gnus/message.el (message-use-alternative-email-as-from):
Don't add a "," at the start of the address if the To header
doesn't exist (bug#34293).
2019-07-09 19:41:11 +02:00
Lars Ingebrigtsen
7c548a29c0
Make gnus-read-ephemeral-emacs-bug-group autoloadable
...
* lisp/gnus/gnus-group.el (gnus-read-ephemeral-emacs-bug-group):
Add an autoload cookie, because the command can be used from
without Gnus.
2019-07-09 18:52:59 +02:00
Lars Ingebrigtsen
547800dade
Checkdoc would bug out on empty files
...
* lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring): Don't
bug out on malformed Emacs Lisp (bug#34760).
(checkdoc-file-comments-engine): Don't bug out on empty buffers.
2019-07-09 18:45:18 +02:00
Lars Ingebrigtsen
29fc462263
Clarify warning about unknown articles in Gnus
...
* lisp/gnus/gnus-sum.el (gnus-summary-mark-article-as-unread)
(gnus-mark-article-as-unread): Clarify warning (bug#34990).
2019-07-09 18:45:18 +02:00
Lars Ingebrigtsen
2e4b885478
Don't try to save articles in Gnus that have disappeared
...
* lisp/gnus/gnus-sum.el (gnus-summary-save-article): Stop trying
to save articles if the articles have disappeared (bug#35188).
2019-07-09 18:44:43 +02:00
Mattias Engdegård
a9d6ba49d5
Rename font_driver member close -> close_font
...
* src/alloc.c (cleanup_vector):
* src/xftfont.c (xftfont_driver):
* src/xfont.c (xfont_driver):
* src/nsfont.m (nsfont_driver):
* src/macfont.m (macfont_driver):
* src/ftxfont.c (ftxfont_driver):
* src/ftfont.c (ftfont_driver):
* src/ftcrfont.c (ftcrfont_driver):
* src/font.h (struct font_driver):
* src/font.c (font_clear_cache, font_close_object):
Rename `close' member to `close_font', to avoid clash with preprocessor
define of `close' in nt/inc/ms-w32.h and for consistency with `open_font'.
2019-07-09 18:40:57 +02:00
Lars Ingebrigtsen
1ffa65cea5
Mention call-process-region' in the call-process' doc string
...
* src/callproc.c (Fcall_process): Mention `call-process-region'
(bug#35187).
2019-07-09 18:00:52 +02:00
Mattias Engdegård
ec72340647
Rename font_driver member open -> open_font
...
* src/xftfont.c (xftfont_driver):
* src/xfont.c (xfont_driver):
* src/nsfont.m (nsfont_driver):
* src/macfont.m (macfont_driver):
* src/ftxfont.c (ftxfont_driver):
* src/ftfont.c (ftfont_driver):
* src/ftcrfont.c (ftcrfont_driver):
* src/font.h (struct font_driver):
* src/font.c (font_open_entity):
Rename `open' member to `open_font', to avoid clash with preprocessor
define of `open' in lib/fcntl.h and nt/inc/ms-w32.h. Remove earlier
#undef hack.
2019-07-09 17:34:44 +02:00
Lars Ingebrigtsen
1a1b5f9802
Add a really simple nadvice example
...
* doc/lispref/functions.texi (Advising Functions): Add a really
trivial and simple example (bug#35250).
2019-07-09 17:13:54 +02:00
Lars Ingebrigtsen
f3bd296a3e
Make two variables for extended command suggestions mention each other
...
* lisp/simple.el (suggest-key-bindings):
(extended-command-suggest-shorter): Mention each other, because
they are vaguely related (bug#35309).
2019-07-09 17:13:54 +02:00
Lars Ingebrigtsen
c9142f414b
Make the manual say what undo-auto-amalgamate does
...
* doc/lispref/text.texi (Undo): Say what undo-auto-amalgamate does
in addition to describing what amalgamation is (bug#35344).
2019-07-09 17:13:54 +02:00
Eli Zaretskii
93bd422ece
Unbreak the MS-Windows build
...
* src/font.c (open): Don't undef on WINDOWSNT, as ms-w32.h
redirects it to sys_open.
2019-07-09 18:04:29 +03:00
Lars Ingebrigtsen
ed133a0970
.har files are JSON files
...
* lisp/files.el (auto-mode-alist): Map .har files to
javascript-mode (bug#35407).
2019-07-09 16:34:20 +02:00
Ryan Brown
d34bfbc09c
Fix for lisp tagbody indentation
...
* lisp/emacs-lisp/cl-indent.el (lisp-indent-259): Indent PROG
better (bug#36552).
2019-07-09 15:51:50 +02:00
Lars Ingebrigtsen
0947c44306
Add more quote-end characters to sentence-end-base
...
* lisp/textmodes/paragraphs.el (sentence-end-base): Add › and »
(bug#36359).
2019-07-09 15:38:26 +02:00
Stefan Monnier
2391a8e24f
* lisp/progmodes/verilog-mode.el: Update Version:
2019-07-09 09:30:49 -04:00
Stefan Monnier
cdaa41ad92
Merge branch 'emacs-26' into trunk
2019-07-09 09:29:16 -04:00
Stefan Monnier
7d6eeef682
* lisp/progmodes/verilog-mode.el: One more ELPA Version:
2019-07-09 09:27:07 -04:00
Mattias Engdegård
fdea0e602b
Repair macOS build
...
Avoid macro redefinition of `open' in lib/fcntl.h to break use of it as
a struct member in src/font.c.
* src/font.c: #undef open
2019-07-09 13:38:10 +02:00
Glenn Morris
95dce77c5e
Conditionalize result of a bytecomp test
...
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-test--switch-duplicates):
Apparently the result depends on byte-compile-cond-use-jump-table.
2019-07-09 03:27:26 -07:00