]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoFix handling of -xrm on MS-Windows broken by recent commits
Eli Zaretskii [Tue, 28 May 2019 16:58:27 +0000 (19:58 +0300)]
Fix handling of -xrm on MS-Windows broken by recent commits

* src/w32reg.c (w32_get_string_resource): The argument V_RDB
is a 'char **', not a 'char *'.  This fixes -xrm handling on
MS-Windows, broken by conversion of x_get_string_resource to
terminal-specific hook.

5 years ago* lisp/frameset.el: Stop using obsolete registerv objects
Stefan Monnier [Tue, 28 May 2019 13:05:25 +0000 (09:05 -0400)]
* lisp/frameset.el: Stop using obsolete registerv objects

(frameset-register): New type.
(register-val-jump-to): Define on this new type, replacing
frameset--jump-to-register.
(register-val-describe): Define on this new type, replacing
frameset--print-register.
(frameset-to-register): Use new frameset-make-register.
(frameset--reuse-frame): η-reduce.

5 years agoCleanup of TODO to prefer report-emacs-bug
Stefan Kangas [Sun, 26 May 2019 16:08:01 +0000 (18:08 +0200)]
Cleanup of TODO to prefer report-emacs-bug

* etc/TODO: Remove already completed removal of `report-calc-bug'.
* lisp/calc/calc.el: Remove any mention of `report-calc-bug'.
* lisp/epg-config.el: Redefine `epg-bug-report-address' as obsolete
variable alias for `report-emacs-bug-address'.
* lisp/expand.el: Remove any mention of `expand-submit-report'.
* lisp/obsolete/fast-lock.el: Remove commented out code for
`fast-lock-submit-bug-report'.

5 years agoSupport tool bar icon image also on GTK+2 with cairo
YAMAMOTO Mitsuharu [Tue, 28 May 2019 08:31:57 +0000 (17:31 +0900)]
Support tool bar icon image also on GTK+2 with cairo

* src/gtkutil.c (xg_get_pixbuf_from_surface) [USE_CAIRO && !HAVE_GTK3]: New
function.
(xg_get_image_for_pixmap) [USE_CAIRO && !HAVE_GTK3]: Use it.
(xg_tool_item_stale_p, update_frame_tool_bar) [USE_CAIRO && !HAVE_GTK3]: Use
cairo code also on GTK+2.

5 years ago* test/lisp/autorevert-tests.el: Give on on remote hydra.nixos tests.
Glenn Morris [Tue, 28 May 2019 00:20:12 +0000 (17:20 -0700)]
* test/lisp/autorevert-tests.el: Give on on remote hydra.nixos tests.

(auto-revert--test-enabled-remote): Disable on hydra.nixos.

5 years ago* test/lisp/autorevert-tests.el: Try to fix remote hydra.nixos tests.
Glenn Morris [Mon, 27 May 2019 21:08:07 +0000 (14:08 -0700)]
* test/lisp/autorevert-tests.el: Try to fix remote hydra.nixos tests.

5 years agoRemap `complete-symbol' in CSS mode
Simen Heggestøyl [Mon, 27 May 2019 19:12:53 +0000 (21:12 +0200)]
Remap `complete-symbol' in CSS mode

* lisp/textmodes/css-mode.el (css-mode-map): Remap `complete-symbol'
to `completion-at-point'.
(css-mode): Update docstring to produce the right key binding.

5 years agoCorrectly eliminate duplicate cases in switch compilation
Mattias Engdegård [Fri, 17 May 2019 09:25:06 +0000 (11:25 +0200)]
Correctly eliminate duplicate cases in switch compilation

Fix code mistakes that prevented the correct elimination of duplicated
cases when compiling a `cond' form to a switch bytecode, as in

  (cond ((eq x 'a) 1)
        ((eq x 'b) 2)
        ((eq x 'a) 3)   ; should be elided
        ((eq x 'c) 4))

Sometimes, this caused the bytecode to use the wrong branch (bug#35770).

* lisp/emacs-lisp/bytecomp.el (byte-compile-cond-vars): Return obj2 eval'ed.
(byte-compile-cond-jump-table-info):
Discard redundant condition.  Use `obj2' as evaluated.
Discard duplicated cases instead of failing the table generation.
* test/lisp/emacs-lisp/bytecomp-tests.el (toplevel): Require subr-x.
(byte-opt-testsuite-arith-data, bytecomp-test--switch-duplicates): Test.

5 years agoAnother attempt to fix Bug#35769
Michael Albinus [Mon, 27 May 2019 07:21:37 +0000 (09:21 +0200)]
Another attempt to fix Bug#35769

* lisp/net/tramp.el (tramp-call-process, tramp-call-process-region)
(tramp-process-lines): Suppress `process-environment' entries
dedicated for remote processes.  (Bug#35769)

5 years ago; Fix read-multiple-choice test
Noam Postavsky [Mon, 27 May 2019 01:55:00 +0000 (21:55 -0400)]
; Fix read-multiple-choice test

* test/lisp/emacs-lisp/rmc-tests.el (test-read-multiple-choice):
Rebind read-event, read-multiple-choice uses that since 2019-05-26
"Avoid infloop in read-multiple-choice (Bug#32257)".

5 years agoAdd a menu bar menu for CSS mode
Simen Heggestøyl [Sun, 26 May 2019 19:37:05 +0000 (21:37 +0200)]
Add a menu bar menu for CSS mode

* lisp/textmodes/css-mode.el (css-mode-map): Add menu bar menu.

5 years ago* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Revert fix for Bug#35769
Michael Albinus [Sun, 26 May 2019 19:37:34 +0000 (21:37 +0200)]
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Revert fix for Bug#35769

5 years ago; * INSTALL.REPO: Start by telling how to clone the repository.
Eli Zaretskii [Sun, 26 May 2019 16:32:46 +0000 (19:32 +0300)]
; * INSTALL.REPO: Start by telling how to clone the repository.

5 years agoAvoid infloop in read-multiple-choice (Bug#32257)
Noam Postavsky [Wed, 22 May 2019 00:38:00 +0000 (20:38 -0400)]
Avoid infloop in read-multiple-choice (Bug#32257)

* lisp/emacs-lisp/rmc.el (read-multiple-choice): Use `read-event'
which won't get stuck (return the same event over and over again) for
non-character events, unlike `read-char'.

5 years agoTweak recent additions in tabify-tests.el
Basil L. Contovounesios [Sun, 26 May 2019 10:23:03 +0000 (11:23 +0100)]
Tweak recent additions in tabify-tests.el

* test/lisp/tabify-tests.el (tabify-tests--test-changes): Rename
third argument to avoid "lexical argument shadows dynamic variable"
warnings.  Use mapconcat in place of mapcar+concat.
(tabify-tests-untabify, tabify-tests-tabify): Quote function symbols
as such.

5 years agoUse lexical-binding in paren.el and add tests
Simen Heggestøyl [Sun, 26 May 2019 09:11:23 +0000 (11:11 +0200)]
Use lexical-binding in paren.el and add tests

* lisp/paren.el: Use lexical-binding.
(show-paren--default): Use imperative form in doc-string.

* test/lisp/paren-tests.el: New file with tests for paren.el.

5 years agoUpdate author/maintainer info
Paul Eggert [Sun, 26 May 2019 07:58:28 +0000 (00:58 -0700)]
Update author/maintainer info

Update email addresses and fix spellings of some author and
maintainer names.

5 years agoRemove Maintainer: when it duplicates Author:
Paul Eggert [Sun, 26 May 2019 07:58:27 +0000 (00:58 -0700)]
Remove Maintainer: when it duplicates Author:

The convention is that a file with Author: but not Maintainer:
means the author is a maintainer, which makes it confusing
when a file lists the same person as author and maintainer.
Avoid the confusion by removing the duplicate Maintainer: line.

5 years agoUse lexical-binding in tabify.el and add tests
Stefan Kangas [Sun, 26 May 2019 01:33:39 +0000 (18:33 -0700)]
Use lexical-binding in tabify.el and add tests

* lisp/tabify.el: Use lexical-binding.
* test/lisp/tabify-tests.el: New file.

5 years ago* CONTRIBUTE: Split git configuration from fetch-and-build
Paul Eggert [Sun, 26 May 2019 01:29:16 +0000 (18:29 -0700)]
* CONTRIBUTE: Split git configuration from fetch-and-build

5 years ago; Minor docstring change
Dmitry Gutov [Sat, 25 May 2019 22:48:27 +0000 (01:48 +0300)]
; Minor docstring change

5 years agoDocument ‘Maintainer: emacs-devel@gnu.org’
Paul Eggert [Sat, 25 May 2019 21:23:56 +0000 (14:23 -0700)]
Document ‘Maintainer: emacs-devel@gnu.org’

* doc/lispref/tips.texi (Library Headers): Document that the
Maintainer: line now says ‘emacs-devel@gnu.org’ rather than ‘FSF’.

5 years agoGo back to "Maintainer: emacs-devel@gnu.org"
Paul Eggert [Sat, 25 May 2019 20:43:06 +0000 (13:43 -0700)]
Go back to "Maintainer: emacs-devel@gnu.org"

Restore lines saying "Maintainer: emacs-devel@gnu.org" when there is
no special maintainer for a file.  Although this wasn't documented
it was common practice and removing the lines didn't have consensus.

5 years ago; etc/NEWS: Consolidate the Xref entries
Dmitry Gutov [Sat, 25 May 2019 21:21:33 +0000 (00:21 +0300)]
; etc/NEWS: Consolidate the Xref entries

5 years ago; xref--create-fetcher: Add some further clarification
Dmitry Gutov [Sat, 25 May 2019 21:18:12 +0000 (00:18 +0300)]
; xref--create-fetcher: Add some further clarification

5 years agoExpand some xref documentation
Dmitry Gutov [Sat, 25 May 2019 21:14:10 +0000 (00:14 +0300)]
Expand some xref documentation

* lisp/progmodes/xref.el (xref-show-xrefs-function)
(xref-show-definitions-function, xref--create-fetcher):
Add or extend the docstring.

5 years agoImplement and document XDG-style startup files under ~/.config.
Eric S. Raymond [Sat, 25 May 2019 17:22:44 +0000 (13:22 -0400)]
Implement and document XDG-style startup files under ~/.config.

* lisp/startup.el (command-line): Allow XDG-style as well as old
 style init paths.
* doc/startup.texi: Document the above change.

5 years agoRemove redundants "See" before @xref or @pxref (Bug#35793)
Mauro Aranda [Sat, 18 May 2019 20:35:04 +0000 (17:35 -0300)]
Remove redundants "See" before @xref or @pxref (Bug#35793)

* doc/misc/gnus.texi (Group Parameters): Remove redundant "See" before
cross reference, add comma after it.

5 years ago* doc/misc/tramp.texi (Obtaining Tramp): Tramp is available via GNU ELPA.
Michael Albinus [Sat, 25 May 2019 11:24:47 +0000 (13:24 +0200)]
* doc/misc/tramp.texi (Obtaining Tramp): Tramp is available via GNU ELPA.

5 years ago; Add NEWS entries for recent Xref changes
Dmitry Gutov [Fri, 24 May 2019 21:40:34 +0000 (00:40 +0300)]
; Add NEWS entries for recent Xref changes

5 years agoRename xref--revert-xref-buffer to xref-refresh-results
Dmitry Gutov [Fri, 24 May 2019 21:15:46 +0000 (00:15 +0300)]
Rename xref--revert-xref-buffer to xref-refresh-results

* lisp/progmodes/xref.el (xref-refresh-results):
Rename from xref--revert-xref-buffer (bug#35702).

5 years agoSupport reverting in xref-find-definitions results as well
Dmitry Gutov [Fri, 24 May 2019 21:11:41 +0000 (00:11 +0300)]
Support reverting in xref-find-definitions results as well

* lisp/progmodes/xref.el (xref--show-xref-buffer): Expect the
first argument to always be a function (bug#35702).  Handle a
FETCHED-XREFS entry in ALIST.
(xref--show-defs-buffer): Update accordingly.
(xref--create-fetcher): Extract from xref--find-xrefs.
(xref--find-definitions): Use it.

5 years ago* lisp/emacs-lisp/package.el (package-install-from-archive): Fix last change
Stefan Monnier [Fri, 24 May 2019 16:26:14 +0000 (12:26 -0400)]
* lisp/emacs-lisp/package.el (package-install-from-archive): Fix last change

Don't place the unibyte content of of the downloaded file into
a multibyte buffer.

5 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Fri, 24 May 2019 13:36:15 +0000 (15:36 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

5 years agoFix Bug#35769
Michael Albinus [Fri, 24 May 2019 13:36:02 +0000 (15:36 +0200)]
Fix Bug#35769

* lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile):
* lisp/net/tramp-integration.el (tramp-connection-local-default-profile):
Do not set it on w32 systems.  (Bug#35769)

5 years agoAdd "Enter Auth" prompt handling for OpenVPN (Bug#35724)
Matthew Bauer [Mon, 13 May 2019 22:39:32 +0000 (18:39 -0400)]
Add "Enter Auth" prompt handling for OpenVPN (Bug#35724)

* lisp/comint.el (comint-password-prompt-regexp): Allow "Enter Auth"
at the beginning.

5 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Dmitry Gutov [Fri, 24 May 2019 01:53:39 +0000 (04:53 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

5 years agoSupport "reverting" Xref buffers (bug#35702)
Dmitry Gutov [Fri, 24 May 2019 01:50:44 +0000 (04:50 +0300)]
Support "reverting" Xref buffers (bug#35702)

* lisp/progmodes/xref.el (xref--fetcher): New variable.
(xref--xref-buffer-mode-map): Add binding for 'g'.
(xref--revert-xref-buffer): New command.
(xref--show-xref-buffer): Accept a function as the first argument.
(xref--show-xrefs): Same.
(xref--find-xrefs): Pass the above a fetcher function.

* lisp/progmodes/project.el (project-find-regexp)
(project-or-external-find-regexp): Same.

* lisp/dired-aux.el (dired-do-find-regexp): Same.

5 years agoUndo use of Emacs_Pixmap over Pixmap for x_kill_gs_process
YAMAMOTO Mitsuharu [Fri, 24 May 2019 00:52:56 +0000 (09:52 +0900)]
Undo use of Emacs_Pixmap over Pixmap for x_kill_gs_process

* src/dispextern.h (x_kill_gs_process):
* src/image.c (x_kill_gs_process): Undo use of Emacs_Pixmap over Pixmap.
* src/dispextern.h (x_kill_gs_process): Move extern inside HAVE_X_WINDOWS.

5 years agoImprove documentation of the 'function' special form
Michael Heerdegen [Sat, 27 Apr 2019 07:40:10 +0000 (09:40 +0200)]
Improve documentation of the 'function' special form

Point out that 'function' quoting is beneficial also for symbols.

* src/eval.c (function): Enhance docstring.
* doc/lispref/functions.texi (Anonymous Functions): Improve
documentation.

5 years ago* lisp/emacs-lisp/cl-macs.el (cl-callf): Tweak in docstring
Michael Heerdegen [Thu, 23 May 2019 22:50:20 +0000 (00:50 +0200)]
* lisp/emacs-lisp/cl-macs.el (cl-callf): Tweak in docstring

Say that lambdas are also allowed as FUNC argument.

5 years agoAvoid backslash-newline-newline in source code
Paul Eggert [Thu, 23 May 2019 06:58:55 +0000 (23:58 -0700)]
Avoid backslash-newline-newline in source code

* etc/refcards/Makefile (PDF_FRENCH):
* lib-src/etags.c (LOOP_ON_INPUT_LINES):
* lisp/dabbrev.el (dabbrev-check-other-buffers):
* lisp/org/org-id.el (org-id-link-to-org-use-id):
* lisp/org/org.el (org-support-shift-select, org-file-apps):
* src/alloc.c (CHECK_ALLOCATED_AND_LIVE)
(CHECK_ALLOCATED_AND_LIVE_SYMBOL):
* src/frame.h (FRAME_PIXEL_WIDTH_TO_TEXT_COLS):
* src/regex-emacs.c (PREFETCH_NOLIMIT):
* src/window.h (WINDOW_BUFFER):
Remove backslash-newline that immediately precedes another
newline, as this is not the usual style and is confusing.

5 years agoUnbreak display of characters on MS-Windows
Eli Zaretskii [Thu, 23 May 2019 05:26:32 +0000 (08:26 +0300)]
Unbreak display of characters on MS-Windows

* src/w32font.c (w32font_draw): Convert the glyph_string's
char2b array to 16-bit WCHAR data that ExtTextOutW needs.

5 years ago* lisp/cedet/srecode/insert.el: Use lexical-binding
Stefan Monnier [Thu, 23 May 2019 03:29:17 +0000 (23:29 -0400)]
* lisp/cedet/srecode/insert.el: Use lexical-binding

(srecode-insert-method): No need for lexical-let any more.

5 years ago* lisp/allout.el, lisp/allout-widgets.el: Use cl-lib and pcase
Stefan Monnier [Thu, 23 May 2019 03:21:47 +0000 (23:21 -0400)]
* lisp/allout.el, lisp/allout-widgets.el: Use cl-lib and pcase

5 years agoMake Cairo build obey hint-style font setting (Bug#35781)
YAMAMOTO Mitsuharu [Thu, 23 May 2019 01:30:59 +0000 (10:30 +0900)]
Make Cairo build obey hint-style font setting (Bug#35781)

* src/ftfont.h (ftfont_open2): Remove extern.
(ftfont_fix_match, ftfont_add_rendering_parameters)
(ftfont_entity_pattern): Add externs.
(struct font_info): Remove member bitmap_strike_index.
(struct font_info) [USE_CAIRO]: Remove member ft_size_draw.  All uses removed.
Add member bitmap_position_unit.

* src/xftfont.c (xftfont_fix_match, xftfont_add_rendering_parameters): Move
functions from here ...
* src/ftfont.c (ftfont_fix_match, ftfont_add_rendering_parameters): ... to
here.  All uses changed.
* src/xftfont.c (xftfont_open): Extract FcPattern creation from font entity
from here ...
* src/ftfont.c (ftfont_entity_pattern): ... to here.
* src/xftfont.c (syms_of_xftfont): Move DEFSYMs for Fontconfig's rendering
parameters from here ...
* src/ftfont.c (syms_of_ftfont): ... to here.

* src/ftfont.c (ftfont_open, ftfont_open2): Undo introduction of
bitmap_strike_index.  Merge functions into ftfont_open.

* src/ftcrfont.c (ftcrfont_open): Align code with xftfont_open rather than
ftfont_open.
(ftcrfont_close): Likewise.
(ftcrfont_has_char, ftcrfont_encode_char):
(ftcrfont_otf_capability) [HAVE_LIBOTF]:
(ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: New functions.
(ftcrfont_driver): Register them.
(ftcrfont_get_bitmap, ftcrfont_anchor_point):
(ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]: Use bitmap_position_unit
instead of bitmap_strike_index to screen bitmap fonts.
(ftcrfont_get_bitmap, ftcrfont_anchor_point):
(ftcrfont_otf_capability) [HAVE_LIBOTF]:
(ftcrfont_shape) [HAVE_M17N_FLT && HAVE_LIBOTF]:
(ftcrfont_variation_glyphs) [HAVE_OTF_GET_VARIATION_GLYPHS]: Temporarily
assign ftcrfont_info->ft_size and call corresponding ftfont functions.
(ftcrfont_draw): Don't flush cairo surface when exporting.

5 years agoFix url-copy-file argument handling
Basil L. Contovounesios [Thu, 16 May 2019 15:29:49 +0000 (16:29 +0100)]
Fix url-copy-file argument handling

For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00500.html
* lisp/url/url-handlers.el: Update autoloaded docstrings.
Quote function symbols as such.
(url-handler-regexp): Make grouping construct shy.
(url-file-handler, url-insert-buffer-contents)
(url-handlers-create-wrapper, url-handlers-set-buffer-mode):
Simplify.
(url-file-handler-identity): Clarify calling convention.
(file-name-absolute-p, url-file-local-copy): Mark ignored arguments
as such.
(url-handler-directory-file-name): Prefer string comparison over
regexp match where either will do.
(url-copy-file): Handle integer as third argument as per copy-file.

5 years ago* lisp/textmodes/sgml-mode.el: Fix lone `>` in sgml text
Stefan Monnier [Wed, 22 May 2019 22:36:37 +0000 (18:36 -0400)]
* lisp/textmodes/sgml-mode.el: Fix lone `>` in sgml text

(sgml--syntax-propertize-ppss):New variable and function.
(sgml-syntax-propertize-rules): Use it.
Don't ignore quotes not followed by a matching quote or a '>' or '<'.
(sgml-syntax-propertize): Set up sgml--syntax-propertize-ppss.

* test/lisp/textmodes/sgml-mode-tests.el (sgml-tests--quotes-syntax):
Add test for lone '>'.

5 years agoMake xref-find-definitions more customizable
Dmitry Gutov [Wed, 22 May 2019 22:30:50 +0000 (01:30 +0300)]
Make xref-find-definitions more customizable

* lisp/progmodes/xref.el (xref--show-defs-buffer): New function.
Move a bit of logic from xref--show-defs to make it more
customizable.
(xref--push-markers): New function, extracted from
xref--show-xrefs.
(xref-show-definitions-function): Set to the new function.

5 years agoSeparate xref-find-definitions' behavior from other commands
Dmitry Gutov [Wed, 22 May 2019 22:16:41 +0000 (01:16 +0300)]
Separate xref-find-definitions' behavior from other commands

* lisp/progmodes/xref.el (xref-show-definitions-function):
New variable.
(xref--show-defs): Split off from xref--show-xrefs.
(xref--find-definitions): Use it.
(xref--not-found-error): New function.
(xref--show-xrefs): Simplify.  Show the list buffer even when
there is just one item in the list.  Remove the last argument.

* lisp/dired-aux.el (dired-do-find-regexp): Update accordingly.

5 years agoRemove fixnum restriction on some display vars
Paul Eggert [Wed, 22 May 2019 20:25:47 +0000 (13:25 -0700)]
Remove fixnum restriction on some display vars

This is a minor patch to remove some fixnum restrictions.
Many more such patches are needed, but one thing at a time.
* doc/emacs/custom.texi (Examining): Update fill-column example.
* src/buffer.c (fill-column, left-margin, tab-width)
(buffer-saved-size, left-margin-width, right-margin-width)
(left-fringe-width, right-fringe-width, scroll-bar-width)
(scroll-bar-height, buffer-display-count):
Allow any integer; do not restrict to fixnums.
* src/character.h (SANE_TAB_WIDTH): Do not assume tab_width
is a nonnegative fixnum.
(sanitize_tab_width): Take a Lisp_Object integer, not an
EMACS_INT.  Only use changed.
* src/data.c (store_symval_forwarding): Remove unnecessary
SYMBOLP since the predicate (e.g., Qintegerp) is always a
symbol (leave the test in as an eassert).  Avoid assignments
inside if-conditions.
* src/fileio.c (Fdo_auto_save): Do not assume
buffer-saved-size is a fixnum.  Avoid undefined behavior
on EMACS_INT overflow by multiplying a fixnum by at most 4,
not by at most 13.
* src/window.c (set_window_buffer): When buffer-display-count
is too large for a fixnum, make it a bignum.
* src/xdisp.c (FILL_COLUMN_INDICATOR_NEEDED): Remove macro, ...
(fill_column_indicator_column): ... replacing with this new function.
All uses changed.  The function is a bit pickier, to prevent
problems with non-character fixnums and columns out of range
for int, and to remove the assumption that integers are in
fixnum range.
(append_space_for_newline, extend_face_to_end_of_line):
Avoid undefined behavior with signed integer overflow.
Simplify.

5 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 22 May 2019 17:18:51 +0000 (10:18 -0700)]
Merge from origin/emacs-26

b0da915 (origin/emacs-26, emacs-26) Fix a typo in ELisp manual
400907b Add option to disable help completion autoloading (Bug#28607)
122ba16 Don't segfault on force-window-update of deleted window
015b12e Fix typo in ELisp manual
eadf044 Remove repeated function call in picture.el
1228a90 ; Fix mm-destroy-parts docstring typo
6cfd68d Fix Hideshow key binding typo in Emacs manual

5 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 22 May 2019 17:18:51 +0000 (10:18 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

7ce4b35 Backport: Fix name of gnus-summary-sort-by-mark(s)

5 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 22 May 2019 17:18:51 +0000 (10:18 -0700)]
Merge from origin/emacs-26

5d24af8 Remove from docs references to obsolete MULE variables
2bdc419 Do potentially destructive operations in prepare-commit-msg

# Conflicts:
# src/search.c

5 years agoFix a typo in ELisp manual
Tom Levy [Tue, 21 May 2019 02:25:31 +0000 (14:25 +1200)]
Fix a typo in ELisp manual

* doc/lispref/sequences.texi (Sequence Functions): Fix a typo.
(Bug#35817)

Copyright-paperwork-exempt: yes

5 years ago* src/xfont.c (xfont_draw): Allocate the XChar2b array (Bug#35814)
Alexander Gramiak [Tue, 21 May 2019 20:58:59 +0000 (14:58 -0600)]
* src/xfont.c (xfont_draw): Allocate the XChar2b array (Bug#35814)

5 years agoFix some deprecation notices on macOS 10.14
Alan Third [Tue, 2 Apr 2019 20:49:36 +0000 (21:49 +0100)]
Fix some deprecation notices on macOS 10.14

* src/nsimage.m ([EmacsImage setXBMColor:]): Replace colorSpaceName
code.
* src/nsmenu.m ([EmacsDialogPanel initWithContentRect:styleMask:]):
Remove reference to oneShot.
* src/nsterm.h (ns_enable_screen_updates): Remove function prototype.
(NSPasteboardTypeString):
(NSPasteboardTypeTabularText):
(NSControlStateValueOn):
(NSControlStateValueOff):
(NSBezelStyleRounded):
(NSPasteboardTypeURL): Define new names and replace all callers.
* src/nsterm.m ([EmacsColor colorUsingDefaultColorSpace]): Replace
calls to colorUsingColorSpaceName on macOS > 10.7.
([EmacsView performDragOperation:]): Add FIXME about deprecation.
(ns_disable_screen_updates):
(ns_enable_screen_updates): Remove functions and all callers.
(disable_screen_updates_count): Remove variable.
* src/macfont.m (macfont_draw): Use CGContext instead of graphicsPort
on macOS >= 10.10

5 years agoPacify libpng on interlaced images (Bug#35843)
Paul Eggert [Tue, 21 May 2019 15:51:48 +0000 (08:51 -0700)]
Pacify libpng on interlaced images (Bug#35843)

* src/image.c (png_set_interlace_handling) [WINDOWSNT]:
New function to link.
(init_png_functions): Link it.
(png_load_body): Call it before calling png_read_update_info.

5 years agoRemove time-date debugging scaffolding
Paul Eggert [Tue, 21 May 2019 15:13:04 +0000 (08:13 -0700)]
Remove time-date debugging scaffolding

Problem reported by Lars Ingebrigtsen in:
https://lists.gnu.org/r/emacs-devel/2019-05/msg00721.html
* lisp/calendar/time-date.el (date-to-time):
Use plain condition-case, not condition-case-unless-debug.

5 years agoUse lexical-binding in tempo.el and add tests
Federico Tedin [Tue, 14 May 2019 12:16:00 +0000 (09:16 -0300)]
Use lexical-binding in tempo.el and add tests

For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00395.html
* lisp/tempo.el: Use lexical-binding.
(tempo-define-template): Expand documentation to mention
`tempo-user-elements'.
(tempo-local-tags, tempo-collection, tempo-dirty-collection)
(tempo-marks, tempo-match-finder): Define with defvar-local.
(tempo-named-insertions, tempo-region-start, tempo-region-stop): Make
them automatically buffer-local.
* test/lisp/tempo-tests.el: Add tests for tempo.el.

5 years agoC Mode: Fix indentation of DEFUN's function's argument list.
Alan Mackenzie [Tue, 21 May 2019 11:47:14 +0000 (11:47 +0000)]
C Mode: Fix indentation of DEFUN's function's argument list.

Formally, when DEFUNs still used knr argument lists, these were indented by
the syntactic context knr-argdecl-intro (5 columns).  Since this is no longer
the case, we now just use c-basic-offset (2 columns in "gnu" style).

* lisp/progmodes/cc-align.el (c-indent-gnu-DEFUN-intro-cont): Modernize the
indentation.  Amend the doc string accordingly.

5 years agoAdd option to disable help completion autoloading (Bug#28607)
Noam Postavsky [Thu, 16 May 2019 00:29:38 +0000 (20:29 -0400)]
Add option to disable help completion autoloading (Bug#28607)

* lisp/help-fns.el (help-enable-completion-auto-load): New option.
(help--symbol-completion-table): Consult it.
* doc/emacs/building.texi (Lisp Libraries): Document it.
* etc/NEWS: Announce it.
* doc/lispref/loading.texi (Autoload by Prefix): New section.
(Autoload): Reference it.

5 years ago* src/ftcrfont.c (ftcrfont_open): Skip zero glyph index.
YAMAMOTO Mitsuharu [Mon, 20 May 2019 23:49:07 +0000 (08:49 +0900)]
* src/ftcrfont.c (ftcrfont_open): Skip zero glyph index.

5 years agoRevert recent project-find-file change
Stephen Leake [Mon, 20 May 2019 22:24:47 +0000 (15:24 -0700)]
Revert recent project-find-file change

* lisp/progmodes/project.el (project-find-file): Delete recently added
'filename' arg; just use project-find-file-in.

5 years agoDon't segfault on force-window-update of deleted window
Noam Postavsky [Sun, 19 May 2019 17:05:55 +0000 (13:05 -0400)]
Don't segfault on force-window-update of deleted window

* src/window.c (Fforce_window_update): Do nothing for deleted
windows (Bug#35784).

5 years agoFix typo in ELisp manual
Mauro Aranda [Sun, 19 May 2019 14:36:26 +0000 (11:36 -0300)]
Fix typo in ELisp manual

* doc/lispref/variables.texi (Directory Local Variables): Fix typo in
dir-locals-set-class-variables description.  (Bug#35799)

5 years agoRemove repeated function call in picture.el
Mauro Aranda [Fri, 17 May 2019 13:00:01 +0000 (10:00 -0300)]
Remove repeated function call in picture.el

* lisp/textmodes/picture.el (picture-mode-map):  Remove repeated
define-key call.  (Bug#35772)

5 years agoAllow zero-argument rx `or' and `seq' forms
Mattias Engdegård [Wed, 15 May 2019 20:44:00 +0000 (22:44 +0200)]
Allow zero-argument rx `or' and `seq' forms

Make the rx `or' and `seq' forms accept zero arguments to produce a
never-matching regexp and an empty string, respectively.

* lisp/emacs-lisp/rx.el: Require cl-extra.
(rx-constituents, rx-or): Permit zero args.
(rx): Amend doc string for `or' and `seq'.
* test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-seq): Test the change.
* etc/NEWS (Changes in Specialized Modes and Packages): Mention the change.

5 years agoRevert "Allow zero-argument rx `or' and `seq' forms"
Mattias Engdegård [Mon, 20 May 2019 15:38:03 +0000 (17:38 +0200)]
Revert "Allow zero-argument rx `or' and `seq' forms"

This reverts commit b552fc05c231ca6800330a318d3a74ddd0f5a13c.
It caused a bootstrapping failure which I have yet to resolve - sorry.

5 years agoImprove C and Elisp Git diff hunk headers
Basil L. Contovounesios [Mon, 20 May 2019 14:53:49 +0000 (15:53 +0100)]
Improve C and Elisp Git diff hunk headers

For discussion, see the following threads:
https://lists.gnu.org/archive/html/emacs-devel/2019-03/msg00457.html
https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00369.html

* autogen.sh: Extend the built-in Git xfuncname pattern 'cpp' to
match preprocessor and DEFUN macros, and the 'elisp' pattern to
match cl-lib and other top-level defuns.

5 years agoUse lexical-binding in delim-col.el and add tests
Stefan Kangas [Sun, 5 May 2019 13:48:57 +0000 (15:48 +0200)]
Use lexical-binding in delim-col.el and add tests

Thanks to Basil L. Contovounesios for additional cleanups.
For discussion, see the following thread:
https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00177.html

* lisp/delim-col.el: Use lexical-binding.

* test/lisp/delim-col-tests.el: New file.
(delim-col-tests-delimit-colummns-before-after)
(delim-col-tests-delimit-columns)
(delim-col-tests-delimit-columns-format/nil)
(delim-col-tests-delimit-columns-format/padding)
(delim-col-tests-delimit-columns-format/separator)
(delim-col-tests-delimit-columns-separator)
(delim-col-tests-delimit-columns-str-before-after)
(delim-col-tests-delimit-columns-str-separator)
(delim-col-tests-delimit-rectangle): New unit tests.

5 years agoCC Mode: Remove unused code from c-maybe-re-mark-raw-string
Alan Mackenzie [Mon, 20 May 2019 12:46:37 +0000 (12:46 +0000)]
CC Mode: Remove unused code from c-maybe-re-mark-raw-string

Acknowledge that when the function is called, it is always at the start of a
string, never in the middle or at the end of one.

* lisp/progmodes/cc-engine.el (c-maybe-re-mark-raw-string): Reformulate the
cond form into a `when' form, with all but the first arm of the cond
discarded.

5 years ago; Fix last change to nnheader-cancel-timer
Basil L. Contovounesios [Mon, 20 May 2019 12:38:32 +0000 (13:38 +0100)]
; Fix last change to nnheader-cancel-timer

* lisp/gnus/nnheader.el (nnheader-cancel-timer)
(nnheader-cancel-function-timers): Remove defalias calls made
redundant by subsequent define-obsolete-function-alias calls.

5 years agow32--os-description: Fix previous change
Lars Ingebrigtsen [Mon, 20 May 2019 12:34:36 +0000 (14:34 +0200)]
w32--os-description: Fix previous change

* lisp/w32-fns.el (w32--os-description): Fix inadvertant "o" added
to the end of the function name in the previous patch (bug#35807).

5 years agoMark nnheader-cancel-timer as obsolete and adjust callers
Lars Ingebrigtsen [Mon, 20 May 2019 11:47:16 +0000 (13:47 +0200)]
Mark nnheader-cancel-timer as obsolete and adjust callers

* lisp/gnus/nnheader.el (nnheader-cancel-timer)
(nnheader-cancel-function-timers): Mark as obsolete.

* lisp/gnus/nntp.el (nntp-with-open-group-function)
(nntp-async-stop): Adjust caller.

* lisp/gnus/gnus-art.el (gnus-stop-date-timer): Ditto.

* lisp/gnus/gnus-async.el (gnus-async-prefetch-next): Ditto.

* lisp/gnus/gnus-demon.el (gnus-demon-run-callback)
(gnus-demon-cancel): Ditto.

* lisp/gnus/mail-source.el (mail-source-report-new-mail): Ditto.

* lisp/gnus/nnmaildir.el (nnmaildir-request-accept-article): Ditto.

5 years agoAllow zero-argument rx `or' and `seq' forms
Mattias Engdegård [Wed, 15 May 2019 20:44:00 +0000 (22:44 +0200)]
Allow zero-argument rx `or' and `seq' forms

Make the rx `or' and `seq' forms accept zero arguments to produce a
never-matching regexp and an empty string, respectively.

* lisp/emacs-lisp/rx.el (rx-constituents, rx-or): Permit zero args.
(rx): Amend doc string for `or' and `seq'.
* test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-seq): Test the change.
* etc/NEWS (Changes in Specialized Modes and Packages): Mention the change.

5 years agoAvoid polling in global-auto-revert-mode (bug#35418)
Mattias Engdegård [Thu, 9 May 2019 07:40:46 +0000 (09:40 +0200)]
Avoid polling in global-auto-revert-mode (bug#35418)

Make `auto-revert-avoid-polling' have effect in global-auto-revert-mode.
Buffers actually handled by that mode are marked with a non-nil value
of `auto-revert--global-mode'.  When global-auto-revert-mode is
entered, eligible buffers are marked in that way, and hooks are set up
to mark new buffers and take care of buffers whose file names change.
This way the existing poll-avoidance logic can be used, since the
entire set of buffers in auto-revert is known.

A new hook, `after-set-visited-file-name-hook', was added to handle
the case when the file name of a tracked buffer changes.

* lisp/autorevert.el (auto-revert-avoid-polling): Amend doc string.
(auto-revert--global-mode): New buffer-local variable.
(global-auto-revert-mode): Mark existing buffers and set up hooks when
mode is entered; do the opposite when exited.
(auto-revert--global-add-current-buffer)
(auto-revert--global-adopt-current-buffer)
(auto-revert--set-visited-file-name-advice): New functions.
(auto-revert--polled-buffers, auto-revert--need-polling-p)
(auto-revert-notify-handler)
(auto-revert-active-p): Modify logic to cover global-auto-revert-mode.
* lisp/files.el (after-set-visited-file-name-hook): New hook.
(set-visited-file-name-hook): Call new hook.
* test/lisp/autorevert-tests.el (top):  Use lexical-binding.
(auto-revert-test--write-file, auto-revert-test--buffer-string)
(auto-revert-test--wait-for, auto-revert-test--wait-for-buffer-text)
(auto-revert-test05-global-notify): New test.
* doc/lispref/hooks.texi (Standard Hooks):
Mention new hook (in a comment, since it's unclear whether it should
actually be documented here)
* etc/NEWS (Changes in Specialized Modes and Packages): Update entry.

5 years agoFix problems in autorevert-tests
Michael Albinus [Mon, 20 May 2019 08:14:13 +0000 (10:14 +0200)]
Fix problems in autorevert-tests

* test/lisp/autorevert-tests.el (auto-revert--deftest-remote):
Fix typo.
(auto-revert-test02-auto-revert-deleted-file): On emba, there are
no stopped events.

5 years agoFixes for "Maintainer:" and related lines
Paul Eggert [Mon, 20 May 2019 04:29:13 +0000 (21:29 -0700)]
Fixes for "Maintainer:" and related lines

Mostly, this just removes "Maintainer: emacs-devel@gnu.org" lines,
which are not that useful.  It also cleans up and regularizes a
few similar lines.

5 years agoUse HAVE_WINDOW_SYSTEM over HAVE_X11 || HAVE_NTGUI || HAVE_NS
Alexander Gramiak [Mon, 20 May 2019 02:18:54 +0000 (20:18 -0600)]
Use HAVE_WINDOW_SYSTEM over HAVE_X11 || HAVE_NTGUI || HAVE_NS

* src/keyboard.c (kbd_buffer_get_event, make_lispy_event): Use
HAVE_WINDOW_SYSTEM.

5 years agoIntroduce Emacs_Pix_Container and Emacs_Pix_Context typedefs
Alexander Gramiak [Fri, 10 May 2019 23:12:39 +0000 (17:12 -0600)]
Introduce Emacs_Pix_Container and Emacs_Pix_Context typedefs

Emacs_Pix_Container is a pointer to a struct representing pixmap data
on the backend.  Emacs_Pix_Context is the context for the
bitmap/pixmap on the backend.  Only w32 currently makes this
distinction; they are otherwise the same type.

* src/dispextern.h: Remove XImagePtr in favor of
using XImage* directly. Rename XImagePtr_or_DC to Emacs_Pix_Context.
[HAVE_X_WINDOWS] Alias Emacs_Pix_Container and
Emacs_Pix_Context to XImage*.
[HAVE_NS] Alias Emacs_Pix_Container and Emacs_Pix_Context to trivial
Emacs_Pixmap definition.
[HAVE_NTGUI]: Alias Emacs_Pix_Container to XImage* and
Emacs_Pix_Context to HDC.

* src/dispextern.h:
* src/image.c: Use Emacs_Pix_Container over XImagePtr and
Emacs_Pix_Context over XImagePtr_or_DC.

5 years agoReplace XChar2b with unsigned in all font backends
Alexander Gramiak [Fri, 10 May 2019 15:45:57 +0000 (09:45 -0600)]
Replace XChar2b with unsigned in all font backends

The xfont backend using XChar2b in its API doesn't mean that we should
use it everywhere else.

* src/dispextern.h (glyph_string):
* src/ftcrfont.c (ftcrfont_draw):
* src/ftxfont.c (ftxfont_draw):
* src/w32term.c (w32_draw_glyphless_glyph_string_foreground):
* src/xdisp.c (init_glyph_string, get_char_face_and_encoding)
(get_glyph_face_and_encoding, get_char_glyph_code)
(fill_gstring_glyph_string, fill_stretch_glyph_string)
(normal_char_ascent_descent, gui_get_glyph_overhangs)
(compute_overhangs_and_x, gui_produce_glyphs):
* src/xfont.c (xfont_get_pcm, xfont_chars_supported, xfont_open)
(xfont_encode_char, xfont_text_extents, xfont_draw)
* src/xftfont.c (xftfont_draw):
* src/xterm.c (x_compute_glyph_string_overhangs)
(x_draw_glyphless_glyph_string_foreground): Use unsigned over XChar2b.

* src/nsgui.h:
* src/w32gui.h:
* src/xterm.h: Remove XChar2b, STORE_XCHAR2B, XCHAR2B_BYTE1, and
XCHAR2B_BYTE2 typedefs and macros.

* src/font.h (font_driver):
(ftfont_text_extents)
* src/ftcrfont.c (ftcrfont_text_extents):
* src/ftfont.c (ftfont_text_extents):
* src/macfont.m (macfont_text_extents):
* src/nsfont.m (nsfont_text_extents):
* src/w32font.h (w32_font_text_extents):
* src/font.c (xfont_text_extents):
* src/xftfont.c (xftfont_text_extents): Make code parameter const.

5 years agoIntroduce Emacs_GC struct and typedef
Alexander Gramiak [Fri, 10 May 2019 04:08:06 +0000 (22:08 -0600)]
Introduce Emacs_GC struct and typedef

* src/dispextern.h [HAVE_X_WINDOWS]: Alias Emacs_GC to XGCValues.
[!HAVE_X_WINDOWS]: Define Emacs_GC, GCForeground, and GCBackground.

* src/nsgui.h:
* src/w32gui.h:Remove obsolete XGCValues, GC, GCForeground,
GCBackground, and GCFont definitions.

* src/w32fns.c (w32_make_gc): Do not set unused font field.

* src/w32term.c: Use Emacs_GC over XGCValues. Do not set unused font
field.

* src/xfaces.c: Use Emacs_GC over XGCValues and GC.

5 years agoIntroduce Emacs_Rectangle struct and typedef
Alexander Gramiak [Fri, 10 May 2019 00:12:22 +0000 (18:12 -0600)]
Introduce Emacs_Rectangle struct and typedef

* src/dispextern.h [HAVE_X_WINDOWS]: Alias Emacs_Rectangle to
XRectangle.
[!HAVE_X_WINDOWS]: Define Emacs_Rectangle struct.
Use Emacs_Rectangle over XRectangle.

* src/frame.h (MonitorInfo):
* src/msdos.h:
* src/w32term.c:
* src/xdisp.c: Use Emacs_Rectangle over XRectangle.

* src/nsgui.h:
* src/w32gui.h: Remove old XRectangle structs.

* src/xdisp.c:
* src/nsgui.h:
* src/w32gui.h: Rename CONVERT_FROM_XRECT and CONVERT_TO_XRECT to
CONVERT_FROM_EMACS_RECT and CONVERT_TO_EMACS_RECT respectively.

5 years agoIntroduce Emacs_Pixmap typedef
Alexander Gramiak [Thu, 9 May 2019 23:48:55 +0000 (17:48 -0600)]
Introduce Emacs_Pixmap typedef

* src/dispextern.h [HAVE_X_WINDOWS]: Alias Emacs_Pixmap to Pixmap.
(image, x_kill_gs_process): Use Emacs_Pixmap over Pixmap.

* src/image.c:

* src/nsgui.h:
* src/nsterm.m:
* src/termhooks.h:
* src/w32gui.h:
* src/w32term.c:
* src/w32term.h:
* src/xterm.c (x_free_pixmap): Use Emacs_Pixmap over Pixmap.

* src/w32gui.h: Remove unused typedef Bitmap.

5 years agoIntroduce Emacs_Cursor typedef
Alexander Gramiak [Thu, 9 May 2019 23:13:18 +0000 (17:13 -0600)]
Introduce Emacs_Cursor typedef

* src/dispextern.h [HAVE_X_WINDOWS]: Define Emacs_Cursor alias. Move
the No_Cursor definition from xterm.h.
(redisplay_interface): Use Emacs_Cursor over Cursor.

* src/nsgui.h:
* src/nsterm.h:
* src/nsterm.m:
* src/w32gui.h:
* src/w32term.c:
* src/xdisp.c:
* src/xterm.c (x_define_frame_cursor): Use Emacs_Cursor over Cursor.

5 years agoIntroduce Emacs_Color struct and typedef
Alexander Gramiak [Thu, 9 May 2019 19:07:35 +0000 (13:07 -0600)]
Introduce Emacs_Color struct and typedef

This avoids clashing with the XColor struct from X.

* src/dispextern [HAVE_X_WINDOWS]: Define Emacs_Color alias.
[!HAVE_X_WINDOWS]: Rename XColor compatibility struct to
Emacs_Color. Remove unused fields.

* src/gtkutil.c:
* src/gtkutil.h:
* src/image.c:
* src/nsterm.h:
* src/nsterm.m:
* src/termhooks.h:
* src/w32fns.c:
* src/w32term.c:
* src/w32term.h:
* src/xfaces.c:
* src/xfns.c:
* src/xterm.h: Use Emacs_Color over XColor outside of X-specific
sections.

5 years ago; Fix mm-destroy-parts docstring typo
Basil L. Contovounesios [Sun, 19 May 2019 23:37:13 +0000 (00:37 +0100)]
; Fix mm-destroy-parts docstring typo

* lisp/gnus/mm-decode.el (mm-destroy-parts): Fix typo in docstring
copy-pasted from mm-remove-parts.

5 years ago; Remove some redundant Gnus autoloads
Basil L. Contovounesios [Sun, 19 May 2019 23:29:47 +0000 (00:29 +0100)]
; Remove some redundant Gnus autoloads

* lisp/gnus/nnheader.el:
* lisp/gnus/nnmail.el: Don't autoload functions from files already
loaded.

5 years agoComment out inexplicable condition in filenotify
Mattias Engdegård [Sun, 19 May 2019 20:43:31 +0000 (22:43 +0200)]
Comment out inexplicable condition in filenotify

* lisp/filenotify.el (file-notify-callback):
Comment out condition that does not seem to make any sense. All it
seems to do is allowing notifications for files on the form DIR/X/X
when we really just are watching DIR/X/Y.

5 years ago* lisp/vc/vc-dispatcher.el (vc-do-command): Let-bind inhibit-message to t
Juri Linkov [Sun, 19 May 2019 20:16:01 +0000 (23:16 +0300)]
* lisp/vc/vc-dispatcher.el (vc-do-command): Let-bind inhibit-message to t

in active minibuffer.  (Bug#34939)

5 years agoPublicize behavior of log-view-diff at beginning/end of active region
Juri Linkov [Sun, 19 May 2019 20:11:27 +0000 (23:11 +0300)]
Publicize behavior of log-view-diff at beginning/end of active region

* lisp/vc/log-view.el (log-view-diff, log-view-diff-changeset):
* doc/emacs/maintaining.texi (VC Change Log): Document behavior of
log-view-diff at the beginning and the end of the log buffer
when the region is active.  (Bug#35624)

* lisp/vc/vc-git.el (vc-git-print-log): Insert newline at the
beginning to enable the feature of diffing with the working revision.

5 years agocus-edit.el: Remove XEmacs compat code
Lars Ingebrigtsen [Sun, 19 May 2019 18:50:54 +0000 (20:50 +0200)]
cus-edit.el: Remove XEmacs compat code

* lisp/cus-edit.el (custom-browse-insert-prefix): Remove XEmacs
compat code and make obsolete.
(custom-group-value-create): Use `insert' directly.

* lisp/emacs-lisp/elint.el (elint-check-conditional-form): Don't
refer to function that doesn't have an if any more.

5 years agobs.el: Remove XEmacs compat code
Lars Ingebrigtsen [Sun, 19 May 2019 18:40:43 +0000 (20:40 +0200)]
bs.el: Remove XEmacs compat code

* lisp/bs.el (bs-mode-font-lock-keywords): Remove XEmacs compat code.
(bs-mode-map): Ditto.

5 years agoarc-mode.el: Remove XEmacs compat code
Lars Ingebrigtsen [Sun, 19 May 2019 18:37:54 +0000 (20:37 +0200)]
arc-mode.el: Remove XEmacs compat code

* lisp/arc-mode.el (archive-mode-map): Remove XEmacs compat code.
(archive-summarize-files): Ditto.

5 years agorfc2104.el: Remove XEmacs compat code.
Lars Ingebrigtsen [Sun, 19 May 2019 18:30:58 +0000 (20:30 +0200)]
rfc2104.el: Remove XEmacs compat code.

* lisp/net/rfc2104.el (rfc2104-string-make-unibyte): Remove XEmacs
  compat code.

5 years ago(mml-generate-mime-1): Remove XEmacs compat code
Lars Ingebrigtsen [Sun, 19 May 2019 18:26:48 +0000 (20:26 +0200)]
(mml-generate-mime-1): Remove XEmacs compat code

* lisp/gnus/mml.el (mml-generate-mime-1): Remove XEmacs compat code.

5 years ago; Instrument autorevert-tests
Michael Albinus [Sun, 19 May 2019 17:52:46 +0000 (19:52 +0200)]
; Instrument autorevert-tests

5 years agoMinor updates to project.el
Stephen Leake [Sun, 19 May 2019 17:28:46 +0000 (10:28 -0700)]
Minor updates to project.el

* lisp/progmodes/project.el (project-find-file): Add optional 'filename' arg.
(project--completing-read-strict): Ignore 'default' set to empty string.

5 years agoFix Gnus group sorting to use gnus-group-list
Eric Abrahamsen [Sun, 19 May 2019 16:57:50 +0000 (09:57 -0700)]
Fix Gnus group sorting to use gnus-group-list

* lisp/gnus/gnus-group.el (gnus-group-sort-flat): As
  gnus-newsrc-hashtb is now a real (unsorted) hash table, use
  gnus-group-list to maintain group sort order.
  (gnus-group-sort-selected-flat): Ditto.
* lisp/gnus/gnus-start.el (gnus-subscribe-alphabetically): Simplify
  function using seq-find.
  (gnus-subscribe-killed, gnus-subscribe-zombies): Use cl-pushnew to
  avoid adding duplicates (can happen when un/subscribing multiple
  times to one group).