]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoAdd a test for byte-compilation scratch/shorthand-namespacing
João Távora [Mon, 21 Sep 2020 15:58:46 +0000 (16:58 +0100)]
Add a test for byte-compilation

* test/lisp/progmodes/elisp-mode-tests.el
(elisp-shorthand-byte-compile-a-file): New test.
(elisp-shorthand-load-a-file): Simplify.

3 years agoShoosh byte-compiler in test/lisp/progmodes/elisp-mode-tests
João Távora [Mon, 21 Sep 2020 14:52:49 +0000 (15:52 +0100)]
Shoosh byte-compiler in test/lisp/progmodes/elisp-mode-tests

* test/lisp/progmodes/elisp-mode-tests.el (xref-elisp-generic-no-default)
(xref-elisp-generic-co-located-default)
(xref-elisp-generic-separate-default): Prefix local arguments with _.

3 years agoIntegrate shorthand functionality into elisp-mode.el
João Távora [Sun, 20 Sep 2020 20:21:32 +0000 (21:21 +0100)]
Integrate shorthand functionality into elisp-mode.el

Also rename the main variable to elisp-shorthands, from the
silly pleonastic shorthand-shorthands.

For some reason, I had to stick the new source-file loading functions
in lisp/international/mule.el, otherwise lisp/loadup.el wouldn't see
them.  This should probably be fixed.

* lisp/shorthand.el: Remove.

* lisp/progmodes/elisp-mode.el (elisp--shorthand-load-wrapper):
Move here.

* src/lread.c (oblookup_considering_shorthand, syms_of_lread):
Rename variable elisp-shorthand, from shorthand-shorthands.

* test/lisp/shorthand-tests.el: Remove.

* test/lisp/progmodes/elisp-mode-tests.el (elisp-shorthand-read-buffer)
(elisp-shorthand-read-from-string)
(elisp-shorthand-load-a-file): New tests.

* test/lisp/progmodes/elisp-resources/simple-shorthand-test.el: New file

* lisp/loadup.el (load-source-file-function): Set to
  load-with-shorthands-and-code-conversion.

* lisp/international/mule.el (hack-elisp-shorthands): Move here.
(load-with-shorthands-and-code-conversion): And here.

4 years agoRobustify checking of shorthand-shorthands
João Távora [Sun, 20 Sep 2020 11:01:05 +0000 (12:01 +0100)]
Robustify checking of shorthand-shorthands

* src/lread.c (oblookup_considering_shorthand): Maybe warn when we
find fishy shorthand-shorthands.

4 years agoMove most of the shorthand implementation to C code
João Távora [Sat, 19 Sep 2020 21:16:38 +0000 (22:16 +0100)]
Move most of the shorthand implementation to C code

This very likely isn't the final form of the implementation.  For one,
the reader is much slower and allocates a Lisp string for every atom
read, regardless if its already interned or not, which perhaps has the
potential to be catastrophic in terms of GC.

But it passes the tests.

The solution to this, is probably to simplify the semantics of
shorthand-shorthands.  Instead of making it a regexp-to-longhand
alist, make it just prefix-to-longhand.  Then we wouldn't need to call
Fstring_match in oblookup_considering_shorthand, meaning we wouldn't
need a Lisp string there.

* lisp/shorthand.el (shorthand-shorthands): Move to C code.
(shorthand--expand-shorthand): Remove.
(shorthand-read-wrapper): Remove.
(shorthand-intern-soft-wrapper): Remove.
(read, intern-soft): No longer advise.

* src/lread.c:
(read1, Fintern, Fintern_soft, Funintern): Use
oblookup_considering_shorthand.
(oblookup_considering_shorthand): New helper.
(syms_of_lread): Declare shorthand-shorthands.

4 years agoFirst Elisp version of lisp/shorthand.el, failing some tests
João Távora [Wed, 26 Aug 2020 20:29:15 +0000 (21:29 +0100)]
First Elisp version of lisp/shorthand.el, failing some tests

* lisp/shorthand.el: New file

* test/lisp/shorthand-tests.el: New file

4 years agoDon't let docless variables hide function signature
João Távora [Sun, 16 Aug 2020 18:03:37 +0000 (19:03 +0100)]
Don't let docless variables hide function signature

In Elisp mode, ElDoc will try the variable's docstring first, then the
function signature.  If the former doesn't have one, don't hide the
latter.

* lisp/progmodes/elisp-mode.el (elisp-eldoc-var-docstring): If no
symbol docstring, don't declare any.

4 years agoAdd new option flyspell-correct-on-mouse-3
Stefan Kangas [Sat, 15 Aug 2020 00:53:35 +0000 (02:53 +0200)]
Add new option flyspell-correct-on-mouse-3

* lisp/textmodes/flyspell.el
(flyspell-correct-on-mouse-3): New option to bind
'flyspell-correct-word' to 'mouse-3'.
(flyspell--set-correct-on-mouse-3): New function to update option.
(flyspell-mode): Update 'flyspell-mouse-map' if above option is
set.
* doc/emacs/fixit.texi (Spelling): Mention the new option.
* etc/NEWS: Announce the new option.

4 years agoRemove redundant :group args from flyspell.el
Stefan Kangas [Sat, 15 Aug 2020 00:43:17 +0000 (02:43 +0200)]
Remove redundant :group args from flyspell.el

* lisp/textmodes/flyspell.el: Remove redundant :group args.

4 years agoMark XEmacs compat alias as obsolete
Stefan Kangas [Sat, 15 Aug 2020 02:55:35 +0000 (04:55 +0200)]
Mark XEmacs compat alias as obsolete

* lisp/subr.el (user-original-login-name): Mark as obsolete.  This
XEmacs compat alias was obsoleted even by XEmacs, so there is no point
in keeping it around.

4 years agoSet the current buffer in esh-mode before running filter functions
Steven Allen [Sun, 16 Aug 2020 12:31:27 +0000 (14:31 +0200)]
Set the current buffer in esh-mode before running filter functions

* lisp/eshell/esh-mode.el: (eshell-output-filter): Match
current-buffer behavior of comint-output-filter (bug#42870).

This change (a) sets the current buffer to the process-buffer when
invoking preoutput filter functions and (b) only invokes them when the
process-buffer is live. Otherwise, the preoutput filter functions be
invoked in whatever buffer happens to be focused, breaking hooks that
read buffer-local variables.

4 years agoStop using calc for ntlm time computation
Mattias Engdegård [Sun, 16 Aug 2020 09:06:45 +0000 (11:06 +0200)]
Stop using calc for ntlm time computation

* lisp/net/ntlm.el: Don't require calc.
(ntlm-compute-timestamp): Use plain arithmetic instead of calc.
(ntlm--time-to-timestamp): New helper function.

4 years ago* lisp/net/eudc-bob.el (eudc-bob-pipe-object-to-external-program): Simplify
Stefan Monnier [Sun, 16 Aug 2020 02:44:16 +0000 (22:44 -0400)]
* lisp/net/eudc-bob.el (eudc-bob-pipe-object-to-external-program): Simplify

Use `with-temp-buffer`.

4 years ago* lisp/net/eudc-bob.el: Use lexical-binding; Misc simplifications
Stefan Monnier [Sat, 15 Aug 2020 21:30:11 +0000 (17:30 -0400)]
* lisp/net/eudc-bob.el: Use lexical-binding; Misc simplifications

(eudc-bob-generic-keymap, eudc-bob-image-keymap)
(eudc-bob-sound-keymap, eudc-bob-url-keymap, eudc-bob-mail-keymap):
Move initialization into declaration.  Use RET rather than `return`.
(eudc-jump-to-event): Delete; use `mouse-set-point` instead.
(eudc-bob-save-object): Rewrite using `write-region`.
(eudc-bob-popup-menu): Use `popup-menu`.

4 years agoFix recently-introduced Fdelete bug
Paul Eggert [Sat, 15 Aug 2020 19:32:56 +0000 (12:32 -0700)]
Fix recently-introduced Fdelete bug

Problem reported by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2020-08/msg00444.html
* src/fns.c (Fdelete): Fix correctness bug via a simpler (though more
memory-intensive) approach.  It’s probably not worth optimizing
the memory usage yere.
* test/src/fns-tests.el (test-vector-delete): Add test for the bug.

4 years agoMinimize ‘equal’ calls in (delete x vector)
Paul Eggert [Sat, 15 Aug 2020 17:48:37 +0000 (10:48 -0700)]
Minimize ‘equal’ calls in (delete x vector)

* src/fns.c (Fdelete): When deleting from a vector, call Fequal
only once per vector element.  This is faster when Fequal is slow,
and avoids the need to preinitialize the vector result.  Finish
when the result is exhausted, not when the input is exhausted;
the two are equivalent but the former may be faster.
* test/src/fns-tests.el (test-vector-delete): New test.

4 years agoFdelete speed tweak for strings
Paul Eggert [Sat, 15 Aug 2020 17:48:37 +0000 (10:48 -0700)]
Fdelete speed tweak for strings

* src/fns.c (Fdelete): Hoist FIXNUMP out of a loop,
and turn it into CHARACTERP.

4 years agoPrefer Fvector to make_uninit_vector
Paul Eggert [Sat, 15 Aug 2020 17:48:36 +0000 (10:48 -0700)]
Prefer Fvector to make_uninit_vector

Fvector is less error-prone than make_uninit_vector, as it
avoids the possibility of a GC crash due to an uninitialized
vector.  So prefer Fvector to make_uninit_vector when this is
easy (and when there's no significant performance difference).
Inspired by a suggestion by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2020-08/msg00313.html
* src/ccl.c (Fregister_ccl_program):
* src/ccl.c (Fregister_ccl_program):
* src/charset.c (Fdefine_charset_internal):
* src/font.c (Fquery_font, Ffont_info, syms_of_font):
* src/fontset.c (font_def_new, Fset_fontset_font):
* src/ftfont.c (ftfont_shape_by_flt):
* src/hbfont.c (hbfont_shape):
* src/macfont.m (macfont_shape):
* src/search.c (Fnewline_cache_check):
* src/xfaces.c (Fx_family_fonts):
* src/xfns.c (Fx_window_property_attributes):
Prefer Fvector to make_uninit_vector when either is easy.
* src/fontset.c (font_def_new): Now a function with one less
arg instead of a do-while macro, and renamed from FONT_DEF_NEW.
All uses changed.

4 years agoFix GC bugs related to uninitialized vectors
Paul Eggert [Sat, 15 Aug 2020 17:48:36 +0000 (10:48 -0700)]
Fix GC bugs related to uninitialized vectors

Avoid problems if GC occurs while initializing a vector.
Problem with Fdelete reported by Pip Cet in:
https://lists.gnu.org/r/emacs-devel/2020-08/msg00313.html
I looked for similar problems elsewhere and found quite a few.
* src/coding.c (make_subsidiaries):
* src/composite.c (syms_of_composite):
* src/font.c (build_style_table, Ffont_get_glyphs):
* src/nsselect.m (clean_local_selection_data):
* src/nsxwidget.m (js_to_lisp):
* src/syntax.c (init_syntax_once):
* src/window.c (Fcurrent_window_configuration):
* src/xselect.c (selection_data_to_lisp_data)
(clean_local_selection_data):
Use make_nil_vector instead of make_uninit_vector.
* src/fns.c (Fdelete):
* src/xwidget.c (webkit_js_to_lisp):
Use allocate_nil_vector instead of allocate_vector.
* src/search.c (Fnewline_cache_check):
Use make_vector instead of make_uninit_vector.

4 years agoAllow build configuration on Apple ARM devices (bug#41994)
Roland Kaufmann [Thu, 27 Dec 2018 14:51:49 +0000 (15:51 +0100)]
Allow build configuration on Apple ARM devices (bug#41994)

* configure.ac: Add arm as a port target for Darwin.

Copyright-paperwork-exempt: yes

4 years agoAdd new variable term-set-terminal-size (not setting LINES/COLUMNS)
Lars Ingebrigtsen [Sat, 15 Aug 2020 12:35:16 +0000 (14:35 +0200)]
Add new variable term-set-terminal-size (not setting LINES/COLUMNS)

* lisp/term.el (term-set-terminal-size): New variable (bug#37564).
(term-exec-1): Use it.  Based on a patch from Matthew Leach
<matthew@mattleach.net>.

4 years agoMake Gnus stop clobbering the M-s search prefix key binding
Lars Ingebrigtsen [Sat, 15 Aug 2020 12:20:02 +0000 (14:20 +0200)]
Make Gnus stop clobbering the M-s search prefix key binding

* doc/emacs/misc.texi (Gnus Summary Buffer): Ditto.

* doc/misc/gnus.texi (Searching for Articles): Document moved M-s
(bug#39706).

* lisp/gnus/gnus-sum.el (gnus-summary-mode-map): Move
gnus-summary-search-article-forward to M-s M-s, and add M-s M-r
for gnus-summary-search-article-backward.

4 years agoFix thinko in setting url-portspec
Steven Allen [Sat, 15 Aug 2020 11:37:38 +0000 (13:37 +0200)]
Fix thinko in setting url-portspec

* lisp/url/url-expand.el (url-default-expander): Set
`url-portspec' (bug#42869).

4 years agoTweak how ido handles killing virtual buffers
Dario Gjorgjevski [Sat, 15 Aug 2020 10:33:37 +0000 (12:33 +0200)]
Tweak how ido handles killing virtual buffers

* lisp/ido.el (ido-buffer-internal): Handle killing of virtual buffers
as a special case.
(ido-visit-buffer): Document the special case (bug#38294).

4 years agoDon't wrap lines at NBSP when nobreak-char-display is t
Eli Zaretskii [Sat, 15 Aug 2020 10:23:58 +0000 (13:23 +0300)]
Don't wrap lines at NBSP when nobreak-char-display is t

* src/xdisp.c (get_next_display_element): When
nobreak-char-display is t, display NBSP and non-ASCII hyphens as
themselves, not as their ASCII counterparts, just with the
nobreak-space/nobreak-hyphen face.  (Bug#42811)

4 years agoAdd support for ffap guessing at file names containing spaces
Jari Aalto [Sat, 15 Aug 2020 10:11:41 +0000 (12:11 +0200)]
Add support for ffap guessing at file names containing spaces

* lisp/ffap.el (ffap-file-name-with-spaces): New variable (bug#8439).
(ffap-search-backward-file-end, ffap-search-forward-file-end)
(ffap-dir-separator-near-point): New functions.
(ffap-string-at-point): Use the variable and the new functions to
guess at files containing strings.

4 years agoPacify Apple clang 11 __builtin_assume
Paul Eggert [Sat, 15 Aug 2020 02:29:14 +0000 (19:29 -0700)]
Pacify Apple clang 11 __builtin_assume

Problem reported by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2020-08/msg00300.html
* src/lisp.h (bool_vector_bitref, bool_vector_set):
Use eassert instead of eassume for bool_vector_size checks.

4 years agoAdd `message' to erc-match.el highlight types
Amin Bandali [Sat, 15 Aug 2020 01:54:48 +0000 (21:54 -0400)]
Add `message' to erc-match.el highlight types

* lisp/erc/erc-match.el (erc-current-nick-highlight-type,
erc-pal-highlight-type, erc-fool-highlight-type,
erc-keyword-highlight-type, erc-dangerous-host-highlight-type): Add
`message' type for highlighting the entire message but not the
sender's nick.
(erc-match-message): Check for the new `message' highlight type and
propertize the message (not including the nick) accordingly.
* etc/NEWS: Announce the addition of the `message' highlight type.

4 years agoFix bus error on Debian bullseye
Paul Eggert [Fri, 14 Aug 2020 21:33:21 +0000 (14:33 -0700)]
Fix bus error on Debian bullseye

Problem reported by Lars Ingebrigtsen, and problem diagnosis
and most of this patch by Pip Cet (Bug#42832).
* src/pdumper.c (dump_bitsets_init): Rename from dump_bitset_init.
All callers changed.  Initialize two bitsets with a single malloc
call.
(struct pdumper_loaded_dump_private): New member last_mark_bits.
(pdumper_find_object_type_impl): Return PDUMPER_NO_OBJECT if
the last_mark_bits’ bit is clear.
(pdumper_set_marked_impl): Assert that the last_mark_bits’
bit is set.
(pdumper_clear_marks_impl): Save mark_bits into
last_mark_bits before clearing mark_bits.
Co-authored-by: Pip Cet <pipcet@gmail.com>
4 years ago; Touch up last two changes to etc/NEWS
Basil L. Contovounesios [Fri, 14 Aug 2020 22:32:48 +0000 (23:32 +0100)]
; Touch up last two changes to etc/NEWS

4 years ago; Change phrasing according to the rename
Dmitry Gutov [Fri, 14 Aug 2020 20:33:03 +0000 (23:33 +0300)]
; Change phrasing according to the rename

4 years agoRemove XEmacs compat code from mwheel.el
Stefan Kangas [Fri, 14 Aug 2020 17:29:24 +0000 (19:29 +0200)]
Remove XEmacs compat code from mwheel.el

* lisp/mwheel.el (mwheel-event-button, mwheel-event-window):
Remove XEmacs compat code.

4 years agoMake configure say so if we have "--with-json" but no jansson support
Noam Postavsky [Fri, 14 Aug 2020 17:31:16 +0000 (19:31 +0200)]
Make configure say so if we have "--with-json" but no jansson support

* configure.ac (OPTION_DEFAULT_IFAVAILABLE): New macro.  Use it to
define the --with-json option.  Add with_json and HAVE_JSON to the
'MISSING' checks (bug#39953).

4 years agoMop up project-kill-buffers-ignores renaming
Lars Ingebrigtsen [Fri, 14 Aug 2020 17:03:52 +0000 (19:03 +0200)]
Mop up project-kill-buffers-ignores renaming

* doc/emacs/maintaining.texi (Project Buffer Commands): Update
project-kill-buffers-ignores that was renamed recently
(bug#41868) (in 2ab66c9f9be923350f123fdea05b5b3ce8283d8a).

4 years agoAdd two new commands for centering doc-view images
Yuan Fu [Fri, 14 Aug 2020 15:43:03 +0000 (17:43 +0200)]
Add two new commands for centering doc-view images

* lisp/doc-view.el (doc-view-mode-map): Add binding for centering
commands.
(doc-view-center-page-horizontally, doc-view-center-page-vertically):
New functions (bug#42272).

4 years agoFix visual fringe glitch in diff-mode
Gregory Heytings [Fri, 14 Aug 2020 15:32:23 +0000 (17:32 +0200)]
Fix visual fringe glitch in diff-mode

* lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix problems
with visual gaps in the fringes when changing font size (bug#42300).

Copyright-paperwork-exempt: yes

4 years agoComment to postpone deletion of c-subword-mode
Stefan Kangas [Fri, 14 Aug 2020 14:47:57 +0000 (16:47 +0200)]
Comment to postpone deletion of c-subword-mode

* lisp/progmodes/subword.el (c-subword-mode): Clarify that this
obsolete function alias should not be removed just yet.  There is a
copy of this definition in cc-cmds.el, obsolete since 24.3, and it is
better to delete both at the same time.

4 years ago* lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): Bug#42168
Stefan Monnier [Fri, 14 Aug 2020 14:58:00 +0000 (10:58 -0400)]
* lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): Bug#42168

* test/lisp/progmodes/cperl-mode-tests.el: Adjust for `perl-mode`.
(cperl-test-ppss): Rename from `cperl-test-face` and change return value.
(cperl-mode-test-bug-42168): Test the `syntax-ppss` state rather than
the font-lock faces, so it works for both `perl-mode` and `cperl-mode`.

4 years agoMake sure we only act on edited widgets in Custom-save
Mauro Aranda [Fri, 14 Aug 2020 14:40:40 +0000 (16:40 +0200)]
Make sure we only act on edited widgets in Custom-save

* lisp/cus-edit.el (Custom-save): Only act on edited widgets in the
buffer.  If we attempt to redraw all widgets, we confuse
custom-variable-modified-p, or we end up drawing State buttons for
all options, including the hidden ones (bug#42801).

4 years agoParse the whole buffer at once in compile.el
Jonas Bernoulli [Fri, 14 Aug 2020 14:18:01 +0000 (16:18 +0200)]
Parse the whole buffer at once in compile.el

* lisp/progmodes/compile.el (compilation-next-single-property-change):
Parse whole buffer at once (bug#42806).

Also remove the comment that mentioned that it is an option to do it
in one go as we now actually start doing.  As the existence of that
comment suggested, there is not really a reason to process the buffer
in small chunks.  On the contrary, processing the output in arbitrary
units can result in certain constructs not being recognized because
they begin in one arbitrary chunk, while ending in another.

4 years agoUnbreak project-find-regexp in Emacs 26.3 (bug#42765)
Dmitry Gutov [Fri, 14 Aug 2020 07:20:04 +0000 (10:20 +0300)]
Unbreak project-find-regexp in Emacs 26.3 (bug#42765)

* lisp/progmodes/project.el: Depend on xref.  Bump the version.

* lisp/progmodes/xref.el: Remove 'project' from the list of
dependencies.  Depending on Emacs 26.3 already ensures that some
version is available.  Bump the version.
(xref--process-file-region): Move from project.el with a rename.
Update the sole caller.
(xref-backend-references): Make compatible with old project.el.
Update the docstring.

4 years agoFix flow filling for flowing multiple flowed lines
Ferdinand Pieper [Fri, 14 Aug 2020 14:15:08 +0000 (16:15 +0200)]
Fix flow filling for flowing multiple flowed lines

* lisp/mail/flow-fill.el (fill-flowed): Loop until all flowed lines
are collected.
* test/lisp/mail/flow-fill-tests.el
(fill-flow-tests-fill-flowed-decode): Also test for multiple
flowed lines (bug#42855).

4 years ago* doc/lispref/searching.texi (Regexp Special): Tweak wording
Stefan Monnier [Fri, 14 Aug 2020 14:03:50 +0000 (10:03 -0400)]
* doc/lispref/searching.texi (Regexp Special): Tweak wording

4 years agoAllow doc-view.el to rescale without imagemagick support
Yuan Fu [Fri, 14 Aug 2020 11:53:09 +0000 (13:53 +0200)]
Allow doc-view.el to rescale without imagemagick support

* lisp/doc-view.el (doc-view-mode-p, doc-view-enlarge)
(doc-view-scale-reset, doc-view-insert-image): Remove checks for
imagemagick (bug#42272) -- Emacs can rescale images without imagemagick.

4 years agoChange icomplete-show-matches-on-no-input behavior
Lars Ingebrigtsen [Fri, 14 Aug 2020 11:29:52 +0000 (13:29 +0200)]
Change icomplete-show-matches-on-no-input behavior

* lisp/icomplete.el (icomplete-show-matches-on-no-input): Doc fix.
(icomplete-completions): Set completion-content-when-empty.

* lisp/minibuffer.el (completion-content-when-empty): New variable.
(completion--complete-and-exit): Use it (bug#19032).

Based on a patch by Matthew Leach <matthew@mattleach.net>.

4 years agoRemove Emacs 22 compat code from semantic
Stefan Kangas [Fri, 14 Aug 2020 11:03:42 +0000 (13:03 +0200)]
Remove Emacs 22 compat code from semantic

* lisp/cedet/semantic/bovine/c.el (semantic-c-end-of-macro):
Make into obsolete function alias for 'c-end-of-macro'.
(semantic-lex-cpp-define, semantic-lex-c-macrobits):
* lisp/cedet/semantic/lex-spp.el (semantic-lex-spp-paren-or-list):
Adjust callers.

4 years agoMake Emacs 20 compat code in derived.el obsolete
Stefan Kangas [Fri, 14 Aug 2020 10:45:23 +0000 (12:45 +0200)]
Make Emacs 20 compat code in derived.el obsolete

* lisp/emacs-lisp/derived.el (derived-mode-setup-function-name):
Declare obsolete.  This was for compatibility with Emacs 20 or older.

4 years agoRemove many items obsolete since Emacs 23.1
Stefan Kangas [Sat, 16 May 2020 12:16:24 +0000 (14:16 +0200)]
Remove many items obsolete since Emacs 23.1

Emacs 23.1 was five major releases and over a decade ago.
This list can be reviewed before to the next release, but for now
hopefully this motivates any needed external updates.
Ref: https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg02198.html

* lisp/abbrev.el (pre-abbrev-expand-hook):
* lisp/bookmark.el (bookmark-read-annotation-text-func)
(bookmark-jump-noselect):
* lisp/buff-menu.el (buffer-menu-mode-hook):
* lisp/cus-edit.el (custom-mode-hook, custom-mode):
* lisp/dirtrack.el (dirtrack-debug-toggle, dirtrack-debug):
* lisp/emacs-lisp/crm.el (crm-minibuffer-complete)
(crm-minibuffer-completion-help)
(crm-minibuffer-complete-and-exit):
* lisp/emacs-lisp/easymenu.el
(easy-menu-precalculate-equivalent-keybindings):
* lisp/emacs-lisp/lisp-mode.el (lisp-mode-auto-fill):
* lisp/epa.el (epa-display-verify-result):
* lisp/epg.el (epg-passphrase-callback-function):
* lisp/eshell/eshell.el (eshell-report-bug):
* lisp/ffap.el (ffap-bug, ffap-submit-bug):
* lisp/files.el (locate-file-completion):
* lisp/hi-lock.el (hi-lock-face-history, hi-lock-regexp-history):
* lisp/hilit-chg.el (highlight-changes-initial-state)
(highlight-changes-active-string)
(highlight-changes-passive-string, global-highlight-changes):
* lisp/international/mule-cmds.el (nonascii-insert-offset)
(nonascii-translation-table):
* lisp/international/mule-diag.el (non-iso-charset-alist):
* lisp/international/mule-util.el (detect-coding-with-priority):
* lisp/international/mule.el (charset-id, charset-bytes)
(charset-list, char-valid-p, generic-char-p)
(char-coding-system-table, make-coding-system)
(set-coding-priority)
* lisp/mail/rmail.el (rmail-message-filter):
* lisp/minibuffer.el (complete-in-turn, dynamic-completion-table)
(completion-common-substring)
(minibuffer-local-must-match-filename-map):
* lisp/mouse.el (mouse-major-mode-menu, mouse-popup-menubar)
(mouse-popup-menubar-stuff):
* lisp/net/newst-treeview.el (newsticker-groups-filename):
* lisp/obsolete/tpu-edt.el (tpu-have-ispell, GOLD-map):
* lisp/password-cache.el (password-read-and-add):
* lisp/shell.el (shell-dirtrack-toggle):
* lisp/subr.el (forward-point, redisplay-end-trigger-functions)
(process-filter-multibyte-p, set-process-filter-multibyte):
* lisp/t-mouse.el (t-mouse-mode):
* lisp/term/w32-win.el (w32-focus-frame, w32-select-font):
* lisp/textmodes/ispell.el (ispell-aspell-supports-utf8):
* lisp/textmodes/remember.el (remember-buffer):
* lisp/tooltip.el (tooltip-hook):
* lisp/url/url-util.el (url-generate-unique-filename):
* lisp/url/url-vars.el (url-temporary-directory):
* lisp/vc/vc-hooks.el (vc-workfile-version)
(vc-default-working-revision):
* lisp/vc/vc-mtn.el (vc-mtn-command):
* lisp/vc/vc.el (vc-revert-buffer):
* lisp/vcursor.el (vcursor-toggle-vcursor-map):
Remove items, obsolete since Emacs 23.1.
* lisp/abbrev.el (expand-abbrev):
* lisp/epg.el (epg-context): Change
'epg-passphrase-callback-function' call to 'epa-' alternative.
* lisp/eshell/em-rebind.el (eshell-cannot-leave-input-list): Don't
refer to removed function 'forward-point'.
* test/manual/etags/c-src/abbrev.c (Fexpand_abbrev):
(syms_of_abbrev): Don't run removed hook 'pre-abbrev-expand-hook'.
* lisp/international/mule.el (transform-make-coding-system-args):
Declare obsolete.
* lisp/progmodes/idlwave.el:
Update reference to removed function 'char-valid-p'.
* lisp/gnus/mml2015.el (epg-encrypt-string):
* lisp/gnus/mml1991.el (epg-make-context):
* lisp/gnus/mml-smime.el (autoload):
Remove autoload of removed 'epg-passphrase-callback-function'.
* lisp/minibuffer.el (completion-extra-properties):
Remove support for `completion-common-substring'.
* lisp/obsolete/tpu-edt.el (tpu-toggle-overwrite-mode)
Remove support for removed `spell' package.
* src/coding.c (syms_of_coding):
* doc/misc/efaq.texi:
* doc/emacs/frames.texi (Menu Mouse Clicks):
* doc/misc/url.texi (Customization): Doc fixes.
; * etc/NEWS: List removed items.

4 years agoRevert "Preserve the face foreground in Info-fontify-node"
Lars Ingebrigtsen [Fri, 14 Aug 2020 09:49:05 +0000 (11:49 +0200)]
Revert "Preserve the face foreground in Info-fontify-node"

This reverts commit 1bed252ae9109493133a0cc3e9aad9e9a5ddde37.

Juri Linkov says:

This patch breaks Info fontification, please revert it.
Here is what I said in the message sent later with another patch at
https://debbugs.gnu.org/14645#14

  Using the text property `face' instead of `font-lock-face'
  might break something, so a better patch below removes
  the text properties `face info-index-match' from the Info buffer

4 years agoAdd test for Bug#41761
Stefan Kangas [Fri, 14 Aug 2020 09:37:48 +0000 (11:37 +0200)]
Add test for Bug#41761

* test/lisp/simple-tests.el (simple-test-count-words-bug-41761):
New test.

4 years agoDon't stop at field boundaries when counting words (Bug#41761)
Daniel Koning [Wed, 10 Jun 2020 19:42:39 +0000 (14:42 -0500)]
Don't stop at field boundaries when counting words (Bug#41761)

* lisp/simple.el (count-words): Ensure that `forward-word-strictly'
moves point from one field to the next during the word-counting loop.

Copyright-paperwork-exempt: yes

4 years agocperl-mode: Highlight '{$a++ / $b}' correctly
Harald Jörg [Fri, 14 Aug 2020 08:01:30 +0000 (10:01 +0200)]
cperl-mode: Highlight '{$a++ / $b}' correctly

* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres):
Recognize {$a++ / $b} correctly as division.  (Bug#42168)
* test/lisp/progmodes/cperl-mode-tests.el: New file with test
verifying the fix.

4 years agoMake erc-compat.el obsolete
Stefan Kangas [Wed, 12 Aug 2020 17:32:52 +0000 (19:32 +0200)]
Make erc-compat.el obsolete

* lisp/erc/erc-compat.el: Move from here...
* lisp/obsolete/erc-compat.el: ...to here.
* lisp/erc/erc-backend.el:
* lisp/erc/erc-pcomplete.el:
* lisp/erc/erc-stamp.el:
* lisp/erc/erc-track.el:
* lisp/erc/erc.el: Don't require 'erc-compat'.

* lisp/erc/erc-backend.el (erc-decode-string-from-target):
* lisp/erc/erc-dcc.el (pcomplete/erc-mode/DCC):
* lisp/erc/erc-fill.el (erc-fill-mode):
* lisp/erc/erc-goodies.el (erc-controls-interpret):
* lisp/erc/erc-log.el (erc-log-setup-logging):
* lisp/erc/erc-notify.el (erc-notify-QUIT):
* lisp/erc/erc.el (erc-startup-file-list, define-erc-module)
(erc-canonicalize-server-name, erc-cmd-SV, erc-banlist-update)
(erc-group-list, erc-seconds-to-string): Adjust callers.
* lisp/erc/erc.el: Require cl-lib and format-spec.

* etc/NEWS: Add entry announcing erc-compat.el being marked as
obsolete.

4 years agoUpdate from Gnulib
Paul Eggert [Thu, 13 Aug 2020 22:49:43 +0000 (15:49 -0700)]
Update from Gnulib

This incorporates:
2020-08-13 sys_random: Work around an uClibc bug
* lib/sys_random.in.h, m4/getrandom.m4, m4/sys_random_h.m4:
Copy from Gnulib.

4 years agoAdd tests for cl-{incf,decf}
Stefan Kangas [Thu, 13 Aug 2020 20:02:18 +0000 (22:02 +0200)]
Add tests for cl-{incf,decf}

* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-test-incf)
(cl-lib-test-decf): New tests.

4 years ago; Touch up last term.el-related changes
Basil L. Contovounesios [Thu, 13 Aug 2020 16:28:21 +0000 (17:28 +0100)]
; Touch up last term.el-related changes

4 years agoFix slow down when moving between monitors (bug#42834)
Alan Third [Thu, 13 Aug 2020 18:00:41 +0000 (19:00 +0100)]
Fix slow down when moving between monitors (bug#42834)

* src/nsterm.m ([EmacsView windowDidChangeBackingProperties:]):
Recreate the buffer every time.

4 years agoHandle nil load-path element in read-library-name
Tobias Zawada [Thu, 13 Aug 2020 16:42:28 +0000 (18:42 +0200)]
Handle nil load-path element in read-library-name

* lisp/emacs-lisp/find-func.el (read-library-name): Fix handling of
nil 'load-path' element.  (Bug#41998)

Copyright-paperwork-exempt: yes

4 years agoUpdate a paragraphs test
Glenn Morris [Thu, 13 Aug 2020 15:38:02 +0000 (16:38 +0100)]
Update a paragraphs test

* test/lisp/textmodes/paragraphs-tests.el
(paragraphs-tests-mark-paragraph): Update for recent change.

4 years agoUpdate a compile test
Glenn Morris [Thu, 13 Aug 2020 15:36:09 +0000 (16:36 +0100)]
Update a compile test

* test/lisp/progmodes/compile-tests.el (compile-test-error-regexps):
Update info/warning count for recent compile.el change.

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

69568674b3 (origin/emacs-27) Improve documentation of function argume...
1c0bc1ccd8 Improve documentation of special events

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

The following commits were skipped:

c9a739408d Fix face merging at EOL when inherited face specifies :extend
f946e48bf5 Fix face extension past EOL in overlay strings

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

63f614d76c Fix comint-redirect-results-list regexp usage (Bug#42662)

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

The following commit was skipped:

6dada01015 ; Bump Emacs version to 27.1.50

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

86d8d76aa3 (tag: emacs-27.1-rc2, tag: emacs-27.1) ; lisp/ldefs-boot.e...
a6634197da * etc/HISTORY: Update the Emacs 27.1 release date.
a68b3f761a ; Update ChangeLog.3
7cc85e7b51 ; Update etc/AUTHORS
1ca4da054b ; * etc/NEWS: fix some quoting
5578febcd4 ; * lisp/so-long.el: Documentation
fa20e443c8 lisp/so-long.el: Improve support for major mode hooks

# Conflicts:
# etc/AUTHORS
# etc/NEWS

4 years agoImprove documentation of function argument lists
Eli Zaretskii [Thu, 13 Aug 2020 14:08:37 +0000 (17:08 +0300)]
Improve documentation of function argument lists

* doc/lispref/functions.texi (Lambda Components)
(Defining Functions): Add a cross-reference to "Argument List".
(Argument List): Improve the section name.  (Bug#42750)

4 years agoImprove documentation of special events
Eli Zaretskii [Thu, 13 Aug 2020 13:53:14 +0000 (16:53 +0300)]
Improve documentation of special events

* doc/lispref/commands.texi (Misc Events): Explain how to bind
special events to commands.

4 years agoFix face merging at EOL when inherited face specifies :extend
Eli Zaretskii [Tue, 11 Aug 2020 14:39:35 +0000 (17:39 +0300)]
Fix face merging at EOL when inherited face specifies :extend

* src/xfaces.c (merge_face_ref): Handle correctly faces that
inherit from another, and in addition specify :extend.
(Bug#42552)

(cherry picked from commit 39c90f8dfabe158ad7ac9243aa9b9dedb9409e19)

4 years agoFix face extension past EOL in overlay strings
Eli Zaretskii [Thu, 30 Jul 2020 13:56:36 +0000 (16:56 +0300)]
Fix face extension past EOL in overlay strings

* src/xdisp.c (face_at_pos): Pass ATTR_FILTER to
face_for_overlay_string.
* src/xfaces.c (face_for_overlay_string): Accept an additional
argument ATTR_INDEX and pass it to merge_face_ref for merging the
face at POS.  This ensures a face from buffer text will not be
merged unless it specifies the :extend attribute.  (Bug#42552)
* src/dispextern.h (face_for_overlay_string): Adjust prototype.

(cherry picked from commit 35564bea4d73bc266743216599d01d644aed6fd8)

4 years agoPreserve the face foreground in Info-fontify-node
Juri Linkov [Thu, 13 Aug 2020 11:32:10 +0000 (13:32 +0200)]
Preserve the face foreground in Info-fontify-node

* lisp/info.el (Info-fontify-node): Preserve the face foreground.
Previously `Info-index' added the `info-index-match' face to the
strings of the found index entries.  Later
`Info-virtual-index-find-node' inserts strings to the Info buffer.
And finally `Info-fontify-node' puts the `font-lock-face' property
with `info-xref' on links.  The `face info-index-match' takes
precedence over `font-lock-face info-xref' (bug#14645).

4 years agoAdd a new variable to not recenter term on all input
Ryan Crum [Thu, 13 Aug 2020 11:02:17 +0000 (13:02 +0200)]
Add a new variable to not recenter term on all input

* lisp/term.el (term-scroll-snap-to-bottom): New variable (bug#15744).
* lisp/term.el (term-emulate-terminal): Use it.

4 years agogcc-include compilation lines are now INFO, instead of WARNING
Dima Kogan [Thu, 13 Aug 2020 10:20:53 +0000 (12:20 +0200)]
gcc-include compilation lines are now INFO, instead of WARNING

* lisp/progmodes/compile.el
(compilation-error-regexp-alist-alist): Prior to this patch the
line that contains "from a.h:1:0," was seen as INFO and the line
that contains "from a.c:1:" was seen as a WARNING.  This patch
makes them both INFO (bug#17826).

4 years agoEnsure that server-socket-dir doesn't have "//" in the path
Lars Ingebrigtsen [Thu, 13 Aug 2020 10:01:01 +0000 (12:01 +0200)]
Ensure that server-socket-dir doesn't have "//" in the path

* lisp/server.el (server-socket-dir): Use expand-file-name to
avoid "//" in the path name (if either XDG_RUNTIME_DIR or TMPDIR
ends in a slash) (bug#18658).

4 years agoHandle negative prefix arguments to mark-paragraph correctly
H. Dieter Wilhelm [Thu, 13 Aug 2020 09:51:17 +0000 (11:51 +0200)]
Handle negative prefix arguments to mark-paragraph correctly

* textmodes/paragraph.el (mark-paragraph): Handle negative
arguments correctly (bug#18847).  This makes `M- M-h M-h' do the
correct thing with expanding the region (like other marking
commands) backwards.  Also fix problem at the end of the buffer,
where the numbers of paragraphs left in the buffer is less than
ARG, then paragraphs would also be marked *before* the current
paragraph.  Also clarify the doc string.

4 years agoUpdate section heading conventions for libraries
Jonas Bernoulli [Sun, 9 Aug 2020 21:02:34 +0000 (23:02 +0200)]
Update section heading conventions for libraries

* doc/lispref/tips.texi (Comment Tips): Update information on section
  headings to reflect common usage.

Previously the tips stated that if the code is split up into multiple
sections, then that should be done by splitting up the ";;; Code:"
section into multiple sub-sections.

However about half the libraries in Emacs instead use multiple
top-level sections.  We update the tips (aka conventions) to allow
this common usage, but because it is awkward if there is a section
named "Code", which contains only some of the code instead of all of
it, we now recommend that that section should be empty in this case.

We cannot just give up on the "Code:" section/heading because that is
an old convention that is followed be nearly every library and because
it is likely that there are some utilities out there that depend on
its presence.

This was discussed in
https://lists.gnu.org/archive/html/emacs-devel/2020-07/msg00444.html
https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00001.html

4 years ago; * lisp/emacs-lisp/autoload.el: Begin summary line with three semicolons.
Jonas Bernoulli [Mon, 27 Jul 2020 20:48:08 +0000 (22:48 +0200)]
; * lisp/emacs-lisp/autoload.el: Begin summary line with three semicolons.

4 years ago* lisp/font-lock.el: No longer use headings as end of section markers.
Jonas Bernoulli [Wed, 15 Jul 2020 16:40:36 +0000 (18:40 +0200)]
* lisp/font-lock.el: No longer use headings as end of section markers.

Each section ends right before the following section begins and IMO
that means that it is unnecessary to mark the end of sections.

For users of `outline-minor-mode' the old end-of-section markers were
a distraction.  They made it much harder to parse the overview outline
state because each section heading was followed by a end-of-section
marker that was formatted as a section heading.  Because of this I
wanted to remove the end-of-section markers.

But as Eli pointed out these sections are long and not everyone uses
`outline-minor-mode'.

So instead of removing them, I am turning the end-of-section markers
into regular comments (beginning with just two semicolons) instead of
section headings (beginning with tree semicolons).  That way users of
`outline-minor-mode' won't be distracted by them and others can still
benefit from the markers as before.

4 years ago* lisp/font-lock.el: Split the Commentary into subsections.
Jonas Bernoulli [Wed, 17 Jun 2020 00:59:41 +0000 (02:59 +0200)]
* lisp/font-lock.el: Split the Commentary into subsections.

The "Commentary" was already split into multiple sections, but
these sections where on the same level as "Commentary" itself,
which is less convenient for users of `outline-minor-mode'.

4 years ago* lisp/net/imap.el: Use proper outline headings
Jonas Bernoulli [Wed, 17 Jun 2020 01:00:12 +0000 (03:00 +0200)]
* lisp/net/imap.el: Use proper outline headings

This library already used section headings but it used just two
instead of three semicolons, making them indistinguishable from
plain comments.  One heading is new.

4 years ago* lisp/obsolete/longlines.el: Use proper outline headings.
Jonas Bernoulli [Fri, 8 May 2020 19:24:20 +0000 (21:24 +0200)]
* lisp/obsolete/longlines.el: Use proper outline headings.

This library already used section headings but it used just two
instead of three semicolons, making them indistinguishable from
plain comments.  One heading is new.

4 years ago* test/src/emacs-module-tests.el: Use proper outline headings.
Jonas Bernoulli [Mon, 20 Apr 2020 21:32:19 +0000 (23:32 +0200)]
* test/src/emacs-module-tests.el: Use proper outline headings.

This library already used section headings but it used just two
instead of three semicolons, making them indistinguishable from
plain comments.

4 years ago* lisp/mail/smtpmail.el: Use outline headings.
Jonas Bernoulli [Mon, 20 Apr 2020 21:30:07 +0000 (23:30 +0200)]
* lisp/mail/smtpmail.el: Use outline headings.

4 years ago; * lisp/whitespace.el: Capitalize "Code" section heading.
Jonas Bernoulli [Wed, 17 Jun 2020 00:59:48 +0000 (02:59 +0200)]
; * lisp/whitespace.el: Capitalize "Code" section heading.

4 years ago* lisp/progmodes/compile.el: Remove unnecessary comments.
Jonas Bernoulli [Mon, 20 Apr 2020 21:29:29 +0000 (23:29 +0200)]
* lisp/progmodes/compile.el: Remove unnecessary comments.

These comments are unnecessary because the doc-strings that follow
already cover the same ground, while being more concise.  These
comments were also prefixed with too many semicolons, causing them
to be treated as outline headings.

4 years agoMerge two conditions and fix indentation
Jonas Bernoulli [Mon, 20 Apr 2020 21:30:41 +0000 (23:30 +0200)]
Merge two conditions and fix indentation

The motivation behind this change is that the indentation of some
lines was outright wrong.  If we address that issue, then we might
as well also address the issue that some code is needlessly nested
an additional level.  That we can fix by merging the conditions.

By doing these two changes in on commit we have to change the fewest
lines.  Even though we are moving to using just spaces for indentation
of the modified lines, other lines in the same function are left alone
and continue to us tabs+spaces for indentation.  That is not "wrong",
but just the style we are slowly migrating away from when touching
lines for other reasons.

Discussed in bug#42397.

* lisp/emacs-lisp/eldoc.el (eldoc-minibuffer-message): Merge two
conditions and fix indentation.

4 years agoSplit EasyPG libraries into outline sections
Jonas Bernoulli [Tue, 18 Feb 2020 15:42:20 +0000 (16:42 +0100)]
Split EasyPG libraries into outline sections

* lisp/epa-dired.el:
lisp/epa-file.el:
lisp/epa-hook.el:
lisp/epa-mail.el:
lisp/epa.el:
lisp/epg-config.el:
lisp/epg.el: Split into outline sections.
* lisp/epg.el (epg-error): Move definition.

4 years ago; * lisp/epg.el (epg-no-data-reason-alist): Fix typo in message.
Jonas Bernoulli [Wed, 17 Jun 2020 20:22:53 +0000 (22:22 +0200)]
; * lisp/epg.el (epg-no-data-reason-alist): Fix typo in message.

4 years ago; * lisp/epg.el (epg-signature-to-string): Tiny refactor.
Jonas Bernoulli [Wed, 15 Jul 2020 17:07:03 +0000 (19:07 +0200)]
; * lisp/epg.el (epg-signature-to-string): Tiny refactor.

`concat' treats arguments that are nil as if they were empty strings.
We therefore do not have to write (if TEST THEN "") and can just use
(and TEST THEN).

4 years ago; * lisp/epg.el (epg-signature-to-string): Use cl-case.
Jonas Bernoulli [Wed, 15 Jul 2020 17:05:30 +0000 (19:05 +0200)]
; * lisp/epg.el (epg-signature-to-string): Use cl-case.

In this case we can greatly increase readability by using `cl-case'
instead of `cond'.

4 years agoDon't output emacsclient warning if both -a and --quiet
Lars Ingebrigtsen [Thu, 13 Aug 2020 08:29:44 +0000 (10:29 +0200)]
Don't output emacsclient warning if both -a and --quiet

* lib-src/emacsclient.c (set_local_socket): Don't output the
warning if both -a and --quiet are specified (bug#16117).
Inspired by a patch from Scott Turner <srt19170@gmail.com>.

4 years agoNotify the user if we errors when querying for registered git files
Emilio Lopes [Thu, 13 Aug 2020 08:01:00 +0000 (10:01 +0200)]
Notify the user if we errors when querying for registered git files

* lisp/vc/vc-git.el (vc-git-registered): Notify the user when
something fails here (bug#18481).

4 years agomml-secure-en-decrypt-sign-2 is unstable
Paul Eggert [Thu, 13 Aug 2020 01:38:52 +0000 (18:38 -0700)]
mml-secure-en-decrypt-sign-2 is unstable

* test/lisp/gnus/mml-sec-tests.el (mml-secure-en-decrypt-sign-2):
Mark as unstable (Bug#42720).

4 years agoRemove Emacs 22 compat code from dns.el
Stefan Kangas [Wed, 12 Aug 2020 23:39:53 +0000 (01:39 +0200)]
Remove Emacs 22 compat code from dns.el

* lisp/net/dns.el (dns-servers-up-to-date-p, dns-set-servers):
Remove check for function that is always there.

4 years agoDeclare semantic XEmacs compat code obsolete
Stefan Kangas [Wed, 12 Aug 2020 23:29:47 +0000 (01:29 +0200)]
Declare semantic XEmacs compat code obsolete

* lisp/cedet/semantic/grammar.el
(semantic-grammar-setup-menu-xemacs): Declare obsolete.

4 years agoRemove XEmacs compat code from allout-widgets.el
Stefan Kangas [Wed, 12 Aug 2020 23:23:46 +0000 (01:23 +0200)]
Remove XEmacs compat code from allout-widgets.el

* lisp/allout-widgets.el
(allout-widgets-item-image-properties-xemacs)
(allout-item-widget, allout-fetch-icon-image)
(allout-widgets-copy-list): Remove XEmacs compat code.

4 years ago* lisp/net/mailcap.el (mailcap-mime-data): Remove long-forgotten `ee`
Stefan Monnier [Wed, 12 Aug 2020 18:46:13 +0000 (14:46 -0400)]
* lisp/net/mailcap.el (mailcap-mime-data): Remove long-forgotten `ee`

It referred apparently to the "Electric Eyes" image viewer:
https://archive.org/details/tucows_31588_Electric_Eyes

4 years agoStop using Gnulib inttypes module
Paul Eggert [Wed, 12 Aug 2020 18:40:12 +0000 (11:40 -0700)]
Stop using Gnulib inttypes module

It wasn’t needed for MinGW after all, no other platform
seems to need it, and it slows down ‘configure’.
* admin/merge-gnulib (GNULIB_MODULES): Remove inttypes.
* m4/gnulib-comp.m4: Regenerate.

4 years agoUpdate from Gnulib
Paul Eggert [Wed, 12 Aug 2020 18:37:52 +0000 (11:37 -0700)]
Update from Gnulib

This incorporates:
2020-08-12 stdint: port intptr_t to more-recent MinGW
2020-08-11 Use __restrict also on clang
2020-08-11 Use flexible array syntax also on clang
2020-08-11 fcntl: On native Windows, use _setmode, not setmode
* lib/binary-io.h, lib/cdefs.h, lib/fcntl.c, lib/regex.h:
* lib/stdint.in.h: Copy from Gnulib.

4 years agoRemove some compat code from mm-util.el
Lars Ingebrigtsen [Wed, 12 Aug 2020 17:54:09 +0000 (19:54 +0200)]
Remove some compat code from mm-util.el

* lisp/gnus/mm-util.el (mm-charset-to-coding-system): Remove the
non-mule case, because it's always false.

4 years agoSimplify the computation of mm-mime-mule-charset-alist
Lars Ingebrigtsen [Wed, 12 Aug 2020 17:52:11 +0000 (19:52 +0200)]
Simplify the computation of mm-mime-mule-charset-alist

* lisp/gnus/mm-util.el (mm-mime-mule-charset-alist): For
compatibility with XEmacs, mm-mime-mule-charset-alist was first
set to a list of hard-coded entries, and then overwritten on Emacs
from `coding-system-list'.  Remove the hard-coded values and
simplify the code.