1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00
Commit Graph

138765 Commits

Author SHA1 Message Date
Stefan Kangas
dd3592564a Declare unused vhdl code in align.el obsolete
* lisp/align.el (align-vhdl-rules-list, align-set-vhdl-rules): Declare
obsolete.  (Bug#6207)
(align-dq-string-modes, align-open-comment-modes): Move vhdl-mode to
definition instead of adding it later.
2019-10-04 17:11:53 +02:00
Mattias Engdegård
32558cfe53 Fix error in gnu compilation-mode regexp (bug#37582)
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Fix a mistake introduced when the regexp was translated to rx.
* test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data)
(compile-test-error-regexps): Add test case.
* etc/compilation.txt: Add example.
2019-10-04 15:43:15 +02:00
Mattias Engdegård
d09cbcee9c Make compile-tests re-runnable
* test/lisp/progmodes/compile-tests.el (compile-test-error-regexps):
Don't rely on compilation-num-errors (etc) all being zero, which they
aren't if the test has been run before.
(compile-tests--test-regexps-data): Change defvar to defconst.
2019-10-04 15:43:15 +02:00
Lars Ingebrigtsen
5f06b9c478 Remove semantic-make-local-hook call from CEDET
* lisp/cedet/semantic/wisent/grammar.el
(wisent-grammar-setupcode-builder):
* lisp/cedet/semantic/util-modes.el (semantic-highlight-edits-mode)
(semantic-show-unmatched-syntax-mode)
(semantic-show-parser-state-mode):
* lisp/cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode):
* lisp/cedet/semantic/imenu.el (semantic-create-imenu-index):
* lisp/cedet/semantic/grammar.el (semantic-grammar-mode):
* lisp/cedet/semantic/grammar-wy.el
(semantic-grammar-wy--install-parser):
* lisp/cedet/semantic/decorate/mode.el
(semantic-decorate-add-pending-decoration)
(semantic-decoration-mode):
* lisp/cedet/semantic.el (semantic--set-buffer-cache): Remove all
calls to the function.

* lisp/cedet/semantic/fw.el (semantic-make-local-hook): Made
obsolete alias for #'ignore by removing XEmacs compat code.
2019-10-04 15:29:47 +02:00
Lars Ingebrigtsen
33702988d9 Remove some XEmacs compat code from ispell.el
* lisp/textmodes/ispell.el (ispell-word): Remove XEmacs compat code.
2019-10-04 15:29:47 +02:00
Lars Ingebrigtsen
b0ef37758e Remove some XEmacs compat code from ezimage.el
* lisp/ezimage.el (defezimage): Remove XEmacs compat code.
2019-10-04 15:29:47 +02:00
Stefan Kangas
094e48e4e7 Remove XEmacs compat code from re-builder.el
* lisp/emacs-lisp/re-builder.el (top-level)
(reb-color-display-p): Remove XEmacs compat code.
2019-10-04 15:26:10 +02:00
Lars Ingebrigtsen
8ef09cb30a Remove some XEmacs compat code from ediff*.el
* lisp/vc/ediff-diff.el (ediff-goto-word): Ditto.

* lisp/vc/ediff-init.el (ediff-has-face-support-p)
(ediff-current-diff-A, ediff-current-diff-B)
(ediff-current-diff-C, ediff-current-diff-Ancestor)
(ediff-fine-diff-A, ediff-fine-diff-B, ediff-fine-diff-C)
(ediff-fine-diff-Ancestor, ediff-even-diff-A)
(ediff-even-diff-B, ediff-even-diff-C)
(ediff-even-diff-Ancestor, ediff-odd-diff-A, ediff-odd-diff-B)
(ediff-odd-diff-C, ediff-odd-diff-Ancestor)
(ediff-with-syntax-table): Ditto.

* lisp/vc/ediff-mult.el (ediff-dir-diffs-buffer-map)
(ediff-setup-meta-map, ediff-set-meta-overlay): Ditto.

* lisp/vc/ediff-util.el (ediff-setup-keymap)
(ediff-toggle-wide-display, ediff-toggle-multiframe)
(ediff-toggle-use-toolbar, ediff-really-quit)
(ediff-good-frame-under-mouse)
(ediff-make-bullet-proof-overlay): Ditto.

* lisp/vc/ediff-wind.el (ediff-setup-control-frame)
(ediff-refresh-control-frame): Remove XEmacs compat code.
2019-10-04 15:20:48 +02:00
Stefan Monnier
f1d9e41ab0 * lisp/subr.el (generate-new-buffer): Move (from files.el) before first use
(with-temp-file, with-output-to-string): Use it.

* lisp/files.el (generate-new-buffer): Move to subr.el.
2019-10-04 08:56:18 -04:00
Dmitry Gutov
9a3089fea0 (project--vc-list-files): Optimize the Hg implementation
* lisp/progmodes/project.el (project--vc-list-files):
Optimize the Hg implementation.
2019-10-04 15:50:24 +03:00
Lars Ingebrigtsen
1039c2e2eb Remove some more XEmacs compat code from viper*.el
* lisp/emulation/viper-ex.el (viper-ex-read-file-name): Ditto.

* lisp/emulation/viper-init.el (viper-ms-style-os-p)
(viper-has-face-support-p, viper-deactivate-input-method)
(viper-activate-input-method, viper-set-input-method): Ditto.

* lisp/emulation/viper-util.el
(viper-get-saved-cursor-color-in-replace-mode)
(viper-get-saved-cursor-color-in-insert-mode)
(viper-get-saved-cursor-color-in-emacs-mode)
(viper-set-replace-overlay, viper-key-to-emacs-key)
(viper-set-unread-command-events): Ditto.

* lisp/emulation/viper.el (viper-go-away, viper-set-hooks)
(viper-non-hook-settings): Remove XEmacs compat code.
2019-10-04 14:44:34 +02:00
Lars Ingebrigtsen
07959a0ffb Remove more XEmacs compat code from viper-*.el
* lisp/emulation/viper-cmd.el (viper-special-read-and-insert-char)
(viper-next-line-carefully, viper-next-line)
(viper-previous-line): Ditto.

* lisp/emulation/viper-mous.el (viper-surrounding-word)
(viper-parse-mouse-key): Remove XEmacs compat code.
2019-10-04 14:30:21 +02:00
Lars Ingebrigtsen
7174a2b59f Remove XEmacs-only code from snake.el
* lisp/play/snake.el (snake-mode): Remove XEmacs-only code.
2019-10-04 14:30:21 +02:00
Lars Ingebrigtsen
68b91333d5 Remove XEmacs code from tetris.el
* lisp/play/tetris.el (tetris-mode): Remove XEmacs-only code.
2019-10-04 14:30:21 +02:00
Lars Ingebrigtsen
280bdc06ce Remove XEmacs compat code from idlw-shell.el
* lisp/progmodes/idlw-shell.el (idlwave-shell-make-temp-file):
Make into obsolete alias.
(idlwave-shell-temp-file): Adjust callers.
2019-10-04 14:30:21 +02:00
Juanma Barranquero
4df55f8f2f Revert "Improve docstrings auto-generated by `define-minor-mode'"
This reverts commit a397fa06d1.
The original change breaks bootstrapping because of a circular dependency.
2019-10-04 14:03:11 +02:00
Dmitry Gutov
d8c2da46e7 ; Fix reported warnings 2019-10-04 12:13:25 +03:00
Dmitry Gutov
7844846e3f Use file-name-as-directory
* lisp/progmodes/project.el (project--vc-list-files): Use
file-name-as-directory, to be on the safe side.
2019-10-04 12:13:25 +03:00
Stefan Kangas
3886a5c140 Remove more XEmacs compat code in cperl-mode.el
* lisp/progmodes/cperl-mode.el (condition-case, cperl-problems)
(cperl-problems-old-emaxen, cperl-init-faces)
(cperl-word-at-point): Remove more XEmacs compat code.
2019-10-04 01:59:22 +02:00
Juanma Barranquero
a397fa06d1 Improve docstrings auto-generated by `define-minor-mode'
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--mode-docstring):
When using `easy-mmode--arg-docstring' to auto-generate a
docstring, refill it up to `emacs-lisp-docstring-fill-column'.
2019-10-04 01:26:56 +02:00
Stefan Kangas
93dd959711 More doc fixes in package.el (Bug#37544)
* lisp/emacs-lisp/package.el (package-menu-hide-low-priority)
(package-pinned-packages, package-load-descriptor)
package-archive-version, package-archive-contents)
package--read-archive-file, package-read-archive-contents)
(package-unsigned-archives, package-read-all-archive-contents)
(package--download-and-read-archives, package-install):
* lisp/subr.el (package--description-file):
* test/lisp/emacs-lisp/package-tests.el: Doc fixes.
2019-10-04 01:14:15 +02:00
Dmitry Gutov
a750770ba0 Speed up project-files for Git projects
* lisp/progmodes/project.el (project-files): New method.
Implementation for VC projects that uses 'git ls-files' or 'hg
status --all' for listing.  With gratitude to Tassilo Horn who has
done most of the legwork and wrote the first version of the code
(https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00069.html).
(project--vc-list-files): New function, to be used by the above.
(project--find-regexp-in-files):
Silence warnings about nonexistent files.
2019-10-04 02:03:23 +03:00
Basil L. Contovounesios
0fc8177414 Further improve button.el support for help-echo
The last change to forward-button added support for help-echo values
that are functions.  This patch fixes the arguments passed to such
functions and further adds support for help-echo values that are
forms (bug#37515).
* doc/lispref/display.texi (Button Properties): Fix description of
help-echo button property.
* lisp/button.el (button--help-echo): New function.
(forward-button): Use it.
(backward-button): Clarify help-echo reference in docstring.
* test/lisp/button-tests.el (button--help-echo-string)
(button--help-echo-form, button--help-echo-function): New tests.
2019-10-03 23:05:14 +01:00
Basil L. Contovounesios
660d509acd Use lexical-binding in button.el
* lisp/button.el: Use lexical-binding.  Expand Keywords header.
Quote function symbols as such.  Use ;;;-comments where appropriate.
(button): Remove outdated commentary of defface.
(define-button-type, make-button, insert-button, make-text-button)
(insert-text-button): Clarify in docstring that PROPERTIES argument
is a plist.
(button-type-subtype-p, button-has-type-p): Do not overspecify
return value in docstring.
(button-put): Fix typo in commentary.
2019-10-03 23:04:56 +01:00
John Yates
f12fcdf4cd Preserve point better in hs-hide-comment-region
* lisp/progmodes/hideshow.el (hs-hide-comment-region): Preserve point
better when collapsing the region (bug#10856).

Copyright-paperwork-exempt: yes
2019-10-03 18:55:35 +02:00
Lars Ingebrigtsen
bbbced061f Make lisp-do-defun do the right thing with trailing comments
* lisp/progmodes/inf-lisp.el (lisp-do-defun): Avoid including
trailing comments in the region (bug#7974).
2019-10-03 18:07:12 +02:00
Lars Ingebrigtsen
3ad9e5133e Fix bytecomp.el warning a different way than the previous patch
* lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode-map):
No need to use set-keymap-parent here; `define-derived-mode' will
do that automatically.
2019-10-03 17:17:50 +02:00
Lars Ingebrigtsen
4cf9bbcbc1 Fix comment in previous doc-view patch
* lisp/doc-view.el (doc-view-open-text): Comment fix.
2019-10-03 16:57:03 +02:00
Lars Ingebrigtsen
c1c9af312e In doc-view, keep point on the equivalent page in the text version
* lisp/doc-view.el (doc-view-open-text): After opening the text
version, put point on the page the user was reading (bug#16541).
2019-10-03 16:54:50 +02:00
Stefan Monnier
44dfa7a834 * lisp/pcomplete.el: Mark 'pcomplete' command as obsolete
Remove redundant ':group's.
(pcomplete, pcomplete-help): Mark as obsolete.
2019-10-03 10:36:00 -04:00
Lars Ingebrigtsen
c164f74979 Mention the vc diff switches in diff-switches
* lisp/vc/diff.el (diff-switches): Mention the vc diff switches in
the doc string (bug#4422).
2019-10-03 16:33:02 +02:00
Alan Mackenzie
dacafba03d C++ Mode: Correct the fontification of const auto foo
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Correct a coding
error involving `and' and `or'.
2019-10-03 14:26:14 +00:00
Lars Ingebrigtsen
cbe3f5f720 Touch up previous shr-dom-to-xml encoding change
* lisp/net/shr.el (shr-dom-to-xml): Include an XML declaration if
we're encoding the data.
(shr-parse-image-data): Add comment about why encoding is necessary.
2019-10-03 16:15:22 +02:00
Lars Ingebrigtsen
0b5fe611e9 Fix up previous SVG-multibyte fix
* lisp/net/shr.el (shr-dom-to-xml): For SVG images, take an
optional charset parameter to return unibyte data.
(shr-parse-image-data): Use it.
(shr-tag-svg): Ditto.
(svg--wrap-svg): Revert previous kludge.
2019-10-03 16:15:22 +02:00
Alan Mackenzie
e7e55e5e4d C++ Mode: Fontify correctly declarators with identifier preceded by &
The problem was bar in the following being spuriously recognised as a
function, and foo as a type, as though the & were a *: Foo foo (&bar);.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): New variable
got-function-name-prefix, which is set when an operator like * (but not &)
precedes the putative identifer in parentheses.  Test this variable when
deciding whether or not to "move the type backwards" to the previous
identifier.

* lisp/progmodes/cc-langs.el (c-type-decl-operator-prefix-key): New lang const
and var.
2019-10-03 12:50:08 +00:00
Michael Albinus
5b09393f2c Fix typo in last commit 2019-10-03 10:47:12 +02:00
Michael Albinus
b27c7f3e60 Further adaptions for shadowfile-tests.el
* test/lisp/shadowfile-tests.el: Change some traces.
(shadow-test-remote-temporary-file-directory): Adapt also remote
home directory.
(shadow--tests-cleanup): Cleanup Tramp.
2019-10-03 10:44:02 +02:00
Stefan Kangas
1854511e97 Don't use obsolete name in em-cmpl.el
* lisp/eshell/em-cmpl.el (eshell-complete-lisp-symbol): Update
reference to 'elisp-completion-at-point' from its obsolete name.
Reported by Carlos Pita <carlosjosepita@gmail.com>.  (Bug#31906)
2019-10-03 04:08:11 +02:00
Juri Linkov
52ab948510 * lisp/tab-bar.el (tab-bar-show): New defcustom.
* lisp/tab-bar.el (tab-bar-close-current-tab, tab-bar-close-tab):
(tab-bar-new-tab): Use tab-bar-show.

* doc/emacs/frames.texi (Tab Bars): Add tab-bar-show.

* lisp/speedbar.el (speedbar-mode): Set buffer-local tab-bar-mode
and tab-line-format to nil to not show in dedicated speedbar frame.
2019-10-02 23:18:01 +03:00
Juri Linkov
5eb2477be2 * src/w32inevt.c: Take into account FRAME_TAB_BAR_LINES.
* src/w32inevt.c (resize_event, maybe_generate_resize_event):
Subtract FRAME_TAB_BAR_LINES from FRAME_MENU_BAR_LINES.
2019-10-02 22:54:56 +03:00
Eli Zaretskii
6a1a87f49c Fix MS-Windows error when a directory on PATH doesn't exist
* src/w32.c (faccessat): Support more MS-Windows native error
codes that should be translated to ENOENT.  (Bug#37576)
2019-10-02 19:42:43 +03:00
Stefan Kangas
9cd3b50ca8 Don't mention server-socket-dir in FAQ
server-socket-dir is a defvar, and users should use the defcustom
server-name instead.

* doc/misc/efaq.texi (Using an already running Emacs process): Remove
details on server-socket-dir, refer to Emacs Manual.  (Bug#20675)
2019-10-02 17:31:19 +02:00
Eli Zaretskii
433dd77b4a Fix a typo in url-http.el
* lisp/url/url-http.el (url-http-parse-headers): Fix a typo.
Reported by Mattias Engdegård <mattiase@acm.org>.
2019-10-02 18:24:03 +03:00
Sergio Durigan Junior
77207ca841 Don't add trailing whitespace when passing argument to GDB
* lisp/progmodes/gdb-mi.el (gdb-send): Don't append whitespace to
'gdb-continuation'.  (Bug#25488)
2019-10-02 15:08:02 +02:00
Glenn Morris
b0043f688a Update a substitute-command-keys test
* test/src/doc-tests.el (doc-test-substitute-command-keys):
Update for recent minibuffer map change.
2019-10-01 17:35:26 -07:00
Eric Abrahamsen
ae76ce57cf Gnus registry shutdown should also run the unload-hook
* lisp/gnus/gnus-registry.el (gnus-registry-clear): Clearing the
registry should also run the unload hooks.
  (gnus-registry-article-marks-to-names,
  gnus-registry-article-marks-to-chars): Now we can use a more general
  test here.
2019-10-01 16:25:11 -07:00
Juri Linkov
2698d3dba2 Merge branch 'feature/tabs' 2019-10-01 23:15:03 +03:00
Juri Linkov
3f981a0a89 Remove unused code and reformat to 70 columns. 2019-10-01 23:01:08 +03:00
Lars Ingebrigtsen
25f45d710e Avoid bugging out on multibyte SVG data in shr
* lisp/net/shr.el (svg--wrap-svg): Ensure that the SVG data is
unibyte.
2019-10-01 21:51:23 +02:00
Lars Ingebrigtsen
9b54d2b66e Respect buffer-local values in comint-read-input-ring
* lisp/comint.el (comint-read-input-ring): Use the buffer-local
values (bug#6432).
2019-10-01 21:22:28 +02:00