Lars Ingebrigtsen
661c0dfa2f
Fix compilation warning in obsolete/complete.el
...
* lisp/obsolete/complete.el (completion-base-size): Avoid
compilation warning.
2020-09-12 15:08:41 +02:00
Lars Ingebrigtsen
97e9bddd0f
Fix compilation warning in cl-lib.el
...
* lisp/emacs-lisp/cl-lib.el (cl-old-struct-compat-mode): Put the
minor mode in the tools group (to avoid a compilation warning).
2020-09-12 15:06:58 +02:00
Lars Ingebrigtsen
227f93abcc
dired-omit-mode may not be defined in dired-jump
...
* lisp/dired.el (dired-jump): dired-omit-mode is in dired-x, so it
may not be defined in dired.
2020-09-12 15:01:32 +02:00
Alex Bochannek
4c3f3bf256
Support scoring on article age interactively in Gnus
...
* lisp/gnus/gnus-score.el (gnus-summary-score-entry): Support
scoring on article age in interactive scoring (bug#43270).
2020-09-12 14:04:02 +02:00
Glenn Morris
a4bfb0bc5c
Default Emacs to UTF-8 instead of Latin-1
...
* doc/emacs/mule.texi (File Name Coding): Document it.
* lisp/international/mule-cmds.el (reset-language-environment):
Default to utf-8 instead of latin-1.
* lisp/mail/sendmail.el (default-sendmail-coding-system): Ditto.
* lisp/mh-e/mh-comp.el (mh-send-letter): Ditto.
2020-09-12 13:37:31 +02:00
Martin Rudalics
b9db19b23a
Fix toggle-frame-fullscreen on w32 builds
...
* src/w32term.c (w32_read_socket): Set 'fullscreen' to 'maximized'
if Windows sends SIZE_MAXIMIZED and either the top or the left of
the frame is outside the screen. (Bug#25542)
2020-09-12 07:32:58 -04:00
Lars Ingebrigtsen
6a9c0b0968
Further diff-no-select doc string clarification
...
* lisp/vc/diff.el (diff-no-select): Doc string clarification.
2020-09-12 13:06:35 +02:00
Eli Zaretskii
699e40caf6
Avoid unneeded recentering when header-line is used
...
* src/xdisp.c (try_window): Account for header-line height only in
the scroll-margin at the window's top, but not at its bottom.
(Bug#42653)
2020-09-12 11:06:54 +03:00
Stefan Kangas
7d30ca7f66
Move dired-jump from dired-x to dired (Bug#21981)
...
* lisp/dired-x.el (dired-bind-jump): Change into defvar and make
obsolete.
(dired-extra-startup): Doc fix.
(dired-jump, dired-jump-other-window): Move from here...
* lisp/dired.el (dired-jump, dired-jump-other-window): ...to here.
* lisp/bindings.el (ctl-x-map, ctl-x-4-map): Bind 'C-j' to
'dired-jump' and 'dired-jump-other-window'.
* doc/misc/dired-x.texi (Features, Installation)
(Miscellaneous Commands): Remove documentation of 'dired-jump'.
* doc/emacs/dired.texi (Dired Enter): Document 'dired-jump' and
dired-jump-other-window.
* etc/NEWS: Announce the above changes.
* test/lisp/dired-tests.el (dired-autoload): Adjust test.
2020-09-12 03:42:37 +02:00
Stefan Kangas
f5d8cfff5a
Add some eshell completion patterns
...
* lisp/eshell/em-cmpl.el (eshell-command-completions-alist):
Add 'gunzip', 'bunzip2' and 'unxz'.
2020-09-11 22:04:24 +02:00
Stefan Kangas
91a221b279
Remove cedet items obsolete since 23.2
...
* lisp/cedet/semantic.el (semantic-toplevel-bovine-table)
(semantic-toplevel-bovine-cache)
(semantic-before-toplevel-bovination-hook)
(semantic-after-toplevel-bovinate-hook, semantic-init-hooks)
(semantic-init-mode-hooks, semantic-init-db-hooks)
(semantic-bovination-working-type, semantic-bovinate-toplevel)
(semantic-bovinate-region-until-error)
(semantic-bovinate-from-nonterminal-full):
* lisp/cedet/semantic/db-mode.el (semanticdb-mode-hooks):
* lisp/cedet/semantic/decorate/mode.el
(semantic-decorate-pending-decoration-hooks):
* lisp/cedet/semantic/edit.el
(semantic-edits-incremental-reparse-failed-hooks):
* lisp/cedet/semantic/fw.el (define-mode-overload-implementation):
* lisp/cedet/semantic/idle.el
(semantic-before-idle-scheduler-reparse-hooks)
(semantic-after-idle-scheduler-reparse-hooks):
(semantic-eldoc-current-symbol-info)
* lisp/cedet/semantic/imenu.el (semantic-imenu-expand-type-parts)
(semantic-imenu-bucketize-type-parts)
(semantic-imenu-expandable-token):
* lisp/cedet/semantic/java.el
(semantic-java-prototype-nonterminal):
* lisp/cedet/semantic/lex.el (semantic-flex-token-start)
(semantic-flex-token-end, semantic-flex-token-text)
(semantic-flex-make-keyword-table, semantic-flex-keyword-p)
(semantic-flex-keyword-put, semantic-flex-keyword-get)
(semantic-flex-map-keywords, semantic-flex-keywords)
(semantic-flex-buffer, semantic-flex-list, semantic-flex):
* lisp/cedet/semantic/tag-file.el (semantic-find-nonterminal)
(semantic-find-dependency):
* lisp/cedet/semantic/tag-ls.el (semantic-nonterminal-full-name)
(semantic-nonterminal-protection, semantic-nonterminal-abstract)
(semantic-nonterminal-leaf):
* lisp/cedet/semantic/tag.el (semantic-token-type-parent)
(semantic-tag-make-assoc-list, semantic-expand-nonterminal):
* lisp/cedet/semantic/util.el (semantic-file-token-stream)
(semantic-something-to-stream):
* lisp/cedet/semantic/wisent.el (wisent-lex-make-token-table):
Delete many items obsolete since Emacs 23.2.
* lisp/cedet/semantic.el (semantic--set-buffer-cache)
(semantic-fetch-tags): Don't run removed hooks
'semantic-after-toplevel-bovinate-hook' and
'semantic-before-toplevel-bovination-hook'.
* lisp/cedet/semantic/bovine/el.el: Remove reference to obsolete
variable 'define-mode-overload-implementation'.
* lisp/cedet/semantic/doc.el (semantic-doc-snarf-comment-for-tag):
Don't bind removed variable 'semantic-ignore-comments'.
* lisp/cedet/semantic/fw.el (semantic-overload-symbol-from-function)
(semantic-alias-obsolete, semantic-varalias-obsolete): Declare
obsolete in favor of standard Emacs 'define-obsolete-*-alias'.
* lisp/cedet/semantic/grammar.el (semantic-grammar-ASSOC): Don't
use obsolete names.
* lisp/cedet/semantic/tag-ls.el (semantic-tag-full-package)
(semantic-tag-full-name): Doc fixes.
* lisp/cedet/semantic/util.el (semantic-describe-buffer): Don't bind
removed variable 'semantic-after-toplevel-bovinate-hook'.
* lisp/cedet/semantic/lex.el (semantic-flex-tokens)
(semantic-flex-unterminated-syntax-end-function)
(semantic-flex-extensions, semantic-flex-syntax-modifications)
(semantic-ignore-comments, semantic-flex-enable-newlines)
(semantic-flex-enable-whitespace, semantic-flex-enable-bol)
(semantic-number-expression, semantic-flex-depth): Make unused
variables obsolete.
; * etc/NEWS: List removed items.
2020-09-11 21:58:50 +02:00
Lars Ingebrigtsen
d608eb1c94
Guard against faulty flow-filled emails
...
* lisp/mail/flow-fill.el (fill-flowed): Don't bug out if there's a
space at the end of the buffer. This is probably not allowed in
the flow-fill specification, but has been observed in the wild.
2020-09-11 16:45:16 +02:00
Alan Mackenzie
b054393dd1
CC Mode: Fix minor bugs in the string handling functions
...
These sometimes gave rise to the tail of a buffer being "stringed out".
* lixp/progmodes/cc-defs.el (c-will-be-unescaped): New macro.
* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings)
(c-after-change-mark-abnormal-strings): Fix bugs in the handling of string
fence syntax-table text properties.
2020-09-11 14:22:04 +00:00
Eli Zaretskii
6dbef93048
Improve help-echo of Undo and Redo menu items
...
* lisp/menu-bar.el (undo-redo, undo): Improve the wording of
help-echo strings.
2020-09-11 17:13:44 +03:00
Lars Ingebrigtsen
bde93182bf
Tweak previous mailcap patch (for external viewers)
...
* lisp/net/mailcap.el (mailcap-view-mime): Delete contents of the
buffer in the external case, too.
2020-09-11 15:37:00 +02:00
Michael Albinus
dbd8994e0d
D-Bus: Implement other compound types of properties
...
* doc/misc/dbus.texi (Errors and Events):
* etc/NEWS: Mention dbus-show-dbus-errors.
* lisp/net/dbus.el (dbus-compound-types): New defconst.
(dbus): New defgroup.
(dbus-show-dbus-errors): New defcustom.
(dbus-ignore-errors): Use it.
(dbus-set-property): Simplify.
(dbus-property-handler): Implement other compound types of properties.
* test/lisp/net/dbus-tests.el (dbus--test-register-service)
(dbus-test05-register-property): Extend tests.
2020-09-11 15:34:33 +02:00
Lars Ingebrigtsen
2862f6b2bf
Fix up eldef shortening of the minibuffer
...
* lisp/minibuf-eldef.el (minibuffer-default--in-prompt-regexps):
Don't include the ": " bit in the portion to be replaced
(bug#12443).
2020-09-11 14:52:25 +02:00
Lars Ingebrigtsen
8d9133c602
Improve diff-no-select doc string
...
* lisp/vc/diff.el (diff-no-select): Improve the doc string somewhat.
2020-09-11 14:26:15 +02:00
Lars Ingebrigtsen
a34a80a878
Fix viewing PDFs from eww with external viewers
...
* lisp/net/mailcap.el (mailcap-view-mime): Most MIME viewers can't
take input on stdin (and in any case, "-" is not how many of them
designate stdin) (bug#43318). So rewrite to put the data on a
file and feed the file name to the viewer.
2020-09-11 14:06:07 +02:00
Mattias Engdegård
c0eee8cb2c
Calc: regularise test names
...
* test/lisp/calc/calc-tests.el (calc-remove-units, calc-extract-units)
(calc-convert-units, calc-bug-23889, calc-trig, calc-format-radix)
(calc-calendar, calc-solve-linear-system):
Use a uniform naming convention (calc- prefix) to simplify test running.
2020-09-11 13:11:43 +02:00
Mattias Engdegård
891bbec2e0
Simplify big integer constants in Calc
...
* lisp/calc/calc-comb.el (math-small-factorial-table):
* lisp/calc/calc-funcs.el (math-bernoulli-b-cache):
* lisp/calc/calc.el (math-2-word-size, math-half-2-word-size):
No need for math-read-number-simple.
2020-09-11 13:02:59 +02:00
Mattias Engdegård
b5fe447480
Fix calc tests when running noninteractively
...
This error was introduced in 8e1376a391
.
* lisp/calc/calc.el (calc--header-line): Prevent size from being negative.
2020-09-11 12:54:00 +02:00
Eli Zaretskii
e2391d486e
* lisp/simple.el (undo-redo): Doc fix.
2020-09-11 08:56:51 +03:00
Andrew G Cohen
8cf274f960
Allow an info structure as argument for gnus-group-get-parameter
...
* lisp/gnus/gnus.el (gnus-group-get-parameter): Allow the group
argument to be either a group name or a group info structure. This is
then parallel to gnus-group-set-parameter.
2020-09-11 10:31:47 +08:00
Stefan Monnier
f7e35f8162
* lisp/loadup.el ("button"): Move to after loaddefs.el
2020-09-10 22:10:02 -04:00
Andrew G Cohen
206cff84bd
Clean up group-finding in Gnus nnir search
...
This is part of removing code from nnir.el that isn't related to
searching backends and therefore belongs somewhere else.
* lisp/gnus/gnus-group.el (gnus-group-make-search-group)
(gnus-group-read-ephemeral-search-group): Put the logic for
determining the groups to search here, rather than in nnir. Improve
documentation.
* lisp/gnus/gnus-int.el (gnus-server-get-active): Renamed from
'nnir-get-active.
* lisp/gnus/nnir.el (nnir-run-imap, nnir-run-find-grep): Use it.
(nnir-get-active): Remove.
(nnir-make-specs): Make obsolete.
* lisp/gnus/nnselect.el (nnselect-group-server): Make obsolete in
favor of 'gnus-group-server.
2020-09-11 09:02:09 +08:00
Andrew G Cohen
f7be259400
Allow editing articles in Gnus nnselect groups
...
* lisp/gnus/nnselect.el (nnselect-request-replace-article): New function.
2020-09-11 07:31:56 +08:00
Elad Lahav
37c095a23f
Fix QNX build
...
* configure.ac: The __NO_EXT_QNX flag is no longer needed, and is
masking the declaration of memset_s() (bug#43234).
Copyright-paperwork-exempt: yes
2020-09-11 00:01:06 +02:00
Boruch Baum
8e1376a391
Use a header line in calc mode instead of a regular in-buffer line
...
* lisp/calc/calc.el (calc-trail-here): Use a header line.
(calc--header-line): New function.
(calc-trail-mode): Use a header line.
2020-09-10 23:44:16 +02:00
Lars Ingebrigtsen
a4d37877f8
Tweak how `M-RET' in Message mode fills paragraphs
...
* lisp/gnus/message.el (message-newline-and-reformat): Pick up any
longer white-space prefix before starting to fill (bug#43299).
This fixes the problem of hitting M-RET on a line that's just ">".
2020-09-10 23:26:30 +02:00
Lars Ingebrigtsen
da344e1884
Doc fix for diff-no-select
...
* lisp/vc/diff.el (diff-no-select): Document the BUF argument
(bug#43307).
2020-09-10 23:03:50 +02:00
Caio Henrique
bd5b775452
Add a "Redo" entry to the menu
...
* lisp/menu-bar.el (menu-bar-edit-menu): Add "Redo" under "Undo"
in the Edit menu (bug#43315).
Copyright-paperwork-exempt: yes
2020-09-10 22:57:48 +02:00
Stefan Kangas
a70ce631c6
* lisp/textmodes/artist.el: Remove obsolete comments.
2020-09-10 21:14:29 +02:00
Juri Linkov
27b711f834
; Fix typos in format-prompt
2020-09-10 21:58:26 +03:00
Stefan Kangas
4ba71eee8d
Convert indent test for css-mode into automatic test
...
* test/lisp/textmodes/css-mode-tests.el (css-mode-test-indent): New
test.
(css-mode-tests-data-dir): New variable.
* test/manual/indent/css-mode.css: Move from here...
* test/lisp/textmodes/css-mode-resources/test-indent.css: ...to here.
2020-09-10 20:40:34 +02:00
Stefan Kangas
498773447a
; * test/manual/indent/elisp.el: Use lexical-binding.
2020-09-10 20:31:42 +02:00
Stefan Kangas
262d0c6acf
Mark some tests as expensive
...
* test/lisp/autorevert-tests.el
(auto-revert-test00-auto-revert-mode)
(auto-revert-test03-auto-revert-tail-mode)
(auto-revert-test04-auto-revert-mode-dired):
* test/lisp/cedet/semantic-utest-c.el
(semantic-test-c-preprocessor-simulation):
* test/lisp/cedet/srecode-utest-getset.el
(srecode-utest-getset-output):
* test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-test-bug24264):
* test/lisp/emacs-lisp/package-tests.el
(package-test-update-archives-async):
* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test04-autorevert)
(file-notify-test05-file-validity, file-notify-test08-backup):
* test/lisp/net/gnutls-tests.el (test-gnutls-005-aead-ciphers):
* test/lisp/shadowfile-tests.el (shadow-test00-clusters)
(shadow-test09-shadow-copy-files):
2020-09-10 20:25:19 +02:00
Stefan Kangas
be4c4a7389
Use lexical-binding in mml-sec-tests.el
...
* test/lisp/gnus/mml-sec-tests.el: Use lexical-binding.
(mml-secure-test-mail-fixture)
(mml-secure-test-en-decrypt-with-passphrase): Fix warnings.
2020-09-10 19:32:53 +02:00
Stefan Kangas
ba3e2b80c0
* test/lisp/org/org-tests.el: Use lexical-binding.
2020-09-10 19:32:53 +02:00
Stefan Kangas
d32cf354b0
Use lexical-binding in url-future-tests.el
...
* test/lisp/url/url-future-tests.el: Use lexical-binding.
(url-future-tests--saver): New variable.
(url-future-tests): Use new variable.
2020-09-10 19:32:53 +02:00
Stefan Kangas
88a25960ec
Use lexical-binding in semantic-utest-c.el
...
* test/lisp/cedet/semantic-utest-c.el: Use lexical-binding.
(semantic-test-gcc-output-parser): Fix warning.
2020-09-10 19:32:53 +02:00
Michael Albinus
be5047c0d2
Implement D-Bus properties with compound type.
...
* lisp/net/dbus.el (dbus-set-property): Fix thinko.
(dbus-register-property, dbus-property-handler): Support compound
properties.
* src/dbusbind.c (dbus-registered-objects-table): Fix docstring.
* test/lisp/net/dbus-tests.el (dbus--test-interface): Make it
different to `dbus--test-service'.
(dbus-test05-register-property)
(dbus-test05-register-property-several-paths): Adapt tests.
2020-09-10 18:49:22 +02:00
Nick Savage
70a8d06fe1
Open describe-function NEWS links in view-mode
...
* lisp/help-mode.el (help-news): Open describe-function NEWS links in
view-mode (Bug#39912)
Copyright-paperwork-exempt: yes
2020-09-10 15:18:46 +02:00
Alex Bochannek
6c46dddcb2
Fix up < and > "date" scoring rules in Gnus
...
* lisp/gnus/gnus-score.el (gnus-score-date): The previous < and >
"date" scoring rules (added in the previous patch) had reversed
logic (bug#43270).
Copyright-paperwork-exempt: yes
2020-09-10 15:16:04 +02:00
Mauro Aranda
c033bb8648
Fix :match function for the file widget
...
* lisp/wid-edit.el (file widget): Return nil if value is not a
string (bug#25678).
2020-09-10 15:12:50 +02:00
Lars Ingebrigtsen
5d522b430b
Revert back to using ESC as viper-ESC-key again
...
* lisp/emulation/viper-keym.el (viper-ESC-key): Revert back to
using ESC instead of `escape' (bug#18182). This allows using
`C-[' again on terminals for ESC. The key should be mapped back
to `escape' by `function-key-map'.
2020-09-10 14:54:42 +02:00
Andrew G Cohen
be64c36dd4
Fix new summary-line after editing an article in Gnus
...
* lisp/gnus/gnus-sum.el (gnus-summary-edit-article-done): Strip ^M
from the ends of lines after saving an edited article. Otherwise the
new header isn't always parsed properly, resulting in an incorrect
subject line in the summary buffer.
2020-09-10 20:23:34 +08:00
Amin Bandali
931b9f5953
Set `generated-autoload-file' in erc-status-sidebar.el
...
* lisp/erc/erc-status-sidebar.el: Set `generated-autoload-file' to
ERC's dedicated "erc-loaddefs.el", since we don't need this file's
autoloaded functions to be available before ERC itself is loaded.
2020-09-09 23:07:49 -04:00
Basil L. Contovounesios
d08568e6e9
; Silence byte-compilation warning in last change
...
* lisp/tab-line.el (tab-line-switch-cycling): Move definition before
first use.
2020-09-10 00:20:24 +01:00
Basil L. Contovounesios
60cb56e999
; Fix typo in last change
2020-09-10 00:15:09 +01:00