]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agosemantic/idle.el compilation warning fix
Lars Ingebrigtsen [Thu, 13 Jun 2019 14:57:50 +0000 (16:57 +0200)]
semantic/idle.el compilation warning fix

* lisp/cedet/semantic/idle.el (semantic/analyze): Require to
avoid compilation warnings about unknown slots, and remove
declare-function.

5 years agosemantic/grammar byte compilation fixes
Lars Ingebrigtsen [Thu, 13 Jun 2019 14:56:01 +0000 (16:56 +0200)]
semantic/grammar byte compilation fixes

* lisp/cedet/semantic/grammar.el (semantic/analyze): Require to
avoid compilation warnings about unknown slots, and remove
declare-function.

5 years agosemantic/chart.el compilation warning fixes
Lars Ingebrigtsen [Thu, 13 Jun 2019 14:53:10 +0000 (16:53 +0200)]
semantic/chart.el compilation warning fixes

* lisp/cedet/semantic/chart.el (semantic/db-typecache)
(semantic/scope): Require to avoid byte compilation warnings about
undefined slots.  Remove declare-functions from these packages.

5 years agoFix some cedet compilation warnings pertaining to semantic/db
Lars Ingebrigtsen [Thu, 13 Jun 2019 14:33:06 +0000 (16:33 +0200)]
Fix some cedet compilation warnings pertaining to semantic/db

* lisp/cedet/ede/config.el (semantic/db)
(ede-preprocessor-map): Ditto.

* lisp/cedet/ede/cpp-root.el (semantic/db): Ditto.

* lisp/cedet/ede/emacs.el (semantic/db): Ditto.

* lisp/cedet/ede/linux.el (semantic/db): Require to avoid warnings
about unknown slot lexical-table, and remove declare-functions
from the now-required semantic/db.

5 years agoproject.el compilation warning fix
Lars Ingebrigtsen [Thu, 13 Jun 2019 14:16:49 +0000 (16:16 +0200)]
project.el compilation warning fix

* lisp/progmodes/project.el (xref--regexp-to-extended)
(xref--convert-hits): Declare more xref functions to avoid
compilation warnings.

5 years agoDepessimize bits of CC Mode for long C macros.
Alan Mackenzie [Thu, 13 Jun 2019 14:07:06 +0000 (14:07 +0000)]
Depessimize bits of CC Mode for long C macros.

* lisp/progmodes/cc-engine.el (c-end-of-macro): Check for being in a
degenerate zero length "macro", when setting the macro cache.
(c-determine-+ve-limit): Add in a missing goto-char form for when start-pos is
non-nil.
(c-back-over-member-initializers): Add a search limit parameter.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Add a search limit
to c-go-up-list-backward.
(c-font-lock-cut-off-declarators): Add a search limit to
c-back-over-member-initializers.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Don't
set c-new-END to the end of logical line (which might be a long macro).
(c-after-change-mark-abnormal-strings): Calculate end-hwm in place of the
setting of c-new-END (above).  Use this as a search limit rather than
c-new-END.

5 years ago; * etc/NEWS: Small cleanup.
Stefan Kangas [Thu, 13 Jun 2019 14:04:40 +0000 (16:04 +0200)]
; * etc/NEWS: Small cleanup.

* etc/NEWS: Merge two bookmark items in NEWS (bug#36188).

5 years agoRemove XEmacs support from bookmark.el
Stefan Kangas [Thu, 13 Jun 2019 14:02:39 +0000 (16:02 +0200)]
Remove XEmacs support from bookmark.el

* lisp/bookmark.el (bookmark-store): Remove XEmacs compat code
(bug#36189).

5 years agoUse cl-print-object instead of object-print throughout cedet
Lars Ingebrigtsen [Thu, 13 Jun 2019 13:58:32 +0000 (15:58 +0200)]
Use cl-print-object instead of object-print throughout cedet

* lisp/cedet/semantic/db-find.el (semanticdb-find-log-activity):
Ditto.

* lisp/cedet/semantic/analyze/debug.el
(semantic-analyzer-debug-insert-include-summary): Ditto.

* lisp/cedet/semantic/bovine/c.el (semantic-c-describe-environment)
(semantic-c-describe-environment)
(semantic-c-describe-environment): Ditto.

* lisp/cedet/semantic/decorate/include.el
(semantic-decoration-fileless-include-describe): Ditto.
(semantic-decoration-all-include-summary): Ditto.

* lisp/cedet/srecode/insert.el
(srecode-insert-variable-secondname-handler): Use cl-print-object
instead of object-print.

5 years agoerc-dcc.el minor clean-ups
Lars Ingebrigtsen [Thu, 13 Jun 2019 12:37:25 +0000 (14:37 +0200)]
erc-dcc.el minor clean-ups

* lisp/erc/erc-dcc.el: Remove outdated comments.
(erc-dcc-get-file): Remove XEmacs compat code.

5 years agoFix erc-dcc server-close code and fix compilation warning
Lars Ingebrigtsen [Thu, 13 Jun 2019 12:35:30 +0000 (14:35 +0200)]
Fix erc-dcc server-close code and fix compilation warning

* lisp/erc/erc-dcc.el (erc-dcc-get-filter): We receive unibyte
data, so no need to convert to unibyte.
(erc-dcc-send-filter): Kill the process before killing the buffer
so that we're not queried about killing the process.

5 years agoMake erc-dcc-server work again by making synchronous
Lars Ingebrigtsen [Thu, 13 Jun 2019 12:26:18 +0000 (14:26 +0200)]
Make erc-dcc-server work again by making synchronous

* lisp/erc/erc-dcc.el (erc-dcc-server): :server and :nowait can't
be mixed, so remove the :nowait.

5 years agoEscape newlines when printing functions in timer list
Pip Cet [Thu, 13 Jun 2019 12:10:56 +0000 (14:10 +0200)]
Escape newlines when printing functions in timer list

* timer-list.el (list-timers): Bind `print-escape-newlines' to avoid
newlines in printed representation (bug#36187).

5 years agoCompilation fix for previous change
Lars Ingebrigtsen [Thu, 13 Jun 2019 11:56:16 +0000 (13:56 +0200)]
Compilation fix for previous change

5 years agoCompilation warning fix for disass.el
Lars Ingebrigtsen [Thu, 13 Jun 2019 11:54:53 +0000 (13:54 +0200)]
Compilation warning fix for disass.el

* lisp/emacs-lisp/disass.el (disassemble-1): Remove a
string-as-unibyte that probably doesn't do anything, because the
string in question should be unibyte anyway.  If the assert fails,
revert the patch.

5 years agoCC Mode: replace an erroneous re-search-forward with search-forward
Alan Mackenzie [Thu, 13 Jun 2019 10:06:33 +0000 (10:06 +0000)]
CC Mode: replace an erroneous re-search-forward with search-forward

Move two declarations to a more suitable point in the cc-engine.el.

* lisp/progmodes/cc-engine.el (c-after-change-unmark-raw-strings): Change an
re-search-forward to search-forward.
(c-semi-lit-near-cache, c-semi-near-cache-limit): Move the declarations.

5 years agoFix display of Hebrew text with precomposed characters
Eli Zaretskii [Thu, 13 Jun 2019 09:41:37 +0000 (12:41 +0300)]
Fix display of Hebrew text with precomposed characters

* lisp/language/hebrew.el (base): Include precomposed
Hebrew characters from the Alphabetic Presentation Forms in
the composition patterns.  (Bug#36171)

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Thu, 13 Jun 2019 08:53:18 +0000 (11:53 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoFix text shaping of precomposed characters with HarfBuzz
Eli Zaretskii [Thu, 13 Jun 2019 08:49:30 +0000 (11:49 +0300)]
Fix text shaping of precomposed characters with HarfBuzz

* src/hbfont.c (hbfont_shape): Fix setting TO of lglyph for
the case when Lisp shape-gstring function performed some
compositions by itself.  This happens with hebrew.el.  See
https://lists.freedesktop.org/archives/harfbuzz/2019-June/007396.html
for the details of the problem this solves.

5 years agoMove declaration of c-syntax-table-hwm to avoid compiler warnings.
Alan Mackenzie [Thu, 13 Jun 2019 08:46:30 +0000 (08:46 +0000)]
Move declaration of c-syntax-table-hwm to avoid compiler warnings.

This variable was declared after an invocation of a defsubst which used it,
the defsubst being in another file.

* lisp/progmodes/cc-mode (c-syntax-table-hwm): Move the declaration to earlier
in the file.

5 years agoAllow for line breaks in a bytecomp test
Glenn Morris [Thu, 13 Jun 2019 02:31:00 +0000 (19:31 -0700)]
Allow for line breaks in a bytecomp test

* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
Warnings from the byte compiler may be filled.

5 years agoAvoid string-make-multibyte in ps-mode.el
Lars Ingebrigtsen [Thu, 13 Jun 2019 01:12:03 +0000 (03:12 +0200)]
Avoid string-make-multibyte in ps-mode.el

* lisp/progmodes/ps-mode.el (ps-mode-octal-region): Avoid usage of
string-make-multibyte, but work in both unibyte and multibyte buffers.

5 years agoAdd more ps-mode octal tests
Lars Ingebrigtsen [Thu, 13 Jun 2019 01:03:26 +0000 (03:03 +0200)]
Add more ps-mode octal tests

* test/lisp/progmodes/ps-mode-tests.el
(ps-mode-test-octal-region-multibyte): New test.

5 years agoRevert previous ps-mode.el change
Lars Ingebrigtsen [Thu, 13 Jun 2019 00:54:24 +0000 (02:54 +0200)]
Revert previous ps-mode.el change

* lisp/progmodes/ps-mode.el (ps-mode-octal-region): Revert
previous change because the `string-make-unibyte' insertion was
the previous single change (in 2013) to this file, so it must have
some subtle meaning or other.

5 years agoAdd ps-mode-tests.el and remove a compilation warning
Lars Ingebrigtsen [Thu, 13 Jun 2019 00:48:41 +0000 (02:48 +0200)]
Add ps-mode-tests.el and remove a compilation warning

* lisp/progmodes/ps-mode.el (ps-mode-octal-region): Remove a
string-make-unibyte that apparently had no effect here.
* test/lisp/progmodes/ps-mode-tests.el: New file.

5 years agoSuppress warnings in tildify.el
Lars Ingebrigtsen [Thu, 13 Jun 2019 00:23:40 +0000 (02:23 +0200)]
Suppress warnings in tildify.el

* lisp/textmodes/tildify.el (tildify--deprecated-ignore-evironments):
(tildify-tildify, tildify-mode): Suppress warnings about obsolete
internal function `tildify--pick-alist-entry'.  Apparently these
semi-deprecated functions rely on each other.

5 years agoAdd comment to clarify the use of `str'
Lars Ingebrigtsen [Thu, 13 Jun 2019 00:03:55 +0000 (02:03 +0200)]
Add comment to clarify the use of `str'

5 years agoRevert "Compilation warning fix for byte-run.el"
Glenn Morris [Thu, 13 Jun 2019 00:20:50 +0000 (17:20 -0700)]
Revert "Compilation warning fix for byte-run.el"

* lisp/emacs-lisp/byte-run.el (macro-declaration-function):
Revert change that causes a bootstrap failure.

; Ref eg https://hydra.nixos.org/build/94678649

5 years agoFix compilation warnings in rfc2104
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:53:52 +0000 (01:53 +0200)]
Fix compilation warnings in rfc2104

* lisp/net/rfc2104.el (rfc2104-hash): Remove superflous calls to
string-make-unibyte and avoid two compilation warnings.

5 years agoNew file rfc2104-tests.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:51:44 +0000 (01:51 +0200)]
New file rfc2104-tests.el

* test/lisp/net/rfc2104-tests.el: New file to test rfc2104 hashes.

5 years agoGive more information in a bytecomp test failure
Glenn Morris [Wed, 12 Jun 2019 23:48:33 +0000 (16:48 -0700)]
Give more information in a bytecomp test failure

* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
More informative failure messages.

5 years agoFix compilation warning in qp.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:43:58 +0000 (01:43 +0200)]
Fix compilation warning in qp.el

* lisp/mail/qp.el (quoted-printable-encode-region): No need to
convert the regexp to multibyte before searching.

5 years agoFix warning about obsolete func calling obsolete func in etags.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:33:27 +0000 (01:33 +0200)]
Fix warning about obsolete func calling obsolete func in etags.el

* lisp/progmodes/etags.el (find-tag-other-frame): Don't give a
warning about an obsolete function calling another obsolete function.

5 years agoCompilation warning fix in feedmail.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:29:27 +0000 (01:29 +0200)]
Compilation warning fix in feedmail.el

* lisp/mail/feedmail.el (feedmail-scroll-buffer): Remove XEmacs
compat code (that gave a compilation warning).

5 years agoRemove XEmacs compat code from mml.el that gave a compilation warning
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:27:36 +0000 (01:27 +0200)]
Remove XEmacs compat code from mml.el that gave a compilation warning

* lisp/gnus/mml.el (mml-mode): Remove XEmacs compat code

5 years agomessage.el byte compilation warning fix
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:24:47 +0000 (01:24 +0200)]
message.el byte compilation warning fix

* lisp/gnus/message.el (message-inhibit-body-encoding): Move
earlier to avoid compilation warning.

5 years agoCompilation warning fix for byte-run.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:14:47 +0000 (01:14 +0200)]
Compilation warning fix for byte-run.el

* lisp/emacs-lisp/byte-run.el (macro-declaration-function):
Suppress warning about obsolete function used by obsolete variable.

5 years agotodo-mode.el compilation warning fix
Lars Ingebrigtsen [Wed, 12 Jun 2019 23:12:23 +0000 (01:12 +0200)]
todo-mode.el compilation warning fix

* lisp/calendar/todo-mode.el (hl-line-highlight): Declare to avoid
compilation warning.

5 years agoTouch ups to the XEmacs deletion patch for idlw-shell.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 22:16:17 +0000 (00:16 +0200)]
Touch ups to the XEmacs deletion patch for idlw-shell.el

* lisp/progmodes/idlw-shell.el (idlwave-xemacs-hack-mouse-track):
Fix up previous obsoletion.

5 years agoRemove XEmacs support from idlw-shell.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 22:08:57 +0000 (00:08 +0200)]
Remove XEmacs support from idlw-shell.el

* lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file)
(idlwave-shell-mouse-examine)
(idlwave-xemacs-hack-mouse-track, idlwave-display-buffer)
(idlwave-shell-debug-line-map)
(idlwave-shell-make-new-bp-overlay, idlwave-shell-mode-map):
Remove XEmacs support.

5 years agoRemove XEmacs support from ido.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 21:38:55 +0000 (23:38 +0200)]
Remove XEmacs support from ido.el

* lisp/ido.el (ido-active, ido-completion-help)
(ido-minibuffer-setup): Remove XEmacs support.

5 years agoRemove compat code for XEmacs and pre-Emacs 20 Emacs in pcomplete.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 21:26:36 +0000 (23:26 +0200)]
Remove compat code for XEmacs and pre-Emacs 20 Emacs in pcomplete.el

* lisp/pcomplete.el (pcomplete-event-matches-key-specifier-p)
(pcomplete-read-event, pcomplete-show-completions): Remove XEmacs
support and mark now-trivial defaliases as obsolete.

5 years agoRemove XEmacs support from dig.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 21:17:02 +0000 (23:17 +0200)]
Remove XEmacs support from dig.el

* lisp/net/dig.el (dig-mode): Remove XEmacs support.

5 years agoRemove XEmacs support from goto-addr.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 21:15:18 +0000 (23:15 +0200)]
Remove XEmacs support from goto-addr.el

* lisp/net/goto-addr.el (goto-address-highlight-keymap): Remove
XEmacs support.

5 years agoRemove XEmacs support from dns.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 21:14:15 +0000 (23:14 +0200)]
Remove XEmacs support from dns.el

* lisp/net/dns.el (dns-read-string-name, dns-write, dns-read)
(dns-make-network-process, dns-query): Remove XEmacs support.

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

* lisp/tempo.el (tempo-insert-template): Remove XEmacs compat code.

5 years agoCC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes
Alan Mackenzie [Wed, 12 Jun 2019 19:17:22 +0000 (19:17 +0000)]
CC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes

* lisp/progmodes/cc-engine.el (c-truncate-lit-pos-cache): Maintain the new
variable c-syntax-table-hwm after buffer changes.

* lisp/progmodes/cc-mode.el (c-syntax-table-hwm): New variable.
(c-before-change): Set c-syntax-table-hwm to "infinity".
(c-after-change): Call syntax-ppss-flush-cache, just before a font locking is
due to take place.

5 years agoRestore image scaling support when there's no native image scaling
Lars Ingebrigtsen [Wed, 12 Jun 2019 17:00:37 +0000 (19:00 +0200)]
Restore image scaling support when there's no native image scaling

* lisp/net/shr.el (shr--image-type): New function.
(shr-rescale-image): Use it to allow image scaling on Emacsen with
ImageMagick support that does not have native image scaling support.

5 years agoRewrite the kmacro register function to avoid using obsolete functions
Lars Ingebrigtsen [Wed, 12 Jun 2019 16:21:35 +0000 (18:21 +0200)]
Rewrite the kmacro register function to avoid using obsolete functions

* lisp/kmacro.el (kmacro-register): New struct to replace the
general registerv struct.
(register-val-jump-to, register-val-describe)
(register-val-insert): New methods to implement the register
interface.
(kmacro-to-register): Use the kmacro-register struct.

5 years ago(beginning-of-defun-raw): Suppress warning about syntax-begin-function
Lars Ingebrigtsen [Wed, 12 Jun 2019 15:45:59 +0000 (17:45 +0200)]
(beginning-of-defun-raw): Suppress warning about syntax-begin-function

* lisp/emacs-lisp/lisp.el (beginning-of-defun-raw):
font-lock-compile-keywords also suppresses warnings about the
obsolete syntax-begin-function variable, so suppress the only
other use not in syntax.el.

5 years agoSuppress warning about pi not having a prefix
Lars Ingebrigtsen [Wed, 12 Jun 2019 15:40:42 +0000 (17:40 +0200)]
Suppress warning about pi not having a prefix

* lisp/emacs-lisp/float-sup.el (pi): Suppress warning about this
obsolete variable not having a prefix.

5 years ago* doc/lispref/text.texi (Base 64): Fix typos.
Richard Copley [Tue, 11 Jun 2019 20:14:11 +0000 (21:14 +0100)]
* doc/lispref/text.texi (Base 64): Fix typos.

Copyright-paperwork-exempt: yes.

5 years agoSuppress warning about obsolete function custom-show
Lars Ingebrigtsen [Wed, 12 Jun 2019 14:33:00 +0000 (16:33 +0200)]
Suppress warning about obsolete function custom-show

* lisp/cus-edit.el (custom-variable-value-create): Suppress
warning about obsolete function custom-show.  The widget this
supports has been obsolete since Emacs 24, but we should perhaps
be very conservative about removing widget types, so suppress the
warning instead of removing the widget type.

5 years agoSuppress warning in display-completion-list about itself
Lars Ingebrigtsen [Wed, 12 Jun 2019 14:18:34 +0000 (16:18 +0200)]
Suppress warning in display-completion-list about itself

* lisp/minibuffer.el (display-completion-list):
`display-completion-list' calls itself with the old, obsolete
callargs, so suppress this warning.

5 years agoSuppress interactive-only warnings in epa*.el
Lars Ingebrigtsen [Wed, 12 Jun 2019 14:17:25 +0000 (16:17 +0200)]
Suppress interactive-only warnings in epa*.el

* lisp/epa-mail.el (epa-mail-decrypt, epa-mail-verify)
(epa-mail-sign, epa-mail-encrypt): Ditto.

* lisp/epa.el (epa-verify-cleartext-in-region): Suppress warnings
about calling interactive-only functions, because these are
interactive-only thin wrappers around those functions.

5 years agoehelp.el: Suppress warning
Lars Ingebrigtsen [Wed, 12 Jun 2019 14:15:30 +0000 (16:15 +0200)]
ehelp.el: Suppress warning

* lisp/ehelp.el (electric-help-execute-extended): Suppress warning
about `execute-extended-command' only being interactive, because
we're still using it interactively, but via a wrapper.

5 years agoAdd the new macro with-suppressed-warnings
Lars Ingebrigtsen [Wed, 12 Jun 2019 13:59:19 +0000 (15:59 +0200)]
Add the new macro with-suppressed-warnings

* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings): New macro.

* doc/lispref/compile.texi (Compiler Errors): Document
with-suppressed-warnings and deemphasise with-no-warnings
slightly.

* lisp/emacs-lisp/bytecomp.el (byte-compile--suppressed-warnings):
New internal variable.
(byte-compile-warning-enabled-p): Heed
byte-compile--suppressed-warnings, bound via with-suppressed-warnings.
(byte-compile-initial-macro-environment): Provide a macro
expansion of with-suppressed-warnings.
(byte-compile-file-form-with-suppressed-warnings): New byte hunk
handler for the suppressed symbol machinery.
(byte-compile-suppressed-warnings): Ditto for the byteop.
(byte-compile-file-form-defmumble): Ditto.
(byte-compile-form, byte-compile-normal-call)
(byte-compile-normal-call, byte-compile-variable-ref)
(byte-compile-set-default, byte-compile-variable-set)
(byte-compile-function-form, byte-compile-set-default)
(byte-compile-warn-obsolete, byte-compile--declare-var): Pass the
symbol being warned in to byte-compile-warning-enabled-p.

* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): New
function.
(bytecomp-test--with-suppressed-warnings): Tests.

5 years agoFix to previous commit
Roland Winkler [Wed, 12 Jun 2019 03:17:30 +0000 (22:17 -0500)]
Fix to previous commit

* find-dired.el (find-dired-sentinel): Check whether
find-dired-refine-function is non-nil.

5 years agoAllow refining the *Find* buffer of find-dired. (Bug#29513)
Roland Winkler [Tue, 11 Jun 2019 21:04:45 +0000 (16:04 -0500)]
Allow refining the *Find* buffer of find-dired. (Bug#29513)

* find-dired.el (find-dired-refine-function): New user variable.
(find-dired-sentinel): Use it.  Simplify.
(find-dired-sort-by-filename): New function.

5 years agoKeep auto-revert-mode working when changing buffer file name (bug#36159)
Mattias Engdegård [Mon, 10 Jun 2019 15:52:50 +0000 (17:52 +0200)]
Keep auto-revert-mode working when changing buffer file name (bug#36159)

* lisp/autorevert.el (after-set-visited-file-name-hook):
Add unconditionally.
(global-auto-revert-mode): Don't use
`after-set-visited-file-name-hook' here.
(auto-revert-set-visited-file-name): Rename from
`auto-revert--global-set-visited-file-name' and generalise.
* test/lisp/autorevert-tests.el (auto-revert-test06-write-file): New.

5 years agoMinor fixes on tramp-tests.el for w32
Michael Albinus [Tue, 11 Jun 2019 18:28:31 +0000 (20:28 +0200)]
Minor fixes on tramp-tests.el for w32

* test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
Ignore absence of tput.
(tramp-test43-asynchronous-requests): Don't start watchdog on w32.

5 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 11 Jun 2019 15:38:34 +0000 (08:38 -0700)]
Merge from origin/emacs-26

5ca093d (origin/emacs-26) Fix doc of 'display-buffer-in-previous-wind...
add2cac lisp/*.el: Minor docstring fixes

5 years ago; Merge from origin/emacs-26
Glenn Morris [Tue, 11 Jun 2019 15:38:34 +0000 (08:38 -0700)]
; Merge from origin/emacs-26

The following commit was skipped:

fdd1b3e Avoid assertion violation when comparing with main-thread

5 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 11 Jun 2019 15:38:34 +0000 (08:38 -0700)]
Merge from origin/emacs-26

758e9a8 Revert "Don't mark main_thread (Bug#36155)"
1877b7b Don't mark main_thread (Bug#36155)
4904fb3 More quotation fixes (Bug#35885)
4cc4b5d ; * src/keyboard.c (tool_bar_items): Fix a typo.  (Bug#36143)
b58ecaf Minor copyedits in efaq-w32
48422af Tiny improvement of documentation of major mode conventions
25d44d2 * nt/addpm.c (main): Fix buffer overflow

5 years agoFix list-processes typo with thread-name
Pip Cet [Tue, 11 Jun 2019 15:24:55 +0000 (08:24 -0700)]
Fix list-processes typo with thread-name

* lisp/simple.el (list-processes--refresh):
Don’t assume thread-name succeeds (Bug#36163).

5 years agoFix shaping of Arabic test when the region is extended
Eli Zaretskii [Tue, 11 Jun 2019 14:45:23 +0000 (17:45 +0300)]
Fix shaping of Arabic test when the region is extended

* src/xdisp.c (compute_stop_pos): Set the limit for searching
for changes in text properties such that the limit is never in
the middle of composable text.  (Bug#28312)

5 years agoAdd missing indentation declaration to a few macros.
Philipp Stephani [Tue, 11 Jun 2019 11:34:14 +0000 (13:34 +0200)]
Add missing indentation declaration to a few macros.

* lisp/window.el (with-temp-buffer-window)
(with-current-buffer-window, with-displayed-buffer-window):
Add missing indentation declaration

5 years agoFix mouse cursor movement in 'select-frame-set-input-focus' (Bug#36165)
Pip Cet [Tue, 11 Jun 2019 08:13:36 +0000 (10:13 +0200)]
Fix mouse cursor movement in 'select-frame-set-input-focus' (Bug#36165)

* lisp/frame.el (select-frame-set-input-focus): With
'mouse-autoselect-window' use 'set-mouse-pixel-position' to
avoid selecting another window manager window (Bug#36165).

5 years agoFix doc of 'display-buffer-in-previous-window' (Bug#36161)
Martin Rudalics [Tue, 11 Jun 2019 07:28:29 +0000 (09:28 +0200)]
Fix doc of 'display-buffer-in-previous-window' (Bug#36161)

* doc/lispref/windows.texi (Buffer Display Action Functions):
* lisp/window.el (display-buffer-in-previous-window): Tell
that 'display-buffer-in-previous-window' prefers
non-selected windows (Bug#36161).

5 years agoDon't keep warning about unescaped literals (Bug#36068)
Noam Postavsky [Wed, 5 Jun 2019 01:26:06 +0000 (21:26 -0400)]
Don't keep warning about unescaped literals (Bug#36068)

* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Restore lost
let-binding of lread--unescaped-character-literals, so that unescaped
literals warning will only apply to the form just read.
* test/lisp/emacs-lisp/bytecomp-tests.el
(bytecomp-tests--unescaped-char-literals): Expand test to check that
we don't keep warning about old unescaped literals.

5 years agolisp/*.el: Minor docstring fixes
Juanma Barranquero [Mon, 10 Jun 2019 21:47:01 +0000 (23:47 +0200)]
lisp/*.el: Minor docstring fixes

* lisp/subr.el (definition-prefixes): Reflow docstring.

* lisp/svg.el (svg-create): Doc fix to allow arg higlighting.
(svg-gradient, svg-rectangle): Improve docstring formatting.

5 years agoMake tramp-test43-asynchronous-requests working, again
Michael Albinus [Mon, 10 Jun 2019 15:53:15 +0000 (17:53 +0200)]
Make tramp-test43-asynchronous-requests working, again

* test/lisp/net/tramp-tests.el (tramp-list-tramp-buffers):
Declare `tramp-list-tramp-buffers'.
(tramp--test-ignore-make-symbolic-link-error)
(tramp--test-ignore-add-name-to-file-error): Improve declaration.
(tramp--test-with-proper-process-name-and-buffer): New macro.
(tramp-test43-asynchronous-requests): Use the macro for timer,
process filter and process sentinel.  Comment the remote file
operation in the timer.  Remove further async events.  Accept
output from all processes.

5 years agoFix quoting problem in Tramp on w32 systems
Michael Albinus [Mon, 10 Jun 2019 15:48:08 +0000 (17:48 +0200)]
Fix quoting problem in Tramp on w32 systems

* lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile):
* lisp/net/tramp-integration.el (tramp-connection-local-default-profile):
Revert patch from 2019-05-24.  It is fixed differently.

* lisp/net/tramp.el (tramp-encoding-shell):
(tramp-encoding-command-switch)
(tramp-encoding-command-interactive, )
(tramp-unquote-shell-quote-argument): Suppress `shell-file-name'.
(tramp-set-file-uid-gid):
* lisp/net/tramp-sh.el (tramp-find-inline-compress)
(tramp-make-copy-program-file-name):
* lisp/net/tramp-smb.el (tramp-smb-handle-copy-directory):
Use `tramp-unquote-shell-quote-argument'.

5 years agoAvoid assertion violation when comparing with main-thread
Eli Zaretskii [Wed, 17 Oct 2018 15:19:47 +0000 (18:19 +0300)]
Avoid assertion violation when comparing with main-thread

* src/thread.c (unmark_main_thread): New function.
* src/lisp.h (unmark_main_thread): Prototype it.
* src/alloc.c (garbage_collect_1): Call it after sweeping.
(Bug#33073)

* test/src/thread-tests.el (threads-test-bug33073): New test.

5 years agoRevert "Don't mark main_thread (Bug#36155)"
Andreas Schwab [Mon, 10 Jun 2019 10:52:21 +0000 (12:52 +0200)]
Revert "Don't mark main_thread (Bug#36155)"

This reverts commit 1877b7b4d79b3434379fd5a4abd85906c25df00c.

5 years agoFix copy-paste error in autorevert-test
Mattias Engdegård [Mon, 10 Jun 2019 10:20:13 +0000 (12:20 +0200)]
Fix copy-paste error in autorevert-test

* test/lisp/autorevert-tests.el: Use correct name to define a remote test.

5 years agoDon't mark main_thread (Bug#36155)
Andreas Schwab [Mon, 10 Jun 2019 10:34:38 +0000 (12:34 +0200)]
Don't mark main_thread (Bug#36155)

* thread.c (mark_threads_callback): Don't mark main_thread.

5 years ago* src/editfns.c (Fngettext): Fix typos in docstring.
Juanma Barranquero [Mon, 10 Jun 2019 04:12:37 +0000 (06:12 +0200)]
* src/editfns.c (Fngettext): Fix typos in docstring.

5 years agoAvoid empty menu bar on Xaw with cairo
YAMAMOTO Mitsuharu [Mon, 10 Jun 2019 03:55:37 +0000 (12:55 +0900)]
Avoid empty menu bar on Xaw with cairo

* lwlib/lwlib-utils.c (crxft_font_open_name) [USE_CAIRO]: Return NULL if
font extents are bogus.

5 years agoDocument exporting/printing text with X core fonts to outline images on cairo
YAMAMOTO Mitsuharu [Mon, 10 Jun 2019 01:06:26 +0000 (10:06 +0900)]
Document exporting/printing text with X core fonts to outline images on cairo

* src/xfns.c (Fx_export_frames) [USE_CAIRO]:
(Fx_print_frames_dialog) [USE_CAIRO && USE_GTK]: Add notes on x font backend.

5 years ago; Revert "Publicize behavior of log-view-diff at beginning/end of active region"
Dmitry Gutov [Mon, 10 Jun 2019 00:58:53 +0000 (03:58 +0300)]
; Revert "Publicize behavior of log-view-diff at beginning/end of active region"

This reverts commit 82db17d0d1231c4aa26e837f37428c44a67663ea.

Undo the half-baked implementation of the new feature in Git log
buffers until we can do it better (bug#35624).

5 years agoOmit the misplaced and unnecessary shyness qualifier
Dmitry Gutov [Mon, 10 Jun 2019 00:50:44 +0000 (03:50 +0300)]
Omit the misplaced and unnecessary shyness qualifier

* lisp/progmodes/ruby-mode.el (ruby-find-library-file):
Omit the misplaced and unnecessary shyness qualifier.
Suggested by Mattias Engdegård <mattiase@acm.org>.

5 years agoUnbreak saving xref--original-window, etc
Dmitry Gutov [Mon, 10 Jun 2019 00:10:34 +0000 (03:10 +0300)]
Unbreak saving xref--original-window, etc

* lisp/progmodes/xref.el (xref--show-xref-buffer)
(xref--show-defs-buffer-at-bottom): Move major mode calls earlier.
So that local variable values are not lost.

5 years agoAdd tests for mail/uudecode.el
Stefan Kangas [Mon, 10 Jun 2019 00:05:15 +0000 (17:05 -0700)]
Add tests for mail/uudecode.el

* lisp/mail/uudecode.el: Remove redundant :group usage.
* test/lisp/mail/uudecode-resources/uudecoded.txt,
test/lisp/mail/uudecode-resources/uuencoded.txt,
test/lisp/mail/uudecode-tests.el: New files.

5 years agoFig grammar of count-lines-page
Paul Eggert [Sun, 9 Jun 2019 23:59:43 +0000 (16:59 -0700)]
Fig grammar of count-lines-page

* lisp/textmodes/page.el (count-lines-page):
Say "Page has 1 line", not "Page has 1 lines" (Bug#35981).

5 years agoMake bookmark-old-default-file variable obsolete
Stefan Kangas [Sun, 9 Jun 2019 23:47:16 +0000 (16:47 -0700)]
Make bookmark-old-default-file variable obsolete

* lisp/bookmark.el (bookmark-old-default-file):
Redefine as obsolete variable alias for 'bookmark-default-file'.
(bookmark-maybe-load-default-file): Don't try to rename file
'bookmark-old-default-file' (~/.emacs-bkmrks) to new name (Bug#35940).

5 years agoMake bookmark-maybe-message obsolete (Bug#35918)
Stefan Kangas [Sun, 9 Jun 2019 23:38:31 +0000 (16:38 -0700)]
Make bookmark-maybe-message obsolete (Bug#35918)

* lisp/bookmark.el (bookmark-maybe-message):
Redefine as obsolete function alias for 'message'.
(bookmark-write-file): Use a progress reporter.
(bookmark-load-file): Use a progress reporter.

5 years agoMake `bookmark-file' variable obsolete
Stefan Kangas [Sun, 9 Jun 2019 23:26:55 +0000 (16:26 -0700)]
Make `bookmark-file' variable obsolete

* lisp/bookmark.el (bookmark-file): Redefine as obsolete variable
alias for `bookmark-default-file'.  (Bug#35917)

5 years ago* make-dist: Doc fix for --help re --snapshot (since 201612 change).
Glenn Morris [Sun, 9 Jun 2019 22:55:24 +0000 (15:55 -0700)]
* make-dist: Doc fix for --help re --snapshot (since 201612 change).

5 years agoRemove interactive spec from bookmark-set-internal (bug#36121)
Stefan Kangas [Sun, 9 Jun 2019 17:16:06 +0000 (10:16 -0700)]
Remove interactive spec from bookmark-set-internal (bug#36121)

* lisp/bookmark.el (bookmark-set-internal): Remove interactive spec.

5 years agoPacify compiler in paragraphs.el after lexical-binding
Stefan Kangas [Sun, 9 Jun 2019 17:12:43 +0000 (10:12 -0700)]
Pacify compiler in paragraphs.el after lexical-binding

* lisp/textmodes/paragraphs.el: Pacify byte compiler.

5 years agoUse lexical-binding in password-cache.el and add tests
Stefan Kangas [Sun, 9 Jun 2019 16:18:46 +0000 (09:18 -0700)]
Use lexical-binding in password-cache.el and add tests

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

5 years ago* src/fns.c (cmpfn_eql): Simplify.
Paul Eggert [Sun, 9 Jun 2019 16:18:05 +0000 (09:18 -0700)]
* src/fns.c (cmpfn_eql): Simplify.

5 years agoUse lexical binding for ediff
Alex Branham [Thu, 9 May 2019 12:47:26 +0000 (07:47 -0500)]
Use lexical binding for ediff

* lisp/vc/ediff-diff.el:
* lisp/vc/ediff-help.el:
* lisp/vc/ediff-hook.el:
* lisp/vc/ediff-init.el:
* lisp/vc/ediff-merg.el:
* lisp/vc/ediff-vers.el:
* lisp/vc/ediff-wind.el:
* lisp/vc/ediff-mult.el:
* lisp/vc/ediff-ptch.el:
* lisp/vc/ediff.el: Use lexical binding.
(ediff-version): Increase.
(ediff-date): Remove.

5 years agoRename xref--pop-to-location to xref-pop-to-location
Dmitry Gutov [Sun, 9 Jun 2019 14:13:40 +0000 (17:13 +0300)]
Rename xref--pop-to-location to xref-pop-to-location

* lisp/progmodes/xref.el (xref-pop-to-location):
Rename from xref-pop-to-location.  So that third-party
xref-show-definitions-function implementations can use it safely
(bug#36144).  Update all callers.

5 years agoAdd a built-in alternative for xref-show-definitions-function
Dmitry Gutov [Fri, 31 May 2019 15:30:36 +0000 (18:30 +0300)]
Add a built-in alternative for xref-show-definitions-function

* lisp/progmodes/xref.el (xref--transient-buffer-mode-map):
New variable.
(xref--transient-buffer-mode): New major mode.
(xref--button-map): Remove the RET binding (it was unnecessary in
the first place).
(xref--show-common-initialize):
Extract from xref--show-xref-buffer.
(xref--show-defs-buffer-at-bottom): New function.

5 years agoMore quotation fixes (Bug#35885)
Eli Zaretskii [Sun, 9 Jun 2019 08:28:36 +0000 (11:28 +0300)]
More quotation fixes (Bug#35885)

* doc/emacs/text.texi (Quotation Marks): Fix a typo.
* doc/emacs/modes.texi (Minor Modes): Fix another case of
showing quotations.

5 years agoFix TODO to convert defvar with leading '*' to defcustom
Stefan Kangas [Thu, 30 May 2019 11:05:46 +0000 (13:05 +0200)]
Fix TODO to convert defvar with leading '*' to defcustom

* etc/TODO: Remove done TODO to remove '*' from defvar.
* doc/misc/gnus.texi: Remove leading '*' from defvar example.
* lisp/kermit.el (kermit-esc-char): Convert to defcustom.
* lisp/desktop.el (desktop-header):
* lisp/obsolete/cc-compat.el (c-indent-level)
(c-brace-imaginary-offset, c-brace-offset, c-argdecl-indent)
(c-label-offset, c-continued-statement-offset)
(c-continued-brace-offset): Remove leading '*' from docstring.
* lisp/progmodes/dcl-mode.el: Remove leading '*' from docstring in
comment.
* test/manual/cedet/tests/test.el: Add comment asking if example of
defvar with leading '*' should be removed.
(Bug#35994)  (The previous commit is also for the same bug.)

5 years agoFix TODO to remove leading '*' from defcustom
Stefan Kangas [Wed, 29 May 2019 16:49:07 +0000 (18:49 +0200)]
Fix TODO to remove leading '*' from defcustom

* etc/TODO: Remove done TODO to remove leading '*' from defcustom
doc-strings.
* lisp/ibuffer.el (ibuffer-inline-columns): Remove leading '*' from
doc-string.

5 years agoMark define-widget-keywords as obsolete
Stefan Kangas [Wed, 29 May 2019 17:38:27 +0000 (19:38 +0200)]
Mark define-widget-keywords as obsolete

* lisp/widget.el (define-widget-keywords): Mark as obsolete.
(Bug#36065)