1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-23 22:20:24 -08:00
Commit graph

73383 commits

Author SHA1 Message Date
Michael Albinus
f23a3dd4a9 * lisp/net/tramp-cmds.el (tramp-bug, tramp-append-tramp-buffers):
Don't cancel if debug buffers aren't appended.
2019-07-15 12:49:42 +02:00
Lars Ingebrigtsen
4529057c97 Make directory-files-recursively take a PREDICATE parameter
* lisp/files.el (directory-files-recursively): Take an optional
PREDICATE parameter (bug#28567).

* doc/lispref/files.texi (Contents of Directories): Document it.
2019-07-15 11:52:42 +02:00
Lars Ingebrigtsen
dbd1d2ebf8 Tweak gv-define-setter debug setting
* lisp/emacs-lisp/gv.el (gv-define-setter): Change edebug spec
from body to def-body (bug#28729).
2019-07-15 11:16:37 +02:00
Michael Albinus
966c4d3ba8 Fix edge cases in Tramp's copy
* lisp/net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band):
Special handling for "rsync".
(tramp-find-inline-compress): Make check more robust on MS Windows.
2019-07-15 11:11:59 +02:00
Lars Ingebrigtsen
dea9970bc0 package-archive-priorities doc addition
* lisp/emacs-lisp/package.el (package-archive-priorities):
Document that negative priorities will lead to packages not being
updated (bug#28897).
2019-07-15 00:22:45 +02:00
Lars Ingebrigtsen
71e16923c0 Mark octave-block-offset as a safe local variable
* lisp/progmodes/octave.el (octave-block-offset): Mark as safe as
a local variable (bug#28916).
2019-07-15 00:02:08 +02:00
Lars Ingebrigtsen
9d84fcbef5 Make elint understand condition-case-unless-debug
* lisp/emacs-lisp/elint.el (elint-special-forms): Teach elint
about `condition-case-unless-debug' (bug#29585).
2019-07-14 20:24:03 +02:00
Lars Ingebrigtsen
284e6cf9a4 Fix prompting in functions like ffap-read-only
* lisp/ffap.el (ffap-prompter, ffap-other-window)
(ffap-other-frame, ffap-read-only)
(ffap-read-only-other-window, ffap-read-only-other-frame)
(ffap-alternate-file, ffap-alternate-file-other-window)
(ffap-literally): Rework to be able to specify different prompts
for different actions (bug#30284) and don't use
`call-interactively' all over the place.
2019-07-14 19:17:41 +02:00
Lars Ingebrigtsen
783eca5715 Make describe-face also output the version information
* lisp/help-fns.el (describe-variable-custom-version-info): Allow
taking a type as an optional input, so this can be used for faces,
too (bug#30527).

* lisp/faces.el (describe-face): Use this to output the version
information.
2019-07-14 18:50:27 +02:00
Lars Ingebrigtsen
636dc37c70 Revert "Make describe-face also output the version information"
This reverts commit a7aae1473c.

The patch broke the build.
2019-07-14 18:37:55 +02:00
Lars Ingebrigtsen
0c450e09b8 Tweak bug ID prompting in gnus-group--read-bug-ids
* lisp/gnus/gnus-group.el (gnus-group--read-bug-ids): Default to
current bug id on RET.
2019-07-14 18:27:50 +02:00
Lars Ingebrigtsen
a7aae1473c Make describe-face also output the version information
* lisp/help-fns.el (describe-variable-custom-version-info): Allow
taking a type as an optional input, so this can be used for faces,
too (bug#30527).

* lisp/faces.el (describe-face): Use this to output the version
information.
2019-07-14 17:02:05 +02:00
Noam Postavsky
150aec0af3 Use ngettext in vc-dir-clean-files
* lisp/vc/vc-dir.el (vc-dir-clean-files): Use ngettext to separate
pluralization from format string.
2019-07-14 10:04:22 -04:00
Lars Ingebrigtsen
8ebcc7b9d4 Tweak background colour handling in shr
* lisp/net/shr.el (shr-fill-line): Keep the background colour on
the newline and the indentation.
2019-07-14 14:45:21 +02:00
Lars Ingebrigtsen
d3256dc78a Rename vc-dir-delete-files-no-vc to vc-dir-clean-files
* doc/emacs/maintaining.texi (VC Directory Commands): Adjust
command name.

* lisp/vc/vc-dir.el (vc-dir-clean-files): Rename from
vc-dir-delete-files-no-vc, and work on unregistered files only
(bug#31732).
(vc-dir-menu-map): Adjust command name.
2019-07-14 14:25:44 +02:00
Nick Drozd
262577f724 * lisp/leim/quail/georgian.el: Add georgian-nuskhuri input method 2019-07-14 09:29:54 +03:00
Nick Drozd
1803d84f43 * lisp/leim/quail/georgian.el: Add missing characters to georgian input 2019-07-14 09:29:52 +03:00
Nick Drozd
3ca5453093 * lisp/leim/quail/georgian.el: Add georgian-qwerty input method 2019-07-14 09:29:50 +03:00
Stefan Kangas
7c30ad184f Restore focus to Bookmark List after editing annotation
There are two entry points to bookmark-edit-annotation-mode: the first
when we add a bookmark and bookmark-use-annotations is non-nil; the
second when bookmark-bmenu-edit-annotation is run from the bookmark
list.  When editing is concluded, in the first case, we should just
quit window.  In the second case, we should instead return to the
bookmark list.

* lisp/bookmark.el (text-property-search): Require.
(bookmark-annotation-name): Make buffer-local and improve doc string.
(bookmark--annotation-from-bookmark-list): New buffer-local variable.
(bookmark-edit-annotation): New argument from-bookmark-list sets
bookmark--annotation-from-bookmark-list.
(bookmark-bmenu-edit-annotation): Call bookmark-edit-annotation with
argument from-bookmark-list set to t.
(bookmark-send-edited-annotation): When editing originated in the
bookmark list, restore focus to bookmark list and move point back to
edited bookmark. (Bug#20150)

(bookmark-edit-annotation-mode): Fix typo.
(bookmark-bmenu-buffer): New variable.
(bookmark-bmenu-surreptitiously-rebuild-list)
(bookmark-bmenu-list): Use it.

* test/lisp/bookmark-tests.el (with-bookmark-bmenu-test): New macro.
(bookmark-tests-set/bookmark-use-annotations-t)
(bookmark-bmenu-edit-annotation/show-annotation)
(bookmark-bmenu-send-edited-annotation)
(bookmark-bmenu-send-edited-annotation/restore-focus): New test cases.
2019-07-14 09:26:42 +03:00
Marco Wahl
352530ee0a New function for scroll-lock-mode to almost always scroll
* lisp/scroll-lock.el (scroll-lock-next-line-always-scroll): New
function.  Opposed to scroll-lock-next-line it does not switch to
forward-line at eob.  S-down is the default key binding for this
function.  (Bug#36494)
* test/lisp/scroll-lock-tests.el: A few tests for
scroll-lock-next-line-always-scroll.
* etc/NEWS: Announce the new command.
2019-07-14 09:23:20 +03:00
Noam Postavsky
bcc3d36d8a ; Add comment about sh-assignment-regexp value
* lisp/progmodes/sh-script.el (sh-assignment-regexp): Explain what the
the "\\[.+\\]" is for, to make clear it is not a typo for "[.+]".
2019-07-13 21:38:04 -04:00
Noam Postavsky
427ccb9321 Remove incorrect commentary about #$ in autoloads
* lisp/emacs-lisp/autoload.el (autoload-rubric):
`package-quickstart-refresh' does in fact support load-file-name as
well.
2019-07-13 21:25:10 -04:00
Noam Postavsky
5d713c89e9 Use syntax-ppss-toplevel-pos for defvar search (Bug#34233)
* lisp/progmodes/elisp-mode.el (eval-sexp-add-defvars): Use
syntax-ppss-toplevel-pos instead of a raw check of syntax components.
2019-07-13 21:25:10 -04:00
Andreas Schwab
3767628dc5 Revert "Fix typo in sh-assignment-regexp"
This reverts commit 194f370a3d.
2019-07-13 23:59:51 +02:00
Lars Ingebrigtsen
ed29d9fe52 Add edebug specs for inline.el
* lisp/emacs-lisp/inline.el (inline-quote)
(inline-letevals): Add edebug specs (bug#31051).
2019-07-13 18:07:11 +02:00
Lars Ingebrigtsen
196ea8c4b3 Tweak output of doc in advice--make-docstring
* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Make the
bit about the function/macro having an advice into a complete
sentence (bug#31063) and make it less dramatic.
2019-07-13 17:48:53 +02:00
Lars Ingebrigtsen
6c6e4e8228 Add a :format to `text' widgets
* lisp/wid-edit.el (text): Add a :format so that the 'text fields
work (bug#31309).  Suggested by Phil Sainty.
2019-07-13 17:22:50 +02:00
Lars Ingebrigtsen
e6b40fe511 Don't have savehist-save bug out on non-existing directory
* lisp/savehist.el (savehist-save): Ensure that the directory
exists before saving (bug#31348).
2019-07-13 17:13:12 +02:00
Lars Ingebrigtsen
82e799f71d Fix display-fill-column-indicator custom spec typo
* lisp/cus-start.el (standard): Fix typo in
display-fill-column-indicator custom spec.

Debugger entered--Lisp error: (wrong-type-argument stringp integer)
  string-match("\\([0-9]+\\)\\(\\.\\([0-9]+\\)\\)?" integer)
  customize-version-lessp("25.3" integer)
 [...]
  customize-changed-options("")
2019-07-13 17:00:29 +02:00
Lars Ingebrigtsen
5a90307351 Make check-declare understand cl-defun
* lisp/emacs-lisp/check-declare.el (check-declare-verify): Add
cl-defun to the defun-ish regexp (bug#31396).
2019-07-13 16:49:23 +02:00
Lars Ingebrigtsen
5b1f5b4b7d citeasnoun in reftex can take an optional parameter
* lisp/textmodes/reftex-vars.el (reftex-cite-format-builtin):
citeasnoun can take an optional parameter (bug#31476).  Suggested
by Konrad Podczeck.
2019-07-13 16:34:55 +02:00
Lars Ingebrigtsen
194f370a3d Fix typo in sh-assignment-regexp
* lisp/progmodes/sh-script.el (sh-assignment-regexp): Fix typo in
bash regexp that inhibited fontification of stuff like foo.=bar
(bug#31710).
2019-07-13 16:20:53 +02:00
Lars Ingebrigtsen
28a02c2ac3 Mark ediff-before-session-group-setup-hooks as obsolete
* lisp/vc/ediff-mult.el (ediff-before-session-group-setup-hooks):
Mark this apparently unused variable as obsolete (bug#36618).
2019-07-13 16:03:24 +02:00
Lars Ingebrigtsen
b2fd5fbfcc Add a way to more conveniently log/debug nnmail splitting
* doc/misc/gnus.texi (Fancy Mail Splitting): Mention it.

* lisp/gnus/nnmail.el (nnmail-debug-splitting): New variable.

* lisp/gnus/nnmail.el (nnmail-log-split): New function.
(nnmail-split-it): Use it.
2019-07-13 15:23:38 +02:00
Lars Ingebrigtsen
67e2116160 Fix cl-defstruct doc string fix
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Remove sentence from
doc string that was left in by mistake when fixing the arglist
documentation.
2019-07-13 14:27:36 +02:00
Phil Sainty
c87878af7d * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Fix a docstring typo 2019-07-13 23:58:14 +12:00
Phil Sainty
adf8e24cde * lisp/so-long.el (so-long-variable-overrides): Improve doc
Explain the 'line-move-visual' and 'truncate-lines' values.
2019-07-13 23:56:19 +12:00
Phil Sainty
c428aaf093 * lisp/so-long.el (so-long-variable-overrides): Use correct bidi option
Set 'bidi-paragraph-direction' to 'left-to-right', rather than setting
'bidi-display-reordering' to nil, as the latter is only intended for
use when debugging the display code.
2019-07-13 23:56:19 +12:00
Michael Albinus
f9b434f8e8 ; Fix formatting issue of last commit 2019-07-13 13:34:33 +02:00
Michael Albinus
4c4fcc51af Make check for compression programs more robust in Tramp
* lisp/net/tramp-sh.el (tramp-inline-compress-start-size):
Revert change of init value.  We fix this differently.
(tramp-find-inline-compress): Check also the output of the
processes, not only the return code.
2019-07-13 13:33:10 +02:00
Michael Albinus
9939e04404 * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Adapt docstring. 2019-07-13 13:30:35 +02:00
Eli Zaretskii
127dadbb8c Fix TTY menus in GUD and GDB-MI modes
* lisp/menu-bar.el (menu-bar-open): Accept a numerical
argument interactively, and drop down menu at that X
coordinate.
(popup-menu): Detect when MENU is not a list.  (Bug#36613)
2019-07-13 12:47:02 +03:00
Eli Zaretskii
b2783ba6f4 Avoid loading mule-util at startup
* lisp/international/mule-util.el (char-displayable-p): Move
from here...
* lisp/international/mule.el (char-displayable-p): ...to
here.  This avoids always loading mule-util at startup due
to a call to 'char-displayable-p' in
'startup--setup-quote-display'.
2019-07-13 11:32:18 +03:00
Stefan Kangas
70225ecae1 Fix looking up functions like "-e" in cperl-mode
* lisp/progmodes/cperl-mode.el (cperl-perldoc): Handle functions with
leading dash (e.g. "-f"). (Bug#6013)
2019-07-13 10:39:42 +03:00
Eli Zaretskii
3b3e7da601 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2019-07-13 10:21:38 +03:00
Eli Zaretskii
6ca94eb749 Fix last commit
* etc/NEWS: Fix formatting and punctuation of last change.

* lisp/isearch.el (isearch-highlight-regexp)
(isearch-highlight-lines-matching-regexp): Doc fix.
2019-07-13 10:20:48 +03:00
Dima Kogan
8abe170452 Add ability to highlight-lines-matching-regexp directly from Isearch
* lisp/isearch.el: Implement the new functionality.
(isearch-highlight-lines-matching-regexp): New function bound
to 'M-s h l' in isearch.
(isearch--highlight-regexp-or-lines): New internal function.

* etc/NEWS (Search and Replace): Mention this change.

* doc/emacs/search.texi (Special Isearch): Document 'M-s h l'.
(Bug#18241)
2019-07-13 10:12:28 +03:00
Phil Sainty
4ac905f88f Add so-long library
* lisp/so-long.el: New library.
* doc/emacs/trouble.texi (Long Lines): New node covering so-long.el.
* doc/emacs/emacs.texi (Top): Add menu entry for the Long Lines node.
* etc/NEWS: Include under "New Modes and Packages in Emacs 27.1"
2019-07-13 18:51:55 +12:00
Lars Ingebrigtsen
13eaf86213 Mention columns width variables in the buffer-menu doc string
* lisp/buff-menu.el (buffer-menu): Mention the variables that can
be used to change the columns widths (bug#36587).
2019-07-13 06:32:34 +02:00
Lars Ingebrigtsen
ea75c1a78b Mention M-n' for VALUE in the set-variable' command
* lisp/simple.el (set-variable): Mention that the current variable
is accessible in `M-n' (bug#36586).
2019-07-13 06:26:55 +02:00