]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoFix auto-revert resizing in image mode
Carlos Pita [Sun, 23 Jun 2019 20:49:47 +0000 (22:49 +0200)]
Fix auto-revert resizing in image mode

* lisp/image-mode.el (image-transform-properties): Get image
parameters right after reverting; in particular, compute the
correct max size (bug#33631).

5 years agoDon’t line-buffer stderr
Paul Eggert [Sun, 23 Jun 2019 20:26:14 +0000 (13:26 -0700)]
Don’t line-buffer stderr

* src/sysdep.c (init_standard_fds) [DOS_NT]: Don’t line-buffer stderr.
This reverts 2019-06-20T07:32:17!eggert@cs.ucla.edu.  See:
https://lists.gnu.org/r/emacs-devel/2019-06/msg00882.html

5 years agoCheck validity of rx submatch-n number
Mattias Engdegård [Thu, 7 Feb 2019 18:05:06 +0000 (19:05 +0100)]
Check validity of rx submatch-n number

* lisp/emacs-lisp/rx.el (rx-submatch): Type and range check (Bug#34373).

5 years agoOptional space and unit in `file-size-human-readable' (bug#35756)
Mattias Engdegård [Mon, 13 May 2019 15:05:24 +0000 (17:05 +0200)]
Optional space and unit in `file-size-human-readable' (bug#35756)

To improve readability of strings produced by
`file-size-human-readable', add two optional arguments:

- SPACE, to provide a string (typically a space or non-breaking space)
to put between the number and unit.  For compatibility, the default is
an empty string.

- UNIT, a string to use as unit.  For compatibility, the default is
"B" in `iec' mode and the empty string otherwise.

Also fix a glitch with small numbers in `iec' mode which caused a
stray "i" in the result.

* lisp/files.el (file-size-human-readable):
Add optional SPACE and UNIT arguments and handle small numbers correctly.
(files--ask-user-about-large-file, warn-maybe-out-of-memory):
Call with `iec' and space.
* test/lisp/files-tests.el (files-test-file-size-human-readable): New test.
* lisp/url/url-http.el (url-http-simple-after-change-function)
(url-http-content-length-after-change-function): Call with `iec' and space.
* etc/NEWS (Lisp Changes): Mention the change.

5 years ago(hfy-fontify-buffer): Inhibit read only
Michael Brumlow [Sun, 23 Jun 2019 18:10:21 +0000 (20:10 +0200)]
(hfy-fontify-buffer): Inhibit read only

* lisp/htmlfontify.el (hfy-fontify-buffer): Inhibit read only to
enable the function to work with text that comes from buffers that
put read-only text properties on things (bug#35025).

Copyright-paperwork-exempt: yes

5 years agoDocument Winner mode user options
Mauro Aranda [Sun, 23 Jun 2019 17:57:48 +0000 (19:57 +0200)]
Document Winner mode user options

* doc/emacs/windows.texi (Window Convenience): Add documentation for
the user options winner-dont-bind-my-keys, winner-ring-size and
winner-boring-buffers (bug#35146).

5 years agosrc/bytecode.c (exec_byte_code) Unroll Blist3 and Blist4
Alexander Gramiak [Sun, 23 Jun 2019 17:35:26 +0000 (19:35 +0200)]
src/bytecode.c (exec_byte_code) Unroll Blist3 and Blist4

* src/bytecode.c (exec_byte_code): Unroll Blist3 and Blist4
(bug#35321).

5 years agoAdd NEWS entry for new command gnus-summary-browse-url
Eric Abrahamsen [Sun, 23 Jun 2019 17:30:51 +0000 (10:30 -0700)]
Add NEWS entry for new command gnus-summary-browse-url

* etc/NEWS: It is documented in the manual.

5 years agoMake ls-lisp--dired ape dired-noselect more closely
Drew Adams [Sun, 23 Jun 2019 17:24:20 +0000 (19:24 +0200)]
Make ls-lisp--dired ape dired-noselect more closely

* lisp/ls-lisp.el (ls-lisp--dired): Emulate the behaviour of
non-ls-lisp.el dired better by defaulting to default-directory as
dired-noselect does (bug#35390).

5 years agoAdd a Code: tag to subr.el
Van L [Sun, 23 Jun 2019 17:07:38 +0000 (19:07 +0200)]
Add a Code: tag to subr.el

* lisp/subr.el: Add a Code: tag comment (bug#35595).

5 years agoRemove outdate comment about an utf-8 cookie that was removed in 2015
Lars Ingebrigtsen [Sun, 23 Jun 2019 17:05:45 +0000 (19:05 +0200)]
Remove outdate comment about an utf-8 cookie that was removed in 2015

5 years agoHandle 'code' tag in shr.el
Nick Drozd [Sun, 23 Jun 2019 12:19:43 +0000 (14:19 +0200)]
Handle 'code' tag in shr.el

* etc/NEWS: Announce change in shr behavior (bug#36247).
* lisp/net/shr.el: Add 'code' tag handling.

5 years agoNew command gnus-summary-browse-url
Eric Abrahamsen [Sun, 23 Jun 2019 15:09:23 +0000 (08:09 -0700)]
New command gnus-summary-browse-url

* lisp/gnus/gnus-sum.el (gnus-summary-browse-url): New command for
  browsing URLs from the article buffer from the summary buffer.
  (gnus-summary-mode-map): Bind to "w".
  (gnus-summary-article-map): And to "A w".
* doc/misc/gnus.texi (Article Commands): Document.

5 years agoImprove error handling in tramp-gvfs
Michael Albinus [Sun, 23 Jun 2019 16:58:11 +0000 (18:58 +0200)]
Improve error handling in tramp-gvfs

* lisp/net/tramp-gvfs.el (tramp-gvfs-get-directory-attributes)
(tramp-gvfs-get-root-attributes)
(tramp-gvfs-handle-file-attributes): Don't ignore errors.
(tramp-make-goa-name): New defun.
(tramp-gvfs-get-remote-prefix): Use it.
(tramp-gvfs-maybe-open-connection): Raise user errors in case of.
Check also, that GOA accounts are proper.
(tramp-get-goa-accounts): Cache connection property.

* lisp/net/tramp.el (tramp-handle-file-equal-p)
(tramp-handle-file-in-directory-p): Use `tramp-equal-remote'.

5 years ago; * src/image.c: Minor copyedits of native transform commentary.
Eli Zaretskii [Sun, 23 Jun 2019 16:24:32 +0000 (19:24 +0300)]
; * src/image.c: Minor copyedits of native transform commentary.

5 years agoDocument what the `t' value for HIST in `read-string' means
Lars Ingebrigtsen [Sun, 23 Jun 2019 12:05:55 +0000 (14:05 +0200)]
Document what the `t' value for HIST in `read-string' means

* src/minibuf.c (syms_of_minibuf): Say that `t' means "no history"
(bug#36324).
(Fread_from_minibuffer): Say the same for HIST.

5 years agoSplit up and add tests for two page.el functions
Simen Heggestøyl [Sat, 22 Jun 2019 10:49:04 +0000 (12:49 +0200)]
Split up and add tests for two page.el functions

* lisp/textmodes/page.el (page--count-lines-page): New function
extracted from `count-lines-page'.
(count-lines-page): Extract main logic into `page--count-lines-page'.
(page--what-page); New function extracted from `what-page'.
(what-page): Extract main logic into `page--what-page'.

* test/lisp/textmodes/page-tests.el (page-tests-count-lines-page)
(page-tests-what-page): New tests for `page--count-lines-page' and
`page--what-page'.  (Bug#36009)

5 years ago(with-suppressed-warnings): Also suppress warnings when not byte-compiling
Stefan Monnier [Sun, 23 Jun 2019 03:29:00 +0000 (23:29 -0400)]
(with-suppressed-warnings): Also suppress warnings when not byte-compiling

* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): Bind
byte-compile--suppressed-warnings when possible.

5 years agoFix defining inverse abbrevs on previous words (Bug#36243)
Allen Li [Sun, 16 Jun 2019 10:32:02 +0000 (03:32 -0700)]
Fix defining inverse abbrevs on previous words (Bug#36243)

* lisp/abbrev.el (inverse-add-abbrev): Skip trailing nonword
characters when defining abbrev.

* test/lisp/abbrev-tests.el (abbrev-edit-save-to-file-test): Add
regression tests.

5 years agoFix python docstring auto-fill (Bug#36056)
Noam Postavsky [Fri, 21 Jun 2019 11:49:22 +0000 (07:49 -0400)]
Fix python docstring auto-fill (Bug#36056)

* lisp/progmodes/python.el (python-mode): Set
fill-indent-according-to-mode locally to t.  This lets auto-fill do
the right thing when auto-filling inside a docstring.  The default was
to nil on 2001-11-25 "(fill-indent-according-to-mode): Default to nil"
with the comment that it "screws up CC-mode's filling tricks".  But
presumably it shouldn't be a problem for python-mode.
* test/lisp/progmodes/python-tests.el (python-auto-fill-docstring):
New test.

5 years agoMake rcirc parsing more RFC2812 compliant (Bug#36233)
Noam Postavsky [Sun, 16 Jun 2019 17:48:56 +0000 (13:48 -0400)]
Make rcirc parsing more RFC2812 compliant (Bug#36233)

Do continue to allow multiple spaces between arguments, even though
that is technically not allowed by the RFC.
* lisp/net/rcirc.el (rcirc-process-server-response-1): Fix parsing of
arguments which contain colons.
* test/lisp/net/rcirc-tests.el: New test.

5 years ago* lisp/net/rcirc.el (rcirc-prompt-for-encryption): Simplify.
Noam Postavsky [Sun, 16 Jun 2019 17:51:20 +0000 (13:51 -0400)]
* lisp/net/rcirc.el (rcirc-prompt-for-encryption): Simplify.

5 years agoBring macuvs.h back under Git control
Paul Eggert [Sat, 22 Jun 2019 18:35:45 +0000 (11:35 -0700)]
Bring macuvs.h back under Git control

* admin/unidata/Makefile.in (maintainer-clean):
Instead of removing macuvs.h here ...
(extraclean): ... Remove it here.
* admin/unidata/uvs.el (uvs-print-table-ivd):
Add to comment explaining why macuvs.h is in Git.
* src/macuvs.h: Regenerate and re-add to Git.

5 years agoRespect case-insensite DelSp flow-fill parameter
Lars Ingebrigtsen [Sat, 22 Jun 2019 14:25:36 +0000 (16:25 +0200)]
Respect case-insensite DelSp flow-fill parameter

* lisp/gnus/mm-view.el (mm-inline-text): The DelSp parameter is
case-insentitive, so make it work then it's "Yes" (bug#26775).

5 years ago(nnir-notmuch-remove-prefix): Respect MAILDIR
Andreas Schwab [Sat, 22 Jun 2019 12:55:06 +0000 (14:55 +0200)]
(nnir-notmuch-remove-prefix): Respect MAILDIR

* lisp/gnus/nnir.el (nnir-notmuch-remove-prefix): Respect MAILDIR
and regexp-quote the result (bug#34940).

5 years agoUse plain report-emacs-bug instead of gnus-bug
Lars Ingebrigtsen [Sat, 22 Jun 2019 12:10:00 +0000 (14:10 +0200)]
Use plain report-emacs-bug instead of gnus-bug

* doc/misc/gnus.texi (Compatibility): Remove mention of deprecated
variable.
* lisp/gnus/gnus-msg.el (gnus-bug): Just use `report-emacs-bug'.
(gnus-bug-kill-buffer): Remove.
(gnus-bug-create-help-buffer, gnus-bug-message): Remove.

5 years agoExport Gnus calendar events to org even if they have no description
Robert Pluim [Sat, 22 Jun 2019 11:16:24 +0000 (13:16 +0200)]
Export Gnus calendar events to org even if they have no description

* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event->org-entry):
Don't ignore events that have no description.

5 years agoMake ftcr font backend driver more consistent with xft
YAMAMOTO Mitsuharu [Sat, 22 Jun 2019 10:03:27 +0000 (19:03 +0900)]
Make ftcr font backend driver more consistent with xft

* src/ftcrfont.c: Include charset.h.
(ftcrfont_has_char): Import font adstyle related code from ftfont_has_char.

5 years ago; * lisp/select.el (xselect--encode-string): Fix a thinko.
Eli Zaretskii [Sat, 22 Jun 2019 09:38:05 +0000 (12:38 +0300)]
; * lisp/select.el (xselect--encode-string): Fix a thinko.

5 years agoRemove XEmacs compat code from savehist.el (reworked)
Lars Ingebrigtsen [Sat, 22 Jun 2019 09:36:43 +0000 (11:36 +0200)]
Remove XEmacs compat code from savehist.el (reworked)

* lisp/savehist.el (savehist-coding-system, savehist-install)
(savehist-uninstall, savehist-save): Remove XEmacs compat code.
(savehist-trim-history): Made obsolete.
(savehist-minibuffer-hook): Update comment to reflect the t value
of HISTORY in `read-string'.

5 years agoepg: Use unibyte string to decode percent escapes
Christophe Troestler [Wed, 5 Jun 2019 13:37:04 +0000 (15:37 +0200)]
epg: Use unibyte string to decode percent escapes

* lisp/epg.el (epg--status-USERID_HINT, epg--status-*SIG)
(epg--status-IMPORTED): Call epg--decode-percent-escape-as-utf-8.
(epg--decode-percent-escape): Convert STRING to unibyte.
(epg--decode-percent-escape-as-utf-8): New function.  (Bug#36098)

Copyright-paperwork-exempt: yes

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 22 Jun 2019 09:16:08 +0000 (12:16 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoAdd tests for mail/flow-fill.el
Stefan Kangas [Tue, 11 Jun 2019 21:35:15 +0000 (23:35 +0200)]
Add tests for mail/flow-fill.el

* test/lisp/mail/flow-fill-tests.el: New file.
* lisp/mail/flow-fill.el (fill-flowed-encode-tests)
(fill-flowed-test): Make obsolete.  (Bug#36174)

5 years agoMake toolbar show keyboard equivalents in its tooltips
Stefan Kangas [Sun, 9 Jun 2019 02:27:09 +0000 (04:27 +0200)]
Make toolbar show keyboard equivalents in its tooltips

* src/keyboard.c (parse_tool_bar_item): Add equivalent key binding to
the tooltip string of toolbar buttons.
* etc/NEWS: Announce it.
* etc/TODO: Remove its entry.  (Bug#36156)

5 years agoUpdate epg.el algorithm id-name association lists
Teemu Likonen [Sat, 22 Jun 2019 09:06:14 +0000 (11:06 +0200)]
Update epg.el algorithm id-name association lists

* lisp/epg.el (epg-pubkey-algorithm-alist)
(epg-digest-algorithm-alist, epg-compress-algorithm-alist): Add
new identifiers from openpgpdefs.h.

5 years ago; * etc/NEWS: Mention the last change in NEWS.
Eli Zaretskii [Sat, 22 Jun 2019 09:08:38 +0000 (12:08 +0300)]
; * etc/NEWS: Mention the last change in NEWS.

5 years agoMove mantemp.el to obsolete/
Stefan Kangas [Thu, 13 Jun 2019 12:07:12 +0000 (14:07 +0200)]
Move mantemp.el to obsolete/

* lisp/progmodes/mantemp.el: Move to obsolete/. (bug#34789)
* doc/emacs/ack.texi (Acknowledgments): Remove obsolete library
mantemp.el.

5 years agoFix an off-by-one error in assertion
Eli Zaretskii [Sat, 22 Jun 2019 08:59:16 +0000 (11:59 +0300)]
Fix an off-by-one error in assertion

* src/fileio.c (Fexpand_file_name): Fix off-by-one error in an
assertion.  This avoids assertion violations when the home
directory is an empty string for some reason.  (Bug#36363)

5 years agoCorrect and update the mapping of LaTeX encodings
Eli Zaretskii [Sat, 22 Jun 2019 08:51:50 +0000 (11:51 +0300)]
Correct and update the mapping of LaTeX encodings

* lisp/international/latexenc.el
(latex-inputenc-coding-alist): Fix the association of latin5.
(Bug#36253) Uncomment latin10 and map it to iso-8859-16.

5 years agoAvoid using string-make-unibyte in select.el
Eli Zaretskii [Sat, 22 Jun 2019 08:34:23 +0000 (11:34 +0300)]
Avoid using string-make-unibyte in select.el

* lisp/select.el (selection-coding-system): Doc fix.
(xselect--encode-string): For C_STRING, if the text is not
already unibyte, use encode-coding-string instead of
string-make-multibyte to make it unibyte.

5 years agoMake ftcr font backend driver more consistent with xft
YAMAMOTO Mitsuharu [Sat, 22 Jun 2019 06:33:32 +0000 (15:33 +0900)]
Make ftcr font backend driver more consistent with xft

* src/ftcrfont.c (ftcrfont_open): Use metrics of glyph ID 0 if there is no
glyph for an ASCII printable.

5 years ago* src/font.c (Ffont_xlfd_name): Don't use strcpy for overlapping strings.
YAMAMOTO Mitsuharu [Sat, 22 Jun 2019 02:37:25 +0000 (11:37 +0900)]
* src/font.c (Ffont_xlfd_name): Don't use strcpy for overlapping strings.

5 years agoFix default build-from-Git on macOS
Paul Eggert [Fri, 21 Jun 2019 23:22:26 +0000 (16:22 -0700)]
Fix default build-from-Git on macOS

* configure.ac (NS_IMPL_COCOA): Do not default to "yes" if
src/macuvs.h is absent, which is possible in a build from Git.

5 years agoRemove src/macuvs.h from Git repository
Paul Eggert [Fri, 21 Jun 2019 21:45:35 +0000 (14:45 -0700)]
Remove src/macuvs.h from Git repository

It can be generated automatically and easily during a normal
bootstrap, so there’s no need to keep it in the repository.
* admin/unidata/Makefile.in (maintainer-clean):
Behave like extraclean and remove macuvs.h etc.
* src/macuvs.h: Remove.

5 years agoRevert "Remove XEmacs compat code from savehist.el"
Lars Ingebrigtsen [Fri, 21 Jun 2019 16:51:14 +0000 (18:51 +0200)]
Revert "Remove XEmacs compat code from savehist.el"

This reverts commit a97ba6eb305c9db8641c0e65748907cd53dbfa5e.

According to bug#36324, this broke savehist.el

5 years ago* lisp/emacs-lisp/bytecomp.el (byte-compile-dynamic): Mark obsolete
Stefan Monnier [Fri, 21 Jun 2019 14:30:50 +0000 (10:30 -0400)]
* lisp/emacs-lisp/bytecomp.el (byte-compile-dynamic): Mark obsolete

See bug#11649 for an example problem, and emacs-devel discussion
«Prickliness of the "invalid byte code" stuff».

* lisp/wid-edit.el, lisp/wdired.el, lisp/vc/pcvs-util.el:
* lisp/progmodes/executable.el, lisp/mail/sendmail.el:
* lisp/emacs-lisp/cl-seq.el, lisp/emacs-lisp/cl-macs.el:
* lisp/emacs-lisp/cl-lib.el, lisp/emacs-lisp/cl-extra.el:
* lisp/dired-x.el, lisp/dired-aux.el, lisp/calendar/calendar.el:
Don't use byte-compile-dynamic any more.

5 years ago* lisp/vc/ediff-*.el: Use lexical-binding, plus misc cleanup
Stefan Monnier [Fri, 21 Jun 2019 05:16:54 +0000 (01:16 -0400)]
* lisp/vc/ediff-*.el: Use lexical-binding, plus misc cleanup

Re-enable lexical-binding in ediff.  For that, change ediff-find-file
so as not to rely on dynamic scoping in its calling convention.

* lisp/vc/ediff-diff.el: Move `provide` to the end.
Remove redundant :group.
(ediff-exec-process): Disregard current directory.
(ediff-forward-word-function): Use defvar-local.

* lisp/vc/ediff-help.el (ediff-set-help-message): Use functionp.

* lisp/vc/ediff-hook.el (menu-bar-ediff-misc-menu): Make a toggle, as
in the XEmacs menu.

* lisp/vc/ediff-init.el (ediff-defvar-local): Add `doc-string` prop.
(ediff-check-version): Delete function, unused.

* lisp/vc/ediff-mult.el: Move `provide` to the end.
Remove redundant :groups.
(ediff-dir-diffs-buffer-map):
Move initialization into declaration.
(ediff-meta-mode): Use define-derived-mode.
(ediff-intersect-directories): Remove `comparison-func`, unused.
(ediff-prepare-meta-buffer): Fix use of `startup-hooks`.

* lisp/vc/ediff-ptch.el: Move `provide` to the end.

* lisp/vc/ediff-util.el (ediff-add-to-history): Use add-to-history instead.

* lisp/vc/ediff-vers.el (ediff-vc-internal, ediff-vc-merge-internal):
Use push and closures.

* lisp/vc/ediff-wind.el: Remove redundant :groups.

* lisp/vc/ediff.el: Move `provide` to the end.
Remove redundant :groups.
(ediff--magic-file-name, ediff--startup-hook): New vars.
(ediff-find-file): Change calling convention so as not to use
symbols as value cells.
(ediff--buffer-file-name): New function.
(ediff-files-internal): Adjust to new calling convention of ediff-find-file.
(ediff-directories-internal, ediff-directory-revisions-internal)
(ediff-regions-internal): Use push and closures.

5 years ago* src/xterm.c (x_update_end) [USE_CAIRO]: Flush non-double-buffered surface.
YAMAMOTO Mitsuharu [Fri, 21 Jun 2019 00:28:50 +0000 (09:28 +0900)]
* src/xterm.c (x_update_end) [USE_CAIRO]: Flush non-double-buffered surface.

5 years agoFix blank tooltips on cairo (Bug#36298)
YAMAMOTO Mitsuharu [Fri, 21 Jun 2019 00:25:47 +0000 (09:25 +0900)]
Fix blank tooltips on cairo (Bug#36298)

* src/xterm.h (x_cr_update_surface_desired_size) [USE_CAIRO]: Add extern.
* src/xterm.c (x_cr_update_surface_desired_size) [USE_CAIRO]: Make non-static.
* src/xfns.c (Fx_show_tip) [USE_CAIRO]: Call x_cr_update_surface_desired_size.

5 years agoFix broken display by frame maximization on cairo (Bug#23925)
YAMAMOTO Mitsuharu [Fri, 21 Jun 2019 00:20:34 +0000 (09:20 +0900)]
Fix broken display by frame maximization on cairo (Bug#23925)

* src/xterm.c (handle_one_xevent) [USE_CAIRO && USE_GTK]: Make calls to
x_cr_update_surface_desired_size coincide with those to xg_frame_resized.

5 years ago* lisp/vc/vc-dir.el (vc-dir-search): Avoid `eval`.
Stefan Monnier [Thu, 20 Jun 2019 21:45:52 +0000 (17:45 -0400)]
* lisp/vc/vc-dir.el (vc-dir-search): Avoid `eval`.

5 years agoFix extraclean in a different way for info+lib/sys
Paul Eggert [Thu, 20 Jun 2019 18:18:14 +0000 (11:18 -0700)]
Fix extraclean in a different way for info+lib/sys

* Makefile.in (extraclean):
* lib/Makefile.in (extraclean): Use rmdir but suppress any
error indication.  That way, ‘make extraclean’ will remove the
directory if it’s empty, and successfully do nothing otherwise.

5 years agoFix aborts when the value of a display property causes redisplay
Eli Zaretskii [Thu, 20 Jun 2019 18:07:37 +0000 (21:07 +0300)]
Fix aborts when the value of a display property causes redisplay

* src/xdisp.c (handle_single_display_spec): Protect the bidi
cache from evaluation that triggers redisplay.  (Bug#36312)

5 years agoLeave the emtpy info and lib/sys in extraclean
Lars Ingebrigtsen [Thu, 20 Jun 2019 16:50:52 +0000 (18:50 +0200)]
Leave the emtpy info and lib/sys in extraclean

* lib/Makefile.in: Ditto.

* Makefile.in (extraclean): Don't use GNU-specific rmdir; just
leave the empty directory be.

5 years agoSimplify lib-src version printing
Paul Eggert [Thu, 20 Jun 2019 15:56:22 +0000 (08:56 -0700)]
Simplify lib-src version printing

* lib-src/Makefile.in (etags_cflags): Remove.
All uses replaced by a simple ‘-o $@’.
(ebrowse${EXEEXT}, emacsclient${EXEEXT}, emacsclientw${EXEEXT}):
Omit -DVERSION= option.
* lib-src/ebrowse.c (VERSION):
* lib-src/emacsclient.c (VERSION):
* lib-src/etags.c (EMACS_NAME, VERSION): Remove.
All uses replaced by PACKAGE_NAME and PACKAGE_VERSION.
* lib-src/ebrowse.c (version):
* lib-src/etags.c (print_version):
Use fputs to output the version info, since that’s fputs_unlocked.
* lib-src/etags.c (PROGRAM_NAME): New macro.
(print_version): Use it.

5 years agoMake extraclean return tree to pristine state by deleting more
Lars Ingebrigtsen [Thu, 20 Jun 2019 15:04:04 +0000 (17:04 +0200)]
Make extraclean return tree to pristine state by deleting more

* src/Makefile.in (extraclean): Remove TAGS and config.in.

* Makefile.in (extraclean): Remove info, configure and
emacsver.texi in extraclean.
* admin/unidata/Makefile.in (extraclean): Make it depend on
distclean to remove .elc files.

* leim/Makefile.in (extraclean): Depend on bootstrap-clean to
remove generated .el files.

* lib/Makefile.in (extraclean): Added target to remove sys
directory and run distclean.

* lisp/Makefile.in (extraclean): Also remove loaddefs*.el~ files.

5 years agoAdd doc strings to the ielm * variables
Lars Ingebrigtsen [Thu, 20 Jun 2019 12:12:42 +0000 (14:12 +0200)]
Add doc strings to the ielm * variables

* lisp/ielm.el: (*, **, ***): Add doc strings.

5 years agoDon't define *, ** and ** in ielm as real variables
Lars Ingebrigtsen [Thu, 20 Jun 2019 11:44:30 +0000 (13:44 +0200)]
Don't define *, ** and ** in ielm as real variables

* lisp/ielm.el: (*, **, ***): Change defvars into compiler
directives instead of real variable definitions to avoid polluting
the global Emacs namespace.
(*1, *2, *3): Ditto.

5 years agoFix compilation warning in esh-mode
Lars Ingebrigtsen [Thu, 20 Jun 2019 12:05:53 +0000 (14:05 +0200)]
Fix compilation warning in esh-mode

* lisp/eshell/esh-mode.el (eshell-mode): Remove special binding
for M-. in eshell buffers: The comment indicates that this is
outdated code.
(eshell-find-tag): Make obsolete.

5 years agoFix compilation warning in viper-exp involving tags
Lars Ingebrigtsen [Thu, 20 Jun 2019 12:02:22 +0000 (14:02 +0200)]
Fix compilation warning in viper-exp involving tags

* lisp/emulation/viper-ex.el (ex-tag): Use xref/next-error instead
of the deprecated tags functions.

5 years agoDeclare semantic-*overlay* aliases obsolete
Lars Ingebrigtsen [Thu, 20 Jun 2019 01:18:52 +0000 (03:18 +0200)]
Declare semantic-*overlay* aliases obsolete

* lisp/cedet/semantic/fw.el: Declare all the semantic-*overlay*
aliases obsolete.

5 years agoThroughout cedet, don't use semantic-overlay-* compat aliases
Lars Ingebrigtsen [Thu, 20 Jun 2019 01:14:11 +0000 (03:14 +0200)]
Throughout cedet, don't use semantic-overlay-* compat aliases

5 years agoRemove XEmacs compat code from cedet
Lars Ingebrigtsen [Thu, 20 Jun 2019 00:29:20 +0000 (02:29 +0200)]
Remove XEmacs compat code from cedet

* lisp/cedet/srecode/mode.el (srecode-menu-bar):
* lisp/cedet/semantic/wisent/comp.el (wisent-debug-flag)
(wisent-print-results):
* lisp/cedet/semantic/util-modes.el
(semantic-stickyfunc-indent-string)
(semantic-stickyfunc-header-line-format)
(semantic-highlight-func-mode-map):
* lisp/cedet/semantic/symref/list.el
(semantic-symref-list-menu-entries):
* lisp/cedet/semantic/idle.el ()
(semantic-idle-breadcrumbs-popup-menu):
* lisp/cedet/semantic/grammar.el (semantic-grammar-item-value)
(semantic-grammar-create-package)
(semantic-grammar-batch-build-packages)
(semantic-grammar-setup-menu):
* lisp/cedet/semantic/fw.el (semantic-overlay-live-p)
(semantic-event-window, semantic-make-local-hook)
(semantic-run-mode-hooks, semantic-subst-char-in-string)
(semantic-menu-item, semantic-find-file-noselect):
* lisp/cedet/semantic/format.el (semantic-format-face-alist)
(semantic--format-colorize-merge-text):
* lisp/cedet/semantic/decorate/include.el ()
(semantic-decoration-on-include-menu)
(semantic-decoration-on-unknown-include-menu)
(semantic-decoration-on-fileless-include-menu)
(semantic-decoration-on-unparsed-include-menu):
* lisp/cedet/semantic/decorate.el (semantic-set-tag-read-only)
(semantic-tag-read-only-p):
* lisp/cedet/mode-local.el (activate-mode-local-bindings):
* lisp/cedet/data-debug.el (data-debug-overlay-properties): Remove
XEmacs compat code.

5 years agoRemove XEmacs compat code from gravatar.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 23:45:56 +0000 (01:45 +0200)]
Remove XEmacs compat code from gravatar.el

* lisp/image/gravatar.el (gravatar-retrieve): Remove XEmacs compat code

5 years agoRemove XEmacs compat code from erc
Lars Ingebrigtsen [Wed, 19 Jun 2019 23:44:19 +0000 (01:44 +0200)]
Remove XEmacs compat code from erc

* lisp/erc/erc-button.el (button, erc-button-keymap)
(erc-button-setup, erc-button-add-button): Remove XEmacs compat code.

* lisp/erc/erc-compat.el (erc-replace-match-subexpression-in-string):

* lisp/erc/erc-log.el (erc-log-file-coding-system):

* lisp/erc/erc-menu.el (menu):

* lisp/erc/erc-stamp.el (erc-timestamp-use-align-to):

* lisp/erc/erc-track.el (erc-modified-channels-object, track)
(erc-track-mouse-face):

* lisp/erc/erc.el (erc-update-undo-list)
(erc-quit-reason-various, erc-part-reason-various, erc-cmd-SV)
(erc-input-message, erc-get-channel-mode-from-keypress)
(erc-update-mode-line-buffer):

5 years agoRemove XEmacs compat code from table.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 23:37:50 +0000 (01:37 +0200)]
Remove XEmacs compat code from table.el

* lisp/textmodes/table.el:
(table-disable-menu, null, table-recognize-cell)
(table--make-cell-map, table--update-cell)
(table--update-cell-widened, table--update-cell-heightened)
(table--read-from-minibuffer, table--untabify)
(table--update-cell-face, table--warn-incompatibility)
(table--fill-region, table--set-timer): Remove XEmacs compat code.

5 years agoRemove XEmacs compat code from dns-mode.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 23:15:30 +0000 (01:15 +0200)]
Remove XEmacs compat code from dns-mode.el

* lisp/textmodes/dns-mode.el (dns-mode): Remove XEmacs compat code.

5 years agoClean up eieio-custom slightly
Lars Ingebrigtsen [Wed, 19 Jun 2019 23:13:51 +0000 (01:13 +0200)]
Clean up eieio-custom slightly

* lisp/emacs-lisp/eieio-custom.el: Remove commented out code.

5 years agoRemove XEmacs compat code from checkdoc.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 23:13:07 +0000 (01:13 +0200)]
Remove XEmacs compat code from checkdoc.el

* lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode-map): Remove
XEmacs compat code.

5 years agoClean up after previous viper patch
Lars Ingebrigtsen [Wed, 19 Jun 2019 22:59:07 +0000 (00:59 +0200)]
Clean up after previous viper patch

* lisp/emulation/viper-ex.el (viper-get-ex-address-subr): Fix
syntax error in last checkin.
(viper-ex): Don't use now-obsolete function.

5 years agoRemove most of the XEmacs compat code from viper*.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 22:48:49 +0000 (00:48 +0200)]
Remove most of the XEmacs compat code from viper*.el

* lisp/emulation/viper-cmd.el ()
(viper-insert-state-post-command-sentinel)
(viper-change-state-to-vi, viper-change-state-to-insert)
(viper-change-state-to-emacs, viper-escape-to-state)
(viper-special-read-and-insert-char, viper-toggle-key-action)
(viper-prefix-arg-value, viper-prefix-arg-com)
(viper-digit-argument, viper-command-argument, )
(viper-exec-Yank, viper-repeat, viper-forward-char)
(viper-backward-char, viper-forward-word, viper-forward-Word)
(viper-end-of-word, viper-end-of-Word, viper-backward-word)
(viper-backward-Word, viper-beginning-of-line)
(viper-bol-and-skip-white, viper-goto-eol, viper-goto-col)
(viper-next-line, viper-next-line-at-bol, viper-previous-line)
(viper-previous-line-at-bol, viper-goto-line, )
(viper-repeat-find, viper-repeat-find-opposite)
(viper-window-top, viper-window-middle, viper-window-bottom)
(viper-paren-match, viper-search, viper-buffer-search-enable)
(viper-put-back, viper-Put-back, viper-mark-point)
(viper-cycle-through-mark-ring, viper-goto-mark-subr)
(viper-brac-function, viper-register-to-point)
(viper-submit-report): Remove some XEmacs compat code.

* lisp/emulation/viper-ex.el (viper-get-ex-address-subr)
(viper-handle-!, ex-edit, ex-mark, ex-next-related-buffer)
(ex-help, ex-write, ex-write-info, viper-info-on-file): Ditto.

* lisp/emulation/viper-keym.el (viper-add-keymap): Ditto.

* lisp/emulation/viper-macs.el (viper-record-kbd-macro): Remove
XEmacs compat code.

* lisp/emulation/viper-mous.el (viper-mouse-click-insert-word)
(viper-mouse-click-search-word): Remove some XEmacs compat code.

* lisp/emulation/viper-util.el (viper-overlay-p)
(viper-color-defined-p, viper-iconify, viper-memq-char)
(viper-char-equal, viper=, viper-color-display-p)
(viper-get-cursor-color, viper-frame-value)
(viper-change-cursor-color, viper-save-cursor-color)
(viper-restore-cursor-color, viper-get-visible-buffer-window)
(viper-file-checked-in-p, viper-put-on-search-overlay)
(viper-flash-search-pattern, viper-hide-search-overlay)
(viper-move-replace-overlay, viper-set-replace-overlay)
(viper-set-replace-overlay-glyphs, viper-hide-replace-overlay)
(viper-replace-start, viper-replace-end)
(viper-set-minibuffer-overlay, viper-check-minibuffer-overlay)
(viper-abbreviate-file-name, viper-mark-marker)
(viper-set-mark-if-necessary, viper-leave-region-active)
(viper-copy-event, viper-read-event-convert-to-char)
(viper-event-key, viper-last-command-char)
(viper-key-to-emacs-key, viper-eventify-list-xemacs)
(viper-set-unread-command-events, viper-char-array-p)
(viper-key-press-events-to-chars, viper-read-char-exclusive):
Remove most of the XEmacs compat code.

* lisp/emulation/viper.el (viper-go-away, viper-set-hooks)
(viper-non-hook-settings): Remove some XEmacs compat code.

5 years agoRemove XEmacs compat code from viper-macs.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 22:11:42 +0000 (00:11 +0200)]
Remove XEmacs compat code from viper-macs.el

* lisp/emulation/viper-macs.el (viper-char-array-to-macro):
Remove XEmacs compat code.

5 years agoRemove XEmacs compat code from viper-cmd.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 22:09:04 +0000 (00:09 +0200)]
Remove XEmacs compat code from viper-cmd.el

* lisp/emulation/viper-cmd.el (viper-change-state)
(viper-escape-to-state, viper-special-read-and-insert-char)
(viper-prefix-arg-value, viper-prefix-arg-com)
(viper-display-current-destructive-command)
(viper-file-add-suffix, viper-adjust-window)
(viper-set-searchstyle-toggling-macros)
(viper-set-parsing-style-toggling-macro)
(viper-set-emacs-state-searchstyle-macros): Remove XEmacs compat code.

5 years agoRemove XEmacs and old Emacs compat code from gamegrid.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:59:54 +0000 (23:59 +0200)]
Remove XEmacs and old Emacs compat code from gamegrid.el

* lisp/play/gamegrid.el (gamegrid-event-x, gamegrid-event-y)
(gamegrid-make-glyph, image-size, gamegrid-initialize-display)
(gamegrid-start-timer, gamegrid-set-timer)
(gamegrid-kill-timer)
(gamegrid-add-score-with-update-game-score-1)
(gamegrid-add-score-insecure): Removed XEmacs compat code.
(gamegrid-characterp, gamegrid-set-display-table): Removed functions.

5 years agoRemove XEmacs compat code from binhex.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:52:57 +0000 (23:52 +0200)]
Remove XEmacs compat code from binhex.el

* lisp/mail/binhex.el (binhex-insert-char): Remove XEmacs compat
code and made into a function instead of a defalias.
(binhex-decode-region-internal): Remove XEmacs compat code.

5 years agoRemove XEmacs compat code from uudecode.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:51:02 +0000 (23:51 +0200)]
Remove XEmacs compat code from uudecode.el

* lisp/mail/uudecode.el (uudecode-decode-region-external)
(uudecode-decode-region-internal): Remove XEmacs compat code.

5 years agoRemove XEmacs compat code from pascal.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:49:13 +0000 (23:49 +0200)]
Remove XEmacs compat code from pascal.el

* lisp/progmodes/pascal.el (pascal-mark-defun): Remove XEmacs compat.

5 years agoRemove XEmacs support from cperl-mode
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:46:43 +0000 (23:46 +0200)]
Remove XEmacs support from cperl-mode

* lisp/progmodes/cperl-mode.el (condition-case)
(cperl-electric-parens-mark, cperl-del-back-ch)
(cperl-do-not-fontify, cperl-mode, cperl-find-pods-heres)
(cperl-write-tags, cperl-tags-hier-init, cperl-perldoc)
(cperl-build-manpage): Remove XEmacs support.

There's a lot of support code in here for older versions of Emacs that
could be removed, too.

5 years agoSimplify stdout buffering
Paul Eggert [Thu, 20 Jun 2019 07:37:52 +0000 (00:37 -0700)]
Simplify stdout buffering

* src/sysdep.c (_sobuf): Remove; we no longer need this
microoptimization.
(init_sys_modes): Simplify by assuming setvbuf.

5 years agoRemove no-longer-needed fflushes of stderr
Paul Eggert [Thu, 20 Jun 2019 07:35:41 +0000 (00:35 -0700)]
Remove no-longer-needed fflushes of stderr

* src/gmalloc.c (mabort) [GC_MCHECK && !__GNU_LIBRARY__]:
* src/term.c (vfatal): Remove fflush (stderr) when it is now a
no-op because newline automatically flushes stderr.

5 years agoLine-buffer stderr
Paul Eggert [Thu, 20 Jun 2019 07:32:17 +0000 (00:32 -0700)]
Line-buffer stderr

* src/sysdep.c (init_standard_fds) [!DOS_NT]:
Use setvbuf to ensure stderr is line-buffered.

5 years agoFix arbitrary INT_MAX limit on referrer repr
Paul Eggert [Thu, 20 Jun 2019 07:05:28 +0000 (00:05 -0700)]
Fix arbitrary INT_MAX limit on referrer repr

* src/pdumper.c (print_paths_to_root_1):
Don’t assume strlen (repr) < INT_MAX.

5 years agoMinor putc tweaks
Paul Eggert [Thu, 20 Jun 2019 07:01:06 +0000 (00:01 -0700)]
Minor putc tweaks

* src/emacs-module.c (module_abort):
* src/xdisp.c (vmessage):
Prefer fputc to putc, since speed isn’t crucial here.
* src/region-cache.c (pp_cache) [ENABLE_CHECKING]: Simplify.

5 years agoChange font_put_extra value for property removal from Qnil to Qunbound
YAMAMOTO Mitsuharu [Thu, 20 Jun 2019 03:12:01 +0000 (12:12 +0900)]
Change font_put_extra value for property removal from Qnil to Qunbound

* font.c (font_put_extra): If VAL is Qunbound, delete the slot for PROP from
the list of extra properties.  Previous value Qnil is valid as boolean.
(font_clear_prop): Changed argument of font_put_extra for property removal.

5 years agoFix failure of setting default face attribute in init script (Bug#36284)
YAMAMOTO Mitsuharu [Thu, 20 Jun 2019 02:57:50 +0000 (11:57 +0900)]
Fix failure of setting default face attribute in init script (Bug#36284)

* src/xsettings.c (apply_xft_settings): Undo replacing all #ifdef HAVE_XFT
with #if defined USE_CAIRO || defined HAVE_XFT for this function.

5 years ago* bookmark.el (bookmark-set-internal): Fix format string.
Roland Winkler [Thu, 20 Jun 2019 02:52:03 +0000 (21:52 -0500)]
* bookmark.el (bookmark-set-internal): Fix format string.

5 years agoAdd file sorting options to find-dired and grep-find (bug#36110)
Juri Linkov [Wed, 19 Jun 2019 21:55:07 +0000 (00:55 +0300)]
Add file sorting options to find-dired and grep-find (bug#36110)

* lisp/find-dired.el (find-ls-option-default-ls)
(find-ls-option-default-exec, find-ls-option-default-xargs):
New variables for values used for options of 'find-ls-option'.
(find-ls-option): Use these variables for default values and options.
(find-dired-refine-function): Refine :type.

* lisp/progmodes/grep.el (grep-find-use-xargs): Use defcustom
instead of defvar.  Add new value 'gnu-sort'.
(grep-compute-defaults): Handle new 'gnu-sort' option of
'grep-find-use-xargs'.

5 years agoRemove XEmacs and ancient Emacs compatibility from newst-backend.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:25:56 +0000 (23:25 +0200)]
Remove XEmacs and ancient Emacs compatibility from newst-backend.el

* lisp/net/newst-backend.el: Remove compatibility with XEmacs and
ancient Emacs versions.

5 years agoDoc string fix
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:13:31 +0000 (23:13 +0200)]
Doc string fix

* lisp/calendar/timeclock.el (timeclock-completing-read): Fix doc
string punctuation.

5 years agoRemove XEmacs compat code from timeclock.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:10:04 +0000 (23:10 +0200)]
Remove XEmacs compat code from timeclock.el

* lisp/calendar/timeclock.el (timeclock-completing-read)
(timeclock-ask-for-project, timeclock-ask-for-reason): Remove
XEmacs compat code.

5 years agoRemove more XEmacs compat code from epa.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 21:02:39 +0000 (23:02 +0200)]
Remove more XEmacs compat code from epa.el

* lisp/epa.el (epa-key-mode, epa-key-list-mode): Remove XEmacs
compat code.

5 years agoRemove XEmacs compat code from calc
Lars Ingebrigtsen [Wed, 19 Jun 2019 20:56:26 +0000 (22:56 +0200)]
Remove XEmacs compat code from calc

* lisp/calc/calc.el (calc-read-key-sequence)
(calcDigit-start, calc-read-key, calc-unread-command)
(calc-clear-unread-commands):
* lisp/calc/calc-misc.el (calc-dispatch-help):
* lisp/calc/calc-help.el (calc-help-for-help)
(calc-describe-key):
* lisp/calc/calc-ext.el (calc-fancy-prefix, calc-user-key-map):
Remove XEmacs compat code.

5 years agoRemove XEmacs compat code from savehist.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 20:37:33 +0000 (22:37 +0200)]
Remove XEmacs compat code from savehist.el

* lisp/savehist.el:
(savehist-install, savehist-uninstall, savehist-save)
(savehist-trim-history, savehist-printable)
(savehist-minibuffer-hook): Remove XEmacs compat code.

5 years agoRemove XEmacs compat code from ps-print
Lars Ingebrigtsen [Wed, 19 Jun 2019 20:30:10 +0000 (22:30 +0200)]
Remove XEmacs compat code from ps-print

* lisp/ps-print.el:
(ps-print-color-p, ps-postscript-code-directory, ps-setup):
* lisp/ps-def.el:
(ps-mark-active-p, ps-face-foreground-name)
(ps-face-background-name, ps-color-device, ps-color-values)
(ps-face-bold-p, ps-face-italic-p, ps-face-strikeout-p)
(ps-face-overline-p, ps-face-box-p)
(ps-generate-postscript-with-faces1): Remove XEmacs compat code
and some outdated Emacs compat code.

5 years agoRemove XEmacs compat code from epa.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 20:24:50 +0000 (22:24 +0200)]
Remove XEmacs compat code from epa.el

* lisp/epa.el (epa-key-list-mode, epa-key-mode)
(epa--find-coding-system-for-mime-charset): Remove XEmacs compat
code and comments.

5 years agoRemove XEmacs compat code from dframe.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 20:07:44 +0000 (22:07 +0200)]
Remove XEmacs compat code from dframe.el

* lisp/dframe.el (dframe-update-speed, dframe-update-keymap)
(dframe-frame-mode, dframe-detach, dframe-set-timer-internal)
(dframe-popup-kludge, dframe-mouse-event-p)
(dframe-track-mouse, dframe-help-echo, dframe-mouse-set-point)
(dframe-double-click, dframe-temp-buffer-show-function)
(dframe-hack-buffer-menu, dframe-mouse-hscroll): Remove XEmacs
compat code (and some ancient Emacs compat code).

5 years agoRemove XEmacs compat code from ansi-color.el
Lars Ingebrigtsen [Wed, 19 Jun 2019 19:56:43 +0000 (21:56 +0200)]
Remove XEmacs compat code from ansi-color.el

* lisp/ansi-color.el (ansi-color-apply-overlay-face)
(ansi-color-make-face, ansi-color-make-extent)
(ansi-color-set-extent-face): Remove XEmacs compat code.

5 years agoUpdate CC Mode's version number to 5.34
Alan Mackenzie [Wed, 19 Jun 2019 19:15:26 +0000 (19:15 +0000)]
Update CC Mode's version number to 5.34

* doc/misc/cc-mode.texi (top level, "Introduction"),
lisp/progmodes/cc-defs.el (c-version): Update version number to 5.34.

5 years agoUpdate documentation of font backends on MS-Windows
Eli Zaretskii [Wed, 19 Jun 2019 16:40:33 +0000 (19:40 +0300)]
Update documentation of font backends on MS-Windows

* doc/emacs/msdos.texi (Windows Fonts): Update the
documentation of requesting specific font backends.

5 years agoFix typo in previous erc.el change
Lars Ingebrigtsen [Wed, 19 Jun 2019 16:29:17 +0000 (18:29 +0200)]
Fix typo in previous erc.el change

* lisp/erc/erc.el (erc-send-input): Fix typo in previous checkin.