]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoMake python-shell-prompt-block-regexp match IPython prompt
Andrii Kolomoiets [Tue, 19 Feb 2019 21:57:07 +0000 (23:57 +0200)]
Make python-shell-prompt-block-regexp match IPython prompt

* lisp/progmodes/python.el (python-shell-prompt-block-regexp): Match
also IPython's multiline prompt.  It allows to correctly disable
non-native completions during multiline statement in
inferior-python-mode that runs IPython interpreter (Bug#34582).

Copyright-paperwork-exempt: yes

5 years ago* etc/NEWS: Mention new xref faces (bug#23179)
Juri Linkov [Tue, 16 Apr 2019 21:04:30 +0000 (00:04 +0300)]
* etc/NEWS: Mention new xref faces (bug#23179)

5 years ago* lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Erase buffer
Juri Linkov [Tue, 16 Apr 2019 20:51:51 +0000 (23:51 +0300)]
* lisp/vc/diff-mode.el (diff-syntax-fontify-hunk): Erase buffer

before inserting file contents to *diff-syntax-file*.
Use absolute file names.

5 years ago* GNUmakefile: Update comment.
Paul Eggert [Tue, 16 Apr 2019 18:04:16 +0000 (11:04 -0700)]
* GNUmakefile: Update comment.

5 years ago* make-dist (possibly_non_vc_files): Remove recently deleted file.
Glenn Morris [Tue, 16 Apr 2019 15:09:47 +0000 (08:09 -0700)]
* make-dist (possibly_non_vc_files): Remove recently deleted file.

5 years agoFix uninit var in widget.c
Paul Eggert [Tue, 16 Apr 2019 03:53:13 +0000 (20:53 -0700)]
Fix uninit var in widget.c

* src/widget.c (EmacsFrameQueryGeometry):
Avoid use of uninitialized variables ok_width, ok_height (Bug#35277).

5 years agoRemove Vparam_value_alist
Paul Eggert [Tue, 16 Apr 2019 03:23:24 +0000 (20:23 -0700)]
Remove Vparam_value_alist

* src/xfaces.c (Vparam_value_alist):
Remove.  All uses removed.
(Finternal_set_lisp_face_attribute):
Simplify by using AUTO_FRAME_ARG.

5 years agoProperly bracket concat of comment-start-skip (Bug#34805)
Noam Postavsky [Fri, 5 Apr 2019 12:00:09 +0000 (08:00 -0400)]
Properly bracket concat of comment-start-skip (Bug#34805)

* lisp/emacs-lisp/smie.el (smie-indent-fixindent):
* lisp/cedet/semantic/doc.el (semantic-doc-snarf-comment-for-tag):
* lisp/progmodes/fortran.el (fortran-previous-statement)
(fortran-next-statement)
(fortran-fill-statement):
* lisp/progmodes/vhdl-mode.el (vhdl-beginning-of-statement): Bracket
comment-start-skip and comment-end-skip to avoid unexpected regexp
operator precedence.

5 years agoMinor change in a comment
Eli Zaretskii [Mon, 15 Apr 2019 16:11:16 +0000 (19:11 +0300)]
Minor change in a comment

* test/src/callproc-tests.el
(call-process-w32-debug-spawn-error): Minor copyedits of the
commentary.

5 years agoFix MS-Windows build broken by make-fingerprint changes
Eli Zaretskii [Mon, 15 Apr 2019 14:17:01 +0000 (17:17 +0300)]
Fix MS-Windows build broken by make-fingerprint changes

* lib-src/make-fingerprint.c (fseeko) [WNDOWSNT]: Define to
fseeko64 for non-MinGW64 MinGW.

* lib-src/ntlib.c (stat): Fix calculation of file size.
(fstat): New function, a subset of src/w32.c:fstat.  This is
needed because make-fingerprint.c now calls 'fstat', and the
MS version will fail to produce reliable results because
nt/inc/sys/stat.h redefines 'struct stat'.

5 years ago* .gitlab-ci.yml (test-filenotify-gio): Add autorevert changes.
Michael Albinus [Mon, 15 Apr 2019 11:24:55 +0000 (13:24 +0200)]
* .gitlab-ci.yml (test-filenotify-gio): Add autorevert changes.

5 years agoDon't remove notify descriptor that is already gone
Mattias Engdegård [Wed, 10 Apr 2019 13:25:53 +0000 (15:25 +0200)]
Don't remove notify descriptor that is already gone

* lisp/autorevert.el (auto-revert-use-notify, auto-revert-mode,
global-auto-revert-mode, auto-revert-notify-rm-watch,
auto-revert-notify-add-watch, auto-revert-notify-handler,
auto-revert-notify-rm-watch-callback):
Don't remove a notify descriptor after receiving a `stopped' notification
event, because the descriptor is then already gone and any attempt to
remove it causes a recursive call to `auto-revert-notify-handler'.

5 years ago* doc/misc/tramp.texi: Fix direntry.
Michael Albinus [Mon, 15 Apr 2019 07:35:31 +0000 (09:35 +0200)]
* doc/misc/tramp.texi: Fix direntry.

5 years agoRemove static var system_eol_type
Paul Eggert [Mon, 15 Apr 2019 06:10:45 +0000 (23:10 -0700)]
Remove static var system_eol_type

* src/coding.c (system_eol_type): Remove.
(coding_inherit_eol_type, syms_of_coding):
Simplify to avoid the need for system_eol_type.

5 years agoAvoid compiler warnings on cairo build
YAMAMOTO Mitsuharu [Mon, 15 Apr 2019 03:39:05 +0000 (12:39 +0900)]
Avoid compiler warnings on cairo build

* src/image.c (jpeg_load_body) [USE_CAIRO]: #ifdef out USE_SAFE_ALLOCA
and SAFE_FREE.
* src/xterm.c (x_composite_image) [USE_CAIRO]: #ifdef out unused function.
(x_draw_image_glyph_string) [USE_CAIRO]: #ifdef out unused variable pixmap.

5 years agoLet debugger handle process spawn errors on w32 (Bug#33016)
Noam Postavsky [Mon, 8 Apr 2019 21:57:22 +0000 (17:57 -0400)]
Let debugger handle process spawn errors on w32 (Bug#33016)

Since child_setup() is called between block_input()...unblock_input(),
when an error is signaled the Lisp debugger is prevented from
starting.  Therefore, let the callers signal the error instead (which
they already do for non-w32 platforms, just the error message needs an
update).
* src/callproc.c (child_setup) [WINDOWSNT]: Don't call
report_file_error here.
(call_process) [WINDOWNT]:
* src/process.c (create_process) [WINDOWSNT]: Call report_file_errno
here instead, after the unblock_input() call, same as for !WINDOWSNT.
* src/lisp.h (CHILD_SETUP_ERROR_DESC): New preprocessor define.  Flip
the containing ifndef DOS_NT branches so that it's ifdef DOS_NT.
* src/eval.c (when_entered_debugger): Remove.
(syms_of_eval) <internal-when-entered-debugger>: Define it as a Lisp
integer variable instead.
(maybe_call_debugger): Update comment.
* test/src/process-tests.el (make-process-w32-debug-spawn-error):
* test/src/callproc-tests.el (call-process-w32-debug-spawn-error): New
tests.

5 years agoBump minimum GTK versions to 2.24 and 3.10
Alexander Gramiak [Mon, 8 Apr 2019 01:02:03 +0000 (19:02 -0600)]
Bump minimum GTK versions to 2.24 and 3.10

* configure.ac: Bump required GTK 2 and GTK 3 versions and the
associated GLib versions. Remove obsolete AC_CHECK_FUNCS calls. These
check for functions available in later GTK 2 versions. These checks
and can safely be removed with the exception of
gtk_window_set_has_resize_grip, which according to a comment in
gtkutil.c causes an issue in Ubuntu's GTK 2.

* src/gtkutil.c:
* src/xfns.c:
* src/xterm.c:
* src/xterm.h: Remove now unused conditional blocks. Use HAVE_GTK3
instead of GTK_CHECK_VERSION where now applicable. Remove checks of
now always true USE_GTK_TOOLTIP.

5 years agoReplace executable’s fingerprint in place
Paul Eggert [Sun, 14 Apr 2019 23:31:24 +0000 (16:31 -0700)]
Replace executable’s fingerprint in place

* admin/merge-gnulib (GNULIB_MODULES): Add memmem-simple.
(AVOIDED_MODULES): Add memchr.
* configure.ac (HAVE_PDUMPER): AC_SUBST it, too, for use in makefiles.
* lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
* lib/fingerprint.c: New file.
* lib/memmem.c, lib/str-two-way.h, m4/memmem.m4: New files,
copied from Gnulib.
* lib/fingerprint.h: Rename from src/fingerprint.h.
* lib-src/make-fingerprint.c: Include limits.h, sys/stat.h,
fingerprint.h, intprops.h, min-max.h.
(SSIZE_MAX): New macro, if not already defined.
(main): Without -r, Replace the fingerprint in the input file
instead of generating a fingerprint.c.
* lib/Makefile.in (libgnu_a_OBJECTS): Add fingerprint.o.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* src/Makefile.in (HAVE_PDUMPER, MAKE_PDUMPER_FINGERPRINT):
New macros.
(temacs$(EXEEXT)): Use them to replace the fingerprint instead
of precalculating it.
(mostlyclean, ctagsfiles1): Do not worry about fingerprint.c.

5 years ago* m4/utimbuf.m4: Remove unused file.
Paul Eggert [Sun, 14 Apr 2019 23:23:54 +0000 (16:23 -0700)]
* m4/utimbuf.m4: Remove unused file.

5 years agoSort files in the default impl of project-files alphabetically
Dmitry Gutov [Sun, 14 Apr 2019 21:39:29 +0000 (00:39 +0300)]
Sort files in the default impl of project-files alphabetically

* lisp/progmodes/project.el (project--files-in-directory):
Sort the files alphabetically
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=23179#296).

5 years agoSome rearragements for remote tests in filenotify-tests.el
Michael Albinus [Sun, 14 Apr 2019 17:53:38 +0000 (19:53 +0200)]
Some rearragements for remote tests in filenotify-tests.el

* test/lisp/filenotify-tests.el (file-notify--deftest-remote):
Change argument list, EXPECTED is not needed.
(file-notify-test07-many-events-remote)
(file-notify-test09-watched-file-in-watched-dir-remote):
Adapt declaration accordingly.

5 years agoExplain ad-hoc multi-hop in the Tramp Quick Start Guide
Michael Albinus [Sun, 14 Apr 2019 17:53:02 +0000 (19:53 +0200)]
Explain ad-hoc multi-hop in the Tramp Quick Start Guide

* doc/misc/tramp.texi (Quick Start Guide): New section "Combining
@option{ssh} or @option{plink} with @option{su} or @option{sudo}".

5 years agoFix Bug#35055
Michael Albinus [Sun, 14 Apr 2019 17:52:12 +0000 (19:52 +0200)]
Fix Bug#35055

* lisp/net/tramp.el (tramp-handle-shell-command):
Handle `shell-command-width'.  (Bug#35055)

5 years ago* lisp/frame.el (frame--size-history): Fix infloop. (Bug#35272)
Alexander Gramiak [Sun, 14 Apr 2019 15:27:50 +0000 (09:27 -0600)]
* lisp/frame.el (frame--size-history): Fix infloop. (Bug#35272)

5 years agoMerge commit '890440a44cd5f4f09742f521c7783785d114fffc'
Stephen Leake [Sun, 14 Apr 2019 16:24:42 +0000 (09:24 -0700)]
Merge commit '890440a44cd5f4f09742f521c7783785d114fffc'

5 years agoRename new user variable `next-error-verbosity' to `next-error-verbose'
Stephen Leake [Sun, 14 Apr 2019 16:23:24 +0000 (09:23 -0700)]
Rename new user variable `next-error-verbosity' to `next-error-verbose'

* etc/NEWS: Update entry to match renaming.

* lisp/simple.el (next-error-verbose): Rename.
(next-error, next-error-internal): Match rename.

5 years agoSimplify gdk_monitor_get_model string duplication
Alexander Gramiak [Sun, 14 Apr 2019 14:41:48 +0000 (08:41 -0600)]
Simplify gdk_monitor_get_model string duplication

* src/xfns.c (x-display-monitor-attributes-list): Use dupstring over
explicit if/xstrdup.

* src/frame.c (free_monitors): Remove redundant check for NULL.

5 years agoImprove documentation of a recent commit
Eli Zaretskii [Sun, 14 Apr 2019 14:50:12 +0000 (17:50 +0300)]
Improve documentation of a recent commit

* etc/NEWS: Fix the description of 'shell-command-width'.
Mark the entry as not needing the manual update.

* lisp/simple.el (shell-command-width): Doc fix.  (Bug#35055)

5 years agoUpdate from Gnulib
Paul Eggert [Sun, 14 Apr 2019 04:13:16 +0000 (21:13 -0700)]
Update from Gnulib

This incorporates:
2019-04-07 Add copyright notices in several files
* build-aux/config.sub, doc/misc/texinfo.tex, lib/_Noreturn.h:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.

5 years agoFix gnus-group-describe-all-groups (bug#35233)
Basil L. Contovounesios [Thu, 11 Apr 2019 16:16:00 +0000 (17:16 +0100)]
Fix gnus-group-describe-all-groups (bug#35233)

This fixes oversights from
2018-04-26T16:26:27-07:00!eric@ericabrahamsen.net and
2016-02-13T18:45:11+11:00!larsi@gnus.org.
* lisp/gnus/gnus-group.el (gnus-group-describe-all-groups): Insert
group name and description instead of group name twice.  Do not pass
a hash-table to intern.  Call sort with correct number of arguments.

5 years agoFix segmentation fault with gdk_monitor_get_model (Bug#35259)
Alexander Gramiak [Sat, 13 Apr 2019 22:05:21 +0000 (16:05 -0600)]
Fix segmentation fault with gdk_monitor_get_model (Bug#35259)

* src/frame.c (free_monitors): Check if NULL before freeing.

* src/xfns.c: (x-display-monitor-attributes-list): Check if NULL
before copying.

5 years ago* lisp/vc/log-edit.el (log-edit-insert-changelog): Add field "Summary"
Juri Linkov [Sat, 13 Apr 2019 22:02:39 +0000 (01:02 +0300)]
* lisp/vc/log-edit.el (log-edit-insert-changelog): Add field "Summary"

explicitly after adding field "Author".  (Bug#34972)

5 years agoNew faces in xref (bug#23179)
Juri Linkov [Sat, 13 Apr 2019 21:54:14 +0000 (00:54 +0300)]
New faces in xref (bug#23179)

* lisp/progmodes/xref.el (xref-file-header, xref-line-number)
(xref-match):  New faces.
(xref--insert-xrefs, xref--collect-matches-1): Use them.

5 years ago* lisp/simple.el (shell-command-width): New defcustom.
Juri Linkov [Sat, 13 Apr 2019 21:46:38 +0000 (00:46 +0300)]
* lisp/simple.el (shell-command-width): New defcustom.

(shell-command): Use it.  (Bug#35055)

5 years ago* lisp/progmodes/cc-langs.el (c-class-id-suffix-ws-ids-kwds): Correct a typo
Alan Mackenzie [Sat, 13 Apr 2019 19:33:18 +0000 (19:33 +0000)]
* lisp/progmodes/cc-langs.el (c-class-id-suffix-ws-ids-kwds): Correct a typo

5 years agoImplement "final" before C++ class inheritance lists.
Alan Mackenzie [Sat, 13 Apr 2019 13:29:58 +0000 (13:29 +0000)]
Implement "final" before C++ class inheritance lists.

* lisp/progmodes/cc-langs.el (c-class-id-suffix-ws-ids-kwds)
(c-class-id-suffix-ws-ids-key): New lang const/var.

* lisp/progmodes/cc-engine.el (c-guess-basic-syntax CASE 5D.4): Check for and
skip over any matches for c-class-id-suffix-ws-ids-key (i.e. "final") before
":".

5 years agoFix error in tramp-sh.el
Michael Albinus [Sat, 13 Apr 2019 10:34:44 +0000 (12:34 +0200)]
Fix error in tramp-sh.el

* lisp/net/tramp-sh.el (tramp-sh-handle-make-process):
Revert "simplification", which was an error.

5 years ago* doc/misc/tramp.texi: Fix minor glitches.
Michael Albinus [Sat, 13 Apr 2019 10:34:13 +0000 (12:34 +0200)]
* doc/misc/tramp.texi: Fix minor glitches.

5 years agoFix last patch
Michael Albinus [Sat, 13 Apr 2019 09:12:16 +0000 (11:12 +0200)]
Fix last patch

5 years agoReplace (skip-unless nil) by tag :unstable in test packages
Michael Albinus [Sat, 13 Apr 2019 08:58:17 +0000 (10:58 +0200)]
Replace (skip-unless nil) by tag :unstable in test packages

* test/lisp/filenotify-tests.el (file-notify--deftest-remote):
Use tag :unstable if SKIP is non-nil.

* test/lisp/net/tramp-tests.el (tramp-test36-vc-registered):
Use ert-skip instead of (skip-unless nil).

* test/lisp/progmodes/python-tests.el
(python-tests--python-nav-end-of-statement--infloop): Use tag
:unstable instead of (skip-unless nil).

5 years agoMinor cleanup in 'x_set_frame_alpha'
Eli Zaretskii [Sat, 13 Apr 2019 08:01:39 +0000 (11:01 +0300)]
Minor cleanup in 'x_set_frame_alpha'

* src/xterm.c (x_set_frame_alpha): Remove redundant parts of
testing of value of 'alpha'.  Suggested by Konstantin
Kharlamov <Hi-Angel@yandex.ru>.  (Bug#35062)

5 years agoImprove documentation of JSONRPC
Eli Zaretskii [Sat, 13 Apr 2019 07:42:14 +0000 (10:42 +0300)]
Improve documentation of JSONRPC

* doc/lispref/text.texi (JSONRPC Overview)
(Process-based JSONRPC connections)
(JSONRPC JSON object format): Fix wording and markup.  Add
indexing.

5 years agoImprove documentation changes of a recent commit
Eli Zaretskii [Sat, 13 Apr 2019 07:07:15 +0000 (10:07 +0300)]
Improve documentation changes of a recent commit

* doc/lispref/text.texi (Parsing JSON): Improve wording of the
documentation of 'json-parse-string' and 'json-parse-buffer'.
* src/json.c (Fjson_parse_string, Fjson_parse_buffer): Doc fix.
(Bug#34763)

5 years agoOmit/rewrite useless regexp repetitions
Paul Eggert [Sat, 13 Apr 2019 02:43:16 +0000 (19:43 -0700)]
Omit/rewrite useless regexp repetitions

Problem reported by Mattias Engdegård in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00527.html
* lisp/align.el (align-rules-list):
* lisp/cedet/srecode/srt-mode.el (srecode-font-lock-keywords):
* lisp/emacs-lisp/copyright.el (copyright-regexp):
* lisp/erc/erc-backend.el (JOIN):
* lisp/erc/erc-goodies.el (erc-unmorse):
* lisp/mail/mail-extr.el (mail-extr-telephone-extension-pattern):
* lisp/net/tramp-adb.el (tramp-adb-prompt):
* lisp/org/org-table.el (org-table-range-regexp):
* lisp/progmodes/idlwave.el (idlwave-where):
* lisp/progmodes/verilog-mode.el (verilog-declaration-re-2-no-macro)
(verilog-declaration-re-2-macro, verilog-delete-auto-buffer)
(verilog-auto-inst-port):
* lisp/url/url-misc.el (url-data):
Omit or rewrite useless repetitions that risk being very slow in
the backtracking regexp engine in Emacs.

5 years agoDon't signal error from url debug functions
Dmitry Gutov [Sat, 13 Apr 2019 00:36:45 +0000 (03:36 +0300)]
Don't signal error from url debug functions

* lisp/url/url-http.el (url-http-debug): Don't signal error.

* lisp/url/url-util.el (url-debug): Same (bug#34763).

5 years agoAdd :array-type option to json-parse-string
Dmitry Gutov [Fri, 12 Apr 2019 22:33:05 +0000 (01:33 +0300)]
Add :array-type option to json-parse-string

* src/json.c (enum json_array_type): New type.
(struct json_configuration): New field array_type.
(json_parse_args): Rename the last argument.  Handle the
:array-type keyword argument (bug#32793).
(Fjson_parse_string): Update the docstring accordingly.
(json_to_lisp): Handle the case of :array-type being `list'.  Add
a call to 'rarely_quit' inside the loop.
(syms_of_json): Define new symbols.
(Fjson_serialize, Fjson_insert, Fjson_parse_string)
(Fjson_parse_buffer): Update the config struct initializers.

5 years agoAnalyze C++ method with & or && ref-qualifier as defun, not brace list
Alan Mackenzie [Fri, 12 Apr 2019 20:07:03 +0000 (20:07 +0000)]
Analyze C++ method with & or && ref-qualifier as defun, not brace list

Also firm up detection of beginning of brace list in
c-looking-at-or-maybe-in-bracelist.

* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): On
detection of such a ref-qualifier, set braceassignp to nil.  When this
variable has a nil value, return nil as the value of the function.  On
encountering a } when scanning backwards, recognise this as the end of a
previous construct and stop the scan.

5 years ago* lisp/help-fns.el (help-fns-describe-variable-functions): New hook
Stefan Monnier [Fri, 12 Apr 2019 16:37:00 +0000 (12:37 -0400)]
* lisp/help-fns.el (help-fns-describe-variable-functions): New hook

(help-fns--compiler-macro, help-fns--parent-mode, help-fns--obsolete)
(help-fns--interactive-only): Indent output by 2 spaces.
(help-fns--side-effects): New function extracted from
describe-function-1.
(help-fns-describe-function-functions): Use it.
(help-fns--first-release, help-fns--mention-first-release): New functions.
(help-fns-function-description-header): Keymaps and macros can't
be interactive.
(help-fns--ensure-empty-line): New function.
(describe-function-1): Use it.
(help-fns--var-safe-local, help-fns--var-risky)
(help-fns--var-ignored-local, help-fns--var-file-local)
(help-fns--var-watchpoints, help-fns--var-obsolete)
(help-fns--var-alias, help-fns--var-bufferlocal): New functions,
extacted from describe-variable.
(describe-variable): Run help-fns-describe-variable-functions instead.

5 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 12 Apr 2019 14:51:35 +0000 (07:51 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

fd1b34b (origin/emacs-26) Bump Emacs version to 26.2

5 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 12 Apr 2019 14:51:35 +0000 (07:51 -0700)]
Merge from origin/emacs-26

818a68b * etc/HISTORY: Update for Emacs 26.2 release.
e04aa5a ; ChangeLog.3 update
8297e97 * etc/AUTHORS: Update.
8582936 Improve documentation of 'read-command'
dc81c05 ; * CONTRIBUTE: Mention where to ask for the copyright assign...
b77723a Fix an outdated URL in a comment

5 years ago; Merge from origin/emacs-26
Glenn Morris [Fri, 12 Apr 2019 14:51:35 +0000 (07:51 -0700)]
; Merge from origin/emacs-26

The following commits were skipped:

71be83e Backport: Fix comment-empty-lines docstring (bug#35152)
559f64a Backport: Update documentation for indent-relative functions

5 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 12 Apr 2019 14:51:34 +0000 (07:51 -0700)]
Merge from origin/emacs-26

cb5a340 Update nxml-mode.texi: completion now gives xmlns="-!-"

5 years agoMove proper-list-p tests to fns-tests.el
Basil L. Contovounesios [Tue, 9 Apr 2019 16:05:27 +0000 (17:05 +0100)]
Move proper-list-p tests to fns-tests.el

This follows the move of proper-list-p from lisp/subr.el to
src/fns.c in 2018-07-24T15:58:46-07:00!eggert@cs.ucla.edu.
* test/lisp/subr-tests.el (subr-tests--proper-list-p): Move from
here...
* test/src/fns-tests.el (test-proper-list-p): ...to here.

5 years agoOptimize byte-compilation of proper-list-p
Basil L. Contovounesios [Tue, 9 Apr 2019 15:51:55 +0000 (16:51 +0100)]
Optimize byte-compilation of proper-list-p

For discussion, see thread starting at:
https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00316.html
* lisp/emacs-lisp/byte-opt.el: Optimize proper-list-p as a
predicate.
* lisp/subr.el: Mark proper-list-p as pure, and side-effect and
error free.

5 years agoPop to originating erc buffer when clicking desktop notification
Alex Murray [Thu, 4 Apr 2019 06:19:48 +0000 (16:49 +1030)]
Pop to originating erc buffer when clicking desktop notification

* lisp/erc/erc-desktop-notifications.el: Switch to lexical-binding.
(erc-notifications-notify): Add a default action to the desktop
notification which pops to the buffer from which the notification
originated.  (Bug#35141)

Copyright-paperwork-exempt: yes

5 years agoAlways set gnus-group property to a group name
Basil L. Contovounesios [Thu, 11 Apr 2019 16:24:36 +0000 (17:24 +0100)]
Always set gnus-group property to a group name

* lisp/gnus/gnus-group.el (gnus-group-prepare-flat-list-dead): Set
gnus-group property to a group name, not active info. (bug#33653)
Simplify surrounding logic.
(gnus-group-prepare-flat, gnus-group-goto-group): Use accessor
macros.
(gnus-group-insert-group-line, gnus-group-new-mail)
(gnus-group-mark-group): Write ?\s instead of ? .
(gnus-group-group-name, gnus-group-list-active): Simplify.

5 years ago* lisp/vc/diff-mode.el: Avoid re-initializing buffer in diff-syntax
Stefan Monnier [Fri, 12 Apr 2019 01:06:59 +0000 (21:06 -0400)]
* lisp/vc/diff-mode.el: Avoid re-initializing buffer in diff-syntax

(diff--syntax-file-attributes): New var.
(diff-syntax-fontify-hunk): Detect when we're reusing the same buffer as
last time, to avoid re-initializing it.  Skip the
diff-syntax-fontify-revisions hash-table, since buffer-alist plays the
same role.
(diff-syntax-fontify-revisions): Delete var.

5 years agoMerge commit 'de238b39e335c6814283faa171b35145f124edf2'
Stephen Leake [Thu, 11 Apr 2019 21:00:02 +0000 (14:00 -0700)]
Merge commit 'de238b39e335c6814283faa171b35145f124edf2'

5 years agoMake `next-error' output fewer messages about locus
Stephen Leake [Thu, 11 Apr 2019 20:58:36 +0000 (13:58 -0700)]
Make `next-error' output fewer messages about locus

* lisp/simple.el (next-error-verbosity): New user variable.
(next-error, next-error-internal): Use it to control only outputting
locus message if locus changed.

5 years agoFix rgrep in dired using directory for search file pattern
Christopher Thorne [Thu, 11 Apr 2019 20:51:13 +0000 (23:51 +0300)]
Fix rgrep in dired using directory for search file pattern

* lisp/progmodes/grep.el (grep-read-files): Allow major modes to
define file name to use for default search pattern.
Add non-directory file at point as default search pattern candidate.

* lisp/dired.el (dired-grep-read-files): Use non-directory file at
point for grep file name pattern.  (Bug#34621)

Copyright-paperwork-exempt: yes

5 years agoBump Emacs version to 26.2 emacs-26.2
Nicolas Petton [Thu, 11 Apr 2019 19:59:46 +0000 (21:59 +0200)]
Bump Emacs version to 26.2

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 26.2.

5 years ago* etc/HISTORY: Update for Emacs 26.2 release.
Nicolas Petton [Thu, 11 Apr 2019 19:59:28 +0000 (21:59 +0200)]
* etc/HISTORY: Update for Emacs 26.2 release.

5 years ago; ChangeLog.3 update
Nicolas Petton [Thu, 11 Apr 2019 19:58:20 +0000 (21:58 +0200)]
; ChangeLog.3 update

5 years ago* etc/AUTHORS: Update.
Nicolas Petton [Thu, 11 Apr 2019 19:57:49 +0000 (21:57 +0200)]
* etc/AUTHORS: Update.

5 years agoImprove documentation of 'read-command'
Eli Zaretskii [Thu, 11 Apr 2019 14:00:44 +0000 (17:00 +0300)]
Improve documentation of 'read-command'

* src/minibuf.c (Fread_command): Document the return value
when DEFAULT-VALUE is nil and the user enters nothing.
* doc/lispref/minibuf.texi (High-Level Completion): Document
the printed representation of a symbol whose name is empty.
(Bug#3522)

5 years ago; * CONTRIBUTE: Mention where to ask for the copyright assignment form.
Eli Zaretskii [Thu, 11 Apr 2019 13:37:02 +0000 (16:37 +0300)]
; * CONTRIBUTE: Mention where to ask for the copyright assignment form.

5 years agoFix an outdated URL in a comment
Eli Zaretskii [Thu, 11 Apr 2019 13:25:06 +0000 (16:25 +0300)]
Fix an outdated URL in a comment

* src/emacs.c: Fix reference to Cocoa CoreFoundation Release
Notes.  (Bug#35225)

5 years agoBackport: Fix comment-empty-lines docstring (bug#35152)
Basil L. Contovounesios [Thu, 4 Apr 2019 22:37:08 +0000 (23:37 +0100)]
Backport: Fix comment-empty-lines docstring (bug#35152)

* lisp/newcomment.el (comment-empty-lines): Consistently use US
commas in docstring.  Fix indentation of and typo in custom :type.

(cherry picked from commit 690c678fb6c1fb5b2f828f9bb90782bd0b01c399)

5 years agoBackport: Update documentation for indent-relative functions
Alex Branham [Tue, 26 Mar 2019 01:49:01 +0000 (20:49 -0500)]
Backport: Update documentation for indent-relative functions

* lisp/indent.el (indent-relative): Document what happens when there
  is no previous nonblank line.
* doc/lispref/text.texi (Relative Indent): Document
  indent-relative-first-indent-point instead of obsolete
  indent-relative-maybe. Fix documentation of which argument from
  'indent-relative' is used.

Bug#34858

(cherry picked from commit 10cd65878c741d2a22a1f2c36c54fcad4e516f72)

5 years agoAdd extra text property to fix issue with js2-mode integration
Jackson Ray Hamilton [Thu, 11 Apr 2019 05:53:34 +0000 (22:53 -0700)]
Add extra text property to fix issue with js2-mode integration

* lisp/progmodes/js.el (js-jsx--put-syntax-table): New function for
consistently ensuring smooth js2-mode integration.  js2-mode sets
syntax-table temporarily while parsing buffers—seemingly to recover
from parsing interruptions—and then it later clears syntax-table
blindly.  When integrating with js-mode, this means that unterminated
string quotes are re-broken in JSX (i.e., they become strings again,
often stringifying large regions of the buffer which should not be
strings).  We try to treat quotes in JSXText as non-strings by setting
syntax-table to a non-“string quote” syntax class, but that stops
working if we lose the property.  On the js2-mode end, by scanning for
this second js-jsx-syntax-table property, we can recover the
syntax-table property there.
(js-jsx--text-range, js-jsx--syntax-propertize-tag): Use
js-jsx--put-syntax-table for above reason.
(js-jsx--text-properties): Clear the js-jsx-syntax-table property too.

5 years agoBring back dmpstruct.h
Paul Eggert [Thu, 11 Apr 2019 02:42:37 +0000 (19:42 -0700)]
Bring back dmpstruct.h

Bring back the dmpstruct.h checking, and use it when
--enable-checking=structs is specified.  The checking can be helpful
to some developers, although it gets in the way of others and is
not needed for ordinary tarball builds.
* src/dmpstruct.awk: Restore this file, with mode 644 not 755.
* configure.ac: New option-arg --enable-checking=structs,
implied by --enable-checking.
(CHECK_STRUCTS): New macro and var.
* src/Makefile.in (CHECK_STRUCTS): New macro.
(dmpstruct_headers, dmpstruct.h, dmpstruct.h):
Restore these macros and rules.
(pdumper.o): Restore this dependency if $(CHECK_STRUCTS) is true.
(mostlyclean): Remove dmpstruct.h.
* src/pdumper.c [CHECK_STRUCTS]: Include dmpstruct.h,
and restore checks against hashes.

5 years agoEnable message saving to work when first use of Gnus (bug#35208)
Katsumi Yamaoka [Thu, 11 Apr 2019 00:23:38 +0000 (00:23 +0000)]
Enable message saving to work when first use of Gnus (bug#35208)

* lisp/gnus/gnus-group.el (gnus-group-goto-group);
Use gnus-active-hashtb in addition to gnus-newsrc-hashtb to check if
a group exists since some kinds of groups are registered in only one
of them (bug#35208).

5 years agoUpdate nxml-mode.texi: completion now gives xmlns="-!-"
Noam Postavsky [Wed, 10 Apr 2019 23:29:38 +0000 (19:29 -0400)]
Update nxml-mode.texi: completion now gives xmlns="-!-"

* doc/misc/nxml-mode.texi (Completion): As of 2016-01-16 "* lisp/nxml:
Use standard completion; it also works for company-mode", completing
an attribute when there is only one candidate inserts both quotes.
Update the example accordingly.

5 years agoInhibit displaying help buffer in main window in perform-replace
Juri Linkov [Wed, 10 Apr 2019 20:48:13 +0000 (23:48 +0300)]
Inhibit displaying help buffer in main window in perform-replace

* lisp/replace.el (perform-replace): Use
display-buffer-overriding-action with inhibit-same-window to prevent
the help buffer from being displayed in the main window.  (Bug#34972)

Author: Michał Krzywkowski <k.michal@zoho.com>
Copyright-paperwork-exempt: yes

5 years agoFix $(MAKE) -C for out-of-tree bootstraps
Paul Eggert [Wed, 10 Apr 2019 17:06:21 +0000 (10:06 -0700)]
Fix $(MAKE) -C for out-of-tree bootstraps

Problem reported by Andy Moreton in:
https://lists.gnu.org/r/emacs-devel/2019-04/msg00359.html
* src/Makefile.in (${charsets}, $(lispsource)/loaddefs.el):
Revert incorrect changes to $(MAKE) -C invocations when the
target is in the source tree not the build tree.

5 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 10 Apr 2019 16:07:16 +0000 (09:07 -0700)]
Merge from origin/emacs-26

5999401 (origin/emacs-26) Note that choose-completion-string-function...
8d2f1df Address name conflicts in EIEIO documentation (bug#31660)

5 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 10 Apr 2019 16:07:16 +0000 (09:07 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

00a2d57 Clarify the TESTFN argument to `alist-get'

5 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 10 Apr 2019 16:07:16 +0000 (09:07 -0700)]
Merge from origin/emacs-26

a5da653 * src/editfns.c (Fnarrow_to_region): Doc fix.  (Bug#35163)
646d33d Fix doc strings of 'vc-version-diff' and 'vc-version-ediff'
a30a6c3 Improve documentation of set-window-start
92ce2dd Improve documentation of window parameters
6dc42c5 Improve commentary in frame.el
a8cffcf Fix typo in a doc string
9e79f19 (emacs-26) ; * src/fontset.c (set-fontset-font): Use uppercas...

# Conflicts:
# lisp/vc/vc.el

5 years ago* test/lisp/progmodes/python-tests.el: "Fix" failing test
Stefan Monnier [Wed, 10 Apr 2019 14:39:50 +0000 (10:39 -0400)]
* test/lisp/progmodes/python-tests.el: "Fix" failing test

(python-tests--python-nav-end-of-statement--infloop): Disable.

5 years agoEshell dependencies: Fix recent regressions
Stefan Monnier [Wed, 10 Apr 2019 14:11:50 +0000 (10:11 -0400)]
Eshell dependencies: Fix recent regressions

* lisp/dired.el (dired-insert-directory): Tweak bug#27817's ugly hack.

* lisp/eshell/em-ls.el: Refine 'require's.

* lisp/eshell/esh-opt.el: Require esh-util on behalf of its clients.

5 years agoNote that choose-completion-string-functions funcs take four args
Eric Abrahamsen [Wed, 10 Apr 2019 03:13:47 +0000 (20:13 -0700)]
Note that choose-completion-string-functions funcs take four args

* lisp/simple.el (choose-completion-string-functions): Functions in
  this list actually need to accept four arguments, though the fourth
  should be ignored.

5 years ago* etc/NEWS: Document js-jsx-align->-with-<
Jackson Ray Hamilton [Wed, 10 Apr 2019 02:53:37 +0000 (19:53 -0700)]
* etc/NEWS: Document js-jsx-align->-with-<

5 years agoAdd new defcustom js-jsx-align->-with-<
Jackson Ray Hamilton [Wed, 10 Apr 2019 02:42:49 +0000 (19:42 -0700)]
Add new defcustom js-jsx-align->-with-<

* lisp/progmodes/js.el (js-jsx-align->-with-<): New variable for users
to control one opinionated aspect of JSX indentation.  It defaults to
the style seen in the React docs, which many users expected as the
“correct” indentation.  Still, the old SGML-style of indentation could
be desirable too, especially since it was the old default.  This
ensures users have a way of getting back the old behavior.
(js-jsx--contextual-indentation): Respect js-jsx-align->-with-<.

* test/manual/indent/jsx-align-gt-with-lt.jsx: New test for
js-jsx-align->-with-<.

5 years ago* etc/NEWS: Document way to revert to old JSX indentation behavior
Jackson Ray Hamilton [Wed, 10 Apr 2019 01:50:28 +0000 (18:50 -0700)]
* etc/NEWS: Document way to revert to old JSX indentation behavior

5 years agoAdd new defcustom js-jsx-indent-level
Jackson Ray Hamilton [Wed, 10 Apr 2019 01:44:36 +0000 (18:44 -0700)]
Add new defcustom js-jsx-indent-level

* lisp/progmodes/js.el (js-jsx-indent-level): New variable for users
to set JSX indentation differently than JS, like before.
(js-jsx--contextual-indentation): Respect js-jsx-indent-level when
it’s set.

* test/manual/indent/jsx-indent-level.jsx: New test for
js-jsx-indent-level.

5 years agoAddress name conflicts in EIEIO documentation (bug#31660)
Gemini Lasswell [Thu, 22 Nov 2018 21:00:03 +0000 (13:00 -0800)]
Address name conflicts in EIEIO documentation (bug#31660)

* doc/misc/eieio.texi (Quick Start): Rename the class used in the
example from 'record' to 'person'.
(Building Classes): Advise user to check for name conflicts before
naming a class.  Add a missing apostrophe.
(Making New Objects): Correct grammar.  Rename the class used in the
example from 'record' to 'my-class'.

5 years agoRemove the need for temacs.in
Paul Eggert [Tue, 9 Apr 2019 22:42:10 +0000 (15:42 -0700)]
Remove the need for temacs.in

Instead of building a file temacs.in used only to compute a
fingerprint, compute the fingerprint directly from the .o and
.a files that go into temacs.in.  This speeds up the build by
avoiding the need to link temacs twice, once with a dummy
fingerprint.
* lib-src/make-fingerprint.c (main): No need to generate
a fingerprint file that includes config.h, now that fingerprint.c
depends on all the .o files.
* src/Makefile.in ($(libsrc)/make-fingerprint$(EXEEXT)):
Use the same rule as $(libsrc)/make-docfile$(EXEEXT).
* src/fingerprint-dummy.c: Remove.
* src/Makefile.in (${charsets}, $(libsrc)/make-docfile$(EXEEXT))
($(LIBEGNU_ARCHIVE), $(lwlibdir)/liblw.a, $(oldXMenudir)/libXMenu11.a)
(../config.status, ${ETAGS}, ../lisp/TAGS, $(lwlibdir)/TAGS)
($(lispsource)/loaddefs.el):
Prefer ‘$(MAKE) -C $(dir $@)’ to ‘${MAKE} -C SOMESTRING’ when
either will do, as the former is more regular and lets us
coalesce rules better.
(EMACS_DEPS_PRE, EMACS_DEPS_POST, BUILD_EMACS_PRE)
(BUILD_EMACS_POST, temacs.in$(EXEEXT)): Remove.
(FINGERPRINTED): New macro.
(fingerprint.c): Use it instead of temacs.in$(EXEEXT), to
avoid the need to build temacs.in at all.
(temacs$(EXEEXT)): No need to depend on other .o files now;
fingerprint.o is enough, since it depends on the rest.
Spell out what used to be in BUILD_EMACS_PRE and BUILD_EMACS_POST.
(mostlyclean): No need to remove temacs.in.

5 years agoRemove assumption of uint64_t etc. in portable code
Paul Eggert [Tue, 9 Apr 2019 22:42:10 +0000 (15:42 -0700)]
Remove assumption of uint64_t etc. in portable code

C11 doesn’t guarantee the existence of types like uint64_t,
so avoid these types in portable code, as it’s easy to do so.
There’s no need to avoid the types in w32-specific code,
since w32 is guaranteed to have them.
* lib-src/make-fingerprint.c (main):
* src/fingerprint-dummy.c:
* src/fingerprint.h:
* src/pdumper.c (dump_fingerprint, struct dump_header):
Prefer unsigned char to uint8_t in portable code, as either will do.
Put an "#include <config.h>" in fingerprint.c files, so
that the corresponding .o file is rebuilt after ./configure is run.
* lib-src/make-fingerprint.c (main):
Simplify loop.
* src/Makefile.in (fingerprint.c): Update atomically.
* src/pdumper.c: Omit unnecessary check that off_t is the same
size as int32_t or int64_t, as the code does not rely on this
assumption.
(dump_off): Use int_least32_t, not int32_t.
(struct dump_reloc): Use unsigned int, not uint32_t.
(dump_anonymous_allocate_w32, dump_anonymous_allocate_posix)
(dump_anonymous_allocate, dump_map_file_w32, dump_map_file_posix)
(dump_map_file:
Do the sanity checks at compile time, not at run-time, to avoid
usage of uint64_t etc. on non-w32 platforms.

5 years agoRemove dmpstruct.h
Paul Eggert [Tue, 9 Apr 2019 22:42:10 +0000 (15:42 -0700)]
Remove dmpstruct.h

The hassles of updating the dmpstruct.h-using code bit me again.
These updates are more trouble than they’re worth.  See:
https://lists.gnu.org/r/emacs-devel/2019-03/msg00122.html
As I’m the main person who’s made changes in this area since
dmpstruct.h was introduced, I’m the most motivated to clean up
the situation.
* make-dist (possibly_non_vc_files): Remove src/dmpstruct.h.
* src/Makefile.in (dmpstruct_headers, dmpstruct.h): Remove.
(pdumper.o): Do not depend on dmpstruct.h.
(mostlyclean): Do not remove dmpstruct.h.
* src/dmpstruct.awk: Remove.
* src/pdumper.c: Do not include dmpstruct.h.
(CHECK_STRUCTS): Remove.  All uses removed.

5 years agodiff-font-lock-syntax: clarify distinction between t and hunk-also
Stefan Monnier [Tue, 9 Apr 2019 22:39:22 +0000 (18:39 -0400)]
diff-font-lock-syntax: clarify distinction between t and hunk-also

* lisp/vc/diff-mode.el (diff-font-lock-syntax): Rework docstring.
(diff-syntax-fontify-hunk): Never use the hunk method when
diff-font-lock-syntax is just t.

5 years agoUse lexical-binding in bug-reference.el
Alex Branham [Tue, 9 Apr 2019 21:27:50 +0000 (16:27 -0500)]
Use lexical-binding in bug-reference.el

* .dir-locals.el: Set bug-reference-url-format in all modes, not just
changelog mode. Use (eval . (bug-reference-mode)) as described
in (info "(emacs) Specifying File Variables")
* lisp/progmodes/bug-reference.el: Use lexical binding.
(bug-reference-unfontify):
(bug-reference-fontify): Mention args in docstring.

Bug#35123

5 years agoFix Gnus duplicate suppression guards (bug#34987)
Basil L. Contovounesios [Mon, 25 Mar 2019 02:15:10 +0000 (02:15 +0000)]
Fix Gnus duplicate suppression guards (bug#34987)

* lisp/gnus/gnus-dup.el (gnus-dup-enter-articles)
(gnus-dup-suppress-articles): Use gnus-dup-hashtb as an indicator of
initialization instead of gnus-dup-list, which may happen to be nil.
(gnus-dup-unsuppress-article): Do nothing if gnus-dup-hashtb is
uninitialized.

5 years ago* lisp/printing.el: Use lexical-binding
Stefan Monnier [Tue, 9 Apr 2019 20:28:42 +0000 (16:28 -0400)]
* lisp/printing.el: Use lexical-binding

Require easy-menu instead of adding declarations.
Remove backward compatiblity.  Remove redundant ':group' args.
(pr-region-active-p): Use use-region-p.
(pr-set-keymap-name): Delete function and callers.
(pr-set-keymap-parents): Delete function; use set-keymap-parent instead.
(pr-read-string): Delete function; use read-string instead.
(pr-menu-char-height): Delete function; use frame-char-height instead.
(pr-menu-char-width): Delete function; use frame-char-width instead.
(pr-menu-position): Merge the two definitions.
(pr-get-symbol): Delete function; use easy-menu-intern instead.
(pr-update-mode-line): Delete function; use force-mode-line-update instead.
(pr-do-update-menus): Turn local save-var into dynbound pr--save-var.
(pr-menu-alist): Use setf.  Simplify since we don't keep key-bindings
in the menus any more.
(pr-dosify-file-name): Remove interactive spec.
(pr-filename-style): Rename from pr-path-style.
(pr-unixify-file-name): Delete function.
(pr-standard-file-name): Don't turn \ into / under POSIX.
(pr-temp-dir): Don't dosify.  Use temporary-file-directory unconditionally.
(pr-save-file-modes): Delete macro.
(pr-ps-directory-using-ghostscript, pr-ps-directory-print)
(pr-ps-directory-ps-print, pr-ps-mode-using-ghostscript, pr-ps-print)
(pr-ps-mode-preview, pr-ps-mode-print, pr-printify-directory)
(pr-txt-directory, pr-ps-file-up-preview, pr-ps-directory-preview)
(pr-ps-file-up-ps-print, pr-ps-preview, pr-ps-using-ghostscript):
Use properly prefixed, declared, and
explicitly let-bound dynamically bound variables around calls to
pr-ps-utility-args and pr-set-dir-args.
(pr-ps-file-using-ghostscript): Only dosify when passing to suprocess.
(pr-expand-file-name): Delete function; use expand-file-name instead.
(pr-ps-file-print): Properly dosify.
(pr-menu-create): Use backquotes.
(pr-eval-alist, pr-eval-local-alist): Use dolist.
(pr-ps-utility-args): Don't dosify here.
(pr-ps-utility-process): Dosify here instead.
(pr-ps-file, pr-command): Don't dosify here either.
(pr-interface-map): Move initialization into declaration.
(pr-insert-section-1): Use 'push'.
(pr-insert-toggle): Use closure instead of backquoted lambda.
(pr-insert-menu): Use apply i.s.o eval.
(pr-insert-radio-button): Avoid 'eval'.

5 years agoquail.el: Use delete-and-extract-region
Stefan Monnier [Tue, 9 Apr 2019 19:11:38 +0000 (15:11 -0400)]
quail.el: Use delete-and-extract-region

* lisp/international/quail.el (quail-overlay-region-events):
Use delete-and-extract-region.
(quail-activate): Use setq-local.

5 years agopython.el: don't syntax-propertize single/double quoted strings
Stefan Monnier [Tue, 9 Apr 2019 19:08:21 +0000 (15:08 -0400)]
python.el: don't syntax-propertize single/double quoted strings

* lisp/progmodes/python.el (python-syntax-propertize-function):
Only mark triple-quoted strings, let the normal syntax-table handle
the rest.
(python-syntax-stringify): Adjust accordingly.

5 years ago* lisp/progmodes/js.el (js-mode): Don't set comment-start-skip globally!
Stefan Monnier [Tue, 9 Apr 2019 19:02:00 +0000 (15:02 -0400)]
* lisp/progmodes/js.el (js-mode): Don't set comment-start-skip globally!

5 years agoFix up Eshell 'require's after previous dependency reshuffle.
Stefan Monnier [Tue, 9 Apr 2019 18:57:29 +0000 (14:57 -0400)]
Fix up Eshell 'require's after previous dependency reshuffle.

* lisp/eshell/em-unix.el:
* lisp/eshell/em-script.el:
* lisp/eshell/em-pred.el:
* lisp/eshell/em-dirs.el:
* lisp/eshell/em-alias.el:
Fix up 'require's to silence byte-compiler.

* lisp/eshell/esh-util.el (eshell-read-hosts-file): Don't limit number
of entries per line.  Preserve the structure.
(eshell-read-hosts): Adjust accordingly.

5 years agoClarify the TESTFN argument to `alist-get'
Mattias Engdegård [Tue, 9 Apr 2019 14:56:37 +0000 (16:56 +0200)]
Clarify the TESTFN argument to `alist-get'

* lisp/subr.el (alist-get):
Rephrase the initial text to clarify the meaning of the TESTFN argument.
It's an equality predicate, not a look-up function (Bug#35206).

(cherry picked from commit c81465580fe262f28ce47502c00f4afcbe3b8f8d)

5 years ago* lisp/gnus/mm-view.el (mm-display-inline-fontify): Simplify.
Stefan Monnier [Tue, 9 Apr 2019 16:04:03 +0000 (12:04 -0400)]
* lisp/gnus/mm-view.el (mm-display-inline-fontify): Simplify.

Remove hacks that were needed before font-lock-ensure.
Don't use switch-to-buffer.  Don't assume point-min == 1.

5 years ago; Warn of while/dolist pitfall in gnus-sum.el
Basil L. Contovounesios [Tue, 9 Apr 2019 15:32:27 +0000 (16:32 +0100)]
; Warn of while/dolist pitfall in gnus-sum.el

Suggested by Andy Moreton in the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg00294.html
* lisp/gnus/gnus-sum.el (gnus-summary-move-article): Add comment
warning of common while/dolist pitfall. (bug#33653#134)