]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoMake nntp.el use new setq-local syntax
Lars Ingebrigtsen [Fri, 11 Oct 2019 06:28:20 +0000 (08:28 +0200)]
Make nntp.el use new setq-local syntax

* lisp/gnus/nntp.el (nntp-make-process-buffer): Convert to new
setq-local syntax (as a test case).

5 years agoEnsure that setq-local take an even number of symbol/value pairs
Lars Ingebrigtsen [Fri, 11 Oct 2019 06:27:50 +0000 (08:27 +0200)]
Ensure that setq-local take an even number of symbol/value pairs

* doc/lispref/variables.texi (Creating Buffer-Local): Document the
new syntax for setq-local.

* lisp/subr.el (setq-local): Ensure that there's an even number of
variable/value pairs, and expand the doc string by taking some
text from `setq'.

5 years agoAllow setq-local to set more than one variable
Jordon Biondo [Fri, 11 Oct 2019 05:58:42 +0000 (07:58 +0200)]
Allow setq-local to set more than one variable

* lisp/subr.el (setq-local): Allow taking pairs of values (bug#26923).

5 years agoRemove two checkdoc tests checked in by mistake
Lars Ingebrigtsen [Fri, 11 Oct 2019 05:46:41 +0000 (07:46 +0200)]
Remove two checkdoc tests checked in by mistake

* test/lisp/emacs-lisp/checkdoc-tests.el: Remove &aux and &context
checks mistakenly checked in (as these aren't implemented) (bug#37697).

5 years agoChange font size in correct window using mouse wheel
Stefan Kangas [Fri, 11 Oct 2019 00:15:24 +0000 (02:15 +0200)]
Change font size in correct window using mouse wheel

* lisp/mwheel.el (mouse-wheel-follow-mouse): Doc fix.
(mouse-wheel--get-scroll-window): New function extracted from...
(mwheel-scroll): ...here.
(mouse-wheel-text-scale): New function to change face height in
the correct window, depending on the value of
'mouse-wheel-follows-mouse'.  (Bug#28182)
(mouse-wheel-mode): Bind 'mouse-wheel-text-scale' instead of
'text-scale-increase' and 'text-scale-decrease'.

5 years ago* lisp/subr.el (ctl-x-t-prefix): Bind new alias or ctl-x-6-map to 'C-x t'.
Juri Linkov [Thu, 10 Oct 2019 22:45:54 +0000 (01:45 +0300)]
* lisp/subr.el (ctl-x-t-prefix): Bind new alias or ctl-x-6-map to 'C-x t'.

5 years ago* lisp/tree-widget.el: Use lexical-binding
Stefan Monnier [Thu, 10 Oct 2019 21:44:45 +0000 (17:44 -0400)]
* lisp/tree-widget.el: Use lexical-binding

Remove redundant `:group`s.
(tree-widget--locate-sub-directory): Rewrite.

5 years ago* lisp/progmodes/compile.el
Andreas Schwab [Thu, 10 Oct 2019 16:29:03 +0000 (18:29 +0200)]
* lisp/progmodes/compile.el
(compilation-transform-file-match-alist): Remove bogus Makefile match.

5 years agoRemove tabs from time-stamp-format documentation
Stephen Gildea [Thu, 10 Oct 2019 16:21:38 +0000 (09:21 -0700)]
Remove tabs from time-stamp-format documentation

* time-stamp.el (time-stamp-format): Untabify the doc string, so
the two-column layout displays consistently in several contexts,
in particular when displayed by customize-variable.

5 years agoFix initial value of frame-inhibit-implied-resize
Eli Zaretskii [Thu, 10 Oct 2019 11:50:11 +0000 (14:50 +0300)]
Fix initial value of frame-inhibit-implied-resize

* src/frame.c (syms_of_frame): Update doc string and default
value of frame-inhibit-implied-resize in GTK builds to include
'tab-bar-lines.

5 years agoPort time-stamp-test-time-zone to macOS
Paul Eggert [Thu, 10 Oct 2019 07:15:24 +0000 (00:15 -0700)]
Port time-stamp-test-time-zone to macOS

Problem reported by Stefan Kangas in:
https://lists.gnu.org/r/emacs-devel/2019-10/msg00360.html
* test/lisp/time-stamp-tests.el (time-stamp-test-time-zone):
Don’t assume (format-time-string "%Z" 0 t) returns "GMT".

5 years agoidentity, ignore: Make arg names more consistent with docs
Juanma Barranquero [Thu, 10 Oct 2019 04:00:20 +0000 (06:00 +0200)]
identity, ignore: Make arg names more consistent with docs

* lisp/subr.el (ignore): Rename argument IGNORE to ARGUMENTS.

* src/fns.c (Fidentity): Rename ARG to ARGUMENT.

* doc/lispref/functions.texi (Calling Functions): Fix references.

5 years agocheckdoc CL tests
Damien Cassou [Thu, 10 Oct 2019 00:19:10 +0000 (02:19 +0200)]
checkdoc CL tests

* test/lisp/emacs-lisp/checkdoc-tests.el: Add cl-lib-related tests
(bug#37063).

5 years agoMake checkdoc work better with cl-lib functions
dick r. chiang [Thu, 10 Oct 2019 00:18:20 +0000 (02:18 +0200)]
Make checkdoc work better with cl-lib functions

* lisp/emacs-lisp/checkdoc.el (checkdoc-defun-info): Make checkdoc
work for cl-lib methods with more complex parameter lists
(bug#37063).

Copyright-paperwork-exempt: yes

5 years agoFix formatting of (file-size-human-readable 2047)
Lars Ingebrigtsen [Wed, 9 Oct 2019 23:57:54 +0000 (01:57 +0200)]
Fix formatting of (file-size-human-readable 2047)

* lisp/files.el (file-size-human-readable): Don't format
slightly-less numbers as X.0k, but just Xk instead (bug#36329).

5 years agoWork around bad interaction between dired-omit-mode and recover-session
Lars Ingebrigtsen [Wed, 9 Oct 2019 23:34:14 +0000 (01:34 +0200)]
Work around bad interaction between dired-omit-mode and recover-session

* lisp/files.el (recover-session): Add ugly hack to try to ensure
that we're actually showing the session files (bug#36223).

5 years agoAllow filtering out warnings/errors from compile.el detection
Lars Ingebrigtsen [Wed, 9 Oct 2019 23:19:33 +0000 (01:19 +0200)]
Allow filtering out warnings/errors from compile.el detection

* lisp/progmodes/compile.el
(compilation-transform-file-match-alist): New variable (bug#32968).
(compilation-error-properties): Use it to remove known false
positives.
(compilation-error-regexp-alist): Mention it in this doc string.

5 years agoClarify documentation of show-help-function slightly
Lars Ingebrigtsen [Wed, 9 Oct 2019 22:51:50 +0000 (00:51 +0200)]
Clarify documentation of show-help-function slightly

* doc/lispref/text.texi (Special Properties): Clarify where the
example in Tooltip mode is (bug#35392).

5 years ago* lisp/tab-bar.el: Don't show window count for one window.
Juri Linkov [Wed, 9 Oct 2019 22:42:56 +0000 (01:42 +0300)]
* lisp/tab-bar.el: Don't show window count for one window.

* lisp/tab-bar.el (tab-bar-tab-name-selected-window): Don't show the number
of windows when there is only one window in the window configuration.
(tab-bar-close-other-tabs): Rename from tab-close-other.
Take into account tab-bar-show to turn off when needed.
(tab-close-other): Alias to tab-bar-close-other-tabs.

5 years agoFix nnimap tick/readedness thinko introduced some weeks back
Lars Ingebrigtsen [Wed, 9 Oct 2019 20:46:05 +0000 (22:46 +0200)]
Fix nnimap tick/readedness thinko introduced some weeks back

* lisp/gnus/nnimap.el (nnimap-request-set-mark): Fix thinko in the
tick/read change: Unticking a message shouldn't make it unread,
but ticking it should make it read.

5 years agoMake mml-secure-epg-sign bug out if we can't find an identity
Lars Ingebrigtsen [Wed, 9 Oct 2019 19:55:41 +0000 (21:55 +0200)]
Make mml-secure-epg-sign bug out if we can't find an identity

* lisp/gnus/mml-sec.el (mml-secure-epg-sign): Bug out if we
couldn't find anything to sign with instead of silently pretending
to sign.
* lisp/gnus/mml-smime.el (mml-smime-epg-sign): Don't bind
inhibit-display because that makes debugging impossible.

5 years agoRemove XEmacs compat code from edt.el (Bug#37621)
Stefan Kangas [Wed, 9 Oct 2019 18:10:09 +0000 (20:10 +0200)]
Remove XEmacs compat code from edt.el (Bug#37621)

* lisp/emulation/edt.el (top-level, edt-emacs-variant)
(edt-window-system, edt-xserver, edt-page-backward)
(edt-beginning-of-line, edt-end-of-line-forward)
(edt-end-of-line-backward, edt-one-word-forward)
(edt-one-word-backward, edt-character, edt-line-forward)
(edt-next-line, edt-previous-line, edt-top, edt-find-forward)
(edt-find-backward, edt-find-next-forward)
(edt-find-next-backward, edt-reset, edt-advance, edt-backup)
(edt-define-key, edt-bottom-check, edt-sentence-forward)
(edt-sentence-backward, edt-paragraph-forward)
(edt-paragraph-backward, edt-restore-key, edt-window-top)
(edt-window-bottom, edt-scroll-window-backward-line)
(edt-line-to-bottom-of-window, edt-line-to-middle-of-window)
(edt-goto-percentage, edt-display-the-time, edt-remember)
(edt-split-window, edt-load-keys, edt-emulation-on)
(edt-emulation-off, edt-default-emulation-setup)
(edt-user-emulation-setup, edt-select-default-global-map)
(edt-select-user-global-map): Remove XEmacs compat code.

5 years agoMove the "Skeleton Language" node to later in the manual
Lars Ingebrigtsen [Wed, 9 Oct 2019 18:07:56 +0000 (20:07 +0200)]
Move the "Skeleton Language" node to later in the manual

* doc/misc/autotype.texi (Skeleton Language): Move this low-level
node to after the more user-facing nodes (bug#20780).

5 years agoAdd a letrec example to the manuel
Lars Ingebrigtsen [Wed, 9 Oct 2019 17:27:17 +0000 (19:27 +0200)]
Add a letrec example to the manuel

* doc/lispref/variables.texi (Local Variables): Add a letrec example.

5 years agoTweak letrec documentation
Lars Ingebrigtsen [Wed, 9 Oct 2019 16:42:36 +0000 (18:42 +0200)]
Tweak letrec documentation

* doc/lispref/variables.texi (Local Variables): Compare letrec to
let* instead of let.

5 years agotime-stamp: revert recent change to "%04y"
Stephen Gildea [Wed, 9 Oct 2019 16:19:10 +0000 (09:19 -0700)]
time-stamp: revert recent change to "%04y"

* time-stamp.el (time-stamp-string-preprocess): Revert change to "%04y"
format made 2 weeks ago by commit 0e56883878 (the previous commit to
this file).  Although undocumented, "%04y" was discovered to be in use
in the wild (2016) and had not issued a warning that it would change.
Add a warning that it will change.

* time-stamp-tests.el (time-stamp-test-year-2digit): add test of "%04y"

5 years agoWarn about missing executables in RST PDF preview
Simen Heggestøyl [Sat, 27 Jan 2018 11:18:40 +0000 (12:18 +0100)]
Warn about missing executables in RST PDF preview

* lisp/textmodes/rst.el (rst-compile-pdf-preview): Warn about missing
executables when attempting to compile and preview an RST file as PDF.
(Bug#30063)

5 years agoExpand testing of time-stamp format "%y"
Stephen Gildea [Wed, 9 Oct 2019 16:06:23 +0000 (09:06 -0700)]
Expand testing of time-stamp format "%y"

* time-stamp-tests.el (time-stamp-test-year): break into two tests,
time-stamp-test-year-2digit and time-stamp-test-year-4digit.  Expand
time-stamp-test-year-2digit to look more like tests for other 2-digit
conversions.

5 years agoSilence compiler warning
Juanma Barranquero [Wed, 9 Oct 2019 13:43:07 +0000 (15:43 +0200)]
Silence compiler warning

* src/w32.c (acl_to_text): Add ATTRIBUTE_MALLOC.

5 years ago; Fix typo in previous commit
Robert Pluim [Wed, 9 Oct 2019 13:16:07 +0000 (15:16 +0200)]
; Fix typo in previous commit

* lisp/replace.el (query-replace-read-from): Fix typo in docstring.

5 years agoExpand documentation on Lisp variables defined in C sources
Robert Pluim [Wed, 9 Oct 2019 13:12:18 +0000 (15:12 +0200)]
Expand documentation on Lisp variables defined in C sources

* doc/lispref/internals.texi (Writing Emacs Primitives): Add
description of DEFVAR_* arguments.  Describe variable naming
conventions.  Explain how to express quoting of symbols in C, plus
'specbind' and how to create buffer-local variables.

5 years ago* doc/misc/tramp.texi (Remote shell setup): Howto configure local shell.
Michael Albinus [Wed, 9 Oct 2019 11:56:58 +0000 (13:56 +0200)]
* doc/misc/tramp.texi (Remote shell setup): Howto configure local shell.

5 years agoSupport zsh as local shell in Tramp (Bug#31924)
Michael Albinus [Wed, 9 Oct 2019 10:58:43 +0000 (12:58 +0200)]
Support zsh as local shell in Tramp (Bug#31924)

* lisp/net/tramp-sh.el (tramp-sh-extra-args): Extend zsh
arguments.  Add :version.
(tramp-maybe-open-connection): Use extra args for
`tramp-encoding-shell'.  (Bug#31924)

5 years agoImplement offsets for absolute line numbers
Juanma Barranquero [Wed, 9 Oct 2019 10:49:39 +0000 (12:49 +0200)]
Implement offsets for absolute line numbers

* src/xdisp.c (syms_of_xdisp) <display-line-numbers-offset>:
New variable to add an offset to absolute line numbers.
(syms_of_xdisp) <display-line-numbers>: Mention it in docstring.
(maybe_produce_line_number): Use it.

* doc/emacs/display.texi (Display Custom): Document it.

* etc/NEWS (value): Announce it.

* lisp/frame.el: Add `display-line-numbers-offset' to list of
variables which should trigger redisplay of the current buffer.

5 years agoDo not use tick faces beyond ZV (bug#37641)
Juanma Barranquero [Wed, 9 Oct 2019 10:36:57 +0000 (12:36 +0200)]
Do not use tick faces beyond ZV (bug#37641)

* src/xdisp.c (maybe_produce_line_number): Check beyond_zv
before using a tick face for the line number.  Move all face
selection code outside the loop that draws the line number.

5 years agoImprove doc strings in replace.el
Eli Zaretskii [Wed, 9 Oct 2019 10:08:01 +0000 (13:08 +0300)]
Improve doc strings in replace.el

* lisp/replace.el (query-replace-read-from)
(query-replace-compile-replacement, query-replace-read-to)
(replace-string, replace-regexp, occur-mode-goto-occurrence)
(occur-next-error, occur-rename-buffer, multi-occur)
(multi-occur-in-matching-buffers): Describe all arguments in
doc strings.  (Bug#31207)

5 years agoFix minor Texinfo errors in ELisp manual
Eli Zaretskii [Wed, 9 Oct 2019 09:29:21 +0000 (12:29 +0300)]
Fix minor Texinfo errors in ELisp manual

* doc/lispref/errors.texi (Standard Errors): Fix incorrect
usage of @xref commands.  (Bug#37660)
* doc/lispref/internals.texi (Buffer Internals): Fix markup.
(Bug#37639)

5 years agoEnsure that the pulse overlay is visible
Lars Ingebrigtsen [Wed, 9 Oct 2019 08:41:27 +0000 (10:41 +0200)]
Ensure that the pulse overlay is visible

* lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Make
the pulse overlay have priority over the marked-region overlay
(bug#29173).

5 years agoProtect against unlikely case of [menu-bar] not being bound
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:45:07 +0000 (09:45 +0200)]
Protect against unlikely case of [menu-bar] not being bound

* lisp/recentf.el (recentf-show-menu):
(recentf-hide-menu): The [menu-bar] key may be unbound (bug#25191).

5 years agoAdd some sanity checks to dired-x.el key bindings
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:38:11 +0000 (09:38 +0200)]
Add some sanity checks to dired-x.el key bindings

* lisp/dired-x.el: Ensure that prefix keys haven't be rebound to
commands before adding keystrokes (bug#25190).

5 years agoAllow global-edebug-prefix to be nil
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:26:58 +0000 (09:26 +0200)]
Allow global-edebug-prefix to be nil

* lisp/emacs-lisp/edebug.el (global-edebug-prefix): Allow
global-edebug-prefix to be nil (if the user doesn't want that
prefix) (bug#25188).

5 years agoFix possible initialisation error in shell-mode-map
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:22:38 +0000 (09:22 +0200)]
Fix possible initialisation error in shell-mode-map

* lisp/shell.el (shell-mode-map): Comint is the parent mode, so
there's no need to explicitly make it a parent map here (bug#25187).

5 years agoUpcase parameters in things like "&optional (arg 3)"
Lars Ingebrigtsen [Wed, 9 Oct 2019 07:06:33 +0000 (09:06 +0200)]
Upcase parameters in things like "&optional (arg 3)"

* lisp/help.el (help--make-usage): Upcase cl-defgeneric (etc)
parameter names (bug#23517).

5 years agoBury the help buffer after sending a bug report
Lars Ingebrigtsen [Wed, 9 Oct 2019 05:31:24 +0000 (07:31 +0200)]
Bury the help buffer after sending a bug report

* lisp/mail/emacsbug.el (report-emacs-bug-hook): Bury the help
buffer after sending the bug report (bug#22712).

5 years agoFix up previous visit-tags-table change
Hong Xu [Wed, 9 Oct 2019 05:03:33 +0000 (07:03 +0200)]
Fix up previous visit-tags-table change

* lisp/progmodes/etags.el (visit-tags-table): Reimplement
`tags--find-default-tags-dir-recursively' using the much simpler
`locate-dominating-file'. Following up bug#37518.

5 years agoMove point in the dired buffer with `n'/`p' in an image-mode buffer
Lars Ingebrigtsen [Wed, 9 Oct 2019 05:00:34 +0000 (07:00 +0200)]
Move point in the dired buffer with `n'/`p' in an image-mode buffer

* lisp/image-mode.el (image-next-file): If the image is in a dired
buffer, then move point in that buffer when advancing
(bug#21752).  This makes it easier to select images.

5 years agoFix typos in lisp/*.el
Juanma Barranquero [Wed, 9 Oct 2019 04:15:29 +0000 (06:15 +0200)]
Fix typos in lisp/*.el

* lisp/emacs-lisp/generator.el (cps--with-value-wrapper)
(cps-inhibit-atomic-optimization, iter-close):
* lisp/gnus/nnir.el (nnir-imap-search-arguments)
(nnir-imap-search-argument-history, nnir-categorize)
(nnir-ignored-newsgroups)
(nnir-retrieve-headers-override-function)
(nnir-imap-default-search-key, nnir-namazu-additional-switches)
(gnus-group-make-nnir-group, nnir-add-result)
(nnir-compose-result, nnir-run-imap, nnir-imap-make-query)
(nnir-imap-query-to-imap, nnir-imap-expr-to-imap)
(nnir-imap-next-term, nnir-run-swish-e, nnir-run-namazu)
(nnir-read-parm, nnir-read-server-parm, nnir-search-thread):
Trivial doc fixes.

5 years agoDocument `letrec'
Lars Ingebrigtsen [Wed, 9 Oct 2019 04:06:24 +0000 (06:06 +0200)]
Document `letrec'

* doc/lispref/variables.texi (Local Variables): Document letrec
(bug#21048).

* lisp/subr.el (letrec): Expand the doc string slightly.

5 years agoMake menu bar entries only point to named functions, not lambdas
Lars Ingebrigtsen [Wed, 9 Oct 2019 03:27:03 +0000 (05:27 +0200)]
Make menu bar entries only point to named functions, not lambdas

* lisp/menu-bar.el ()
(menu-bar--display-line-numbers-mode-visual)
(menu-bar--display-line-numbers-mode-relative)
(menu-bar--display-line-numbers-mode-absolute)
(menu-bar--display-line-numbers-mode-none)
(menu-bar--visual-line-mode-enable)
(menu-bar--toggle-truncate-long-lines)
(menu-bar--wrap-long-lines-window-edge): Make lambdas into trivial
wrapper functions so that `C-h k' on the menu items work (bug#13841).
(menu-bar-showhide-line-numbers-menu)
(menu-bar-line-wrapping-menu): Use them.

5 years agoAdd more sanity checks to help-fns--globalized-minor-mode
Lars Ingebrigtsen [Wed, 9 Oct 2019 03:13:07 +0000 (05:13 +0200)]
Add more sanity checks to help-fns--globalized-minor-mode

* lisp/help-fns.el (help-fns--globalized-minor-mode): FUNCTION can
be a lambda, so protect against that.

5 years agoMake add-face-text-property not be destructive on strings
Lars Ingebrigtsen [Wed, 9 Oct 2019 03:08:32 +0000 (05:08 +0200)]
Make add-face-text-property not be destructive on strings

* src/textprop.c (add_properties): Take a parameter to say whether
it's allowed to be destructive or not (bug#20153).
(add_text_properties_1): Ditto.
(Fadd_face_text_property): Use this to say that it shouldn't
modify face properties on strings destructively.  This avoids
altering the face properties of one string when altering them on a
copy of the string.

5 years agoMake `info-display-manual' pop up the correct frame
Lars Ingebrigtsen [Wed, 9 Oct 2019 02:10:41 +0000 (04:10 +0200)]
Make `info-display-manual' pop up the correct frame

* lisp/info.el (info-display-manual): If the buffer is already in
a window, use that window (bug#20020).

5 years agoMake a nil parameter switch variable-pitch-mode on
Lars Ingebrigtsen [Wed, 9 Oct 2019 01:55:09 +0000 (03:55 +0200)]
Make a nil parameter switch variable-pitch-mode on

* lisp/face-remap.el (variable-pitch-mode): Make a nil parameter
switch the mode on instead of toggling (bug#19384).

5 years agoRemove XEmacs compat code from prolog.el
Lars Ingebrigtsen [Wed, 9 Oct 2019 01:11:15 +0000 (03:11 +0200)]
Remove XEmacs compat code from prolog.el

* lisp/progmodes/prolog.el (prolog-mode-syntax-table)
(prolog-help-info, prolog-Info-follow-nearest-node)
(prolog-menu-help, prolog-edit-menu-runtime)
(prolog-inferior-menu-all): Remove XEmacs compat code.

5 years agoRemove some XEmacs compat code from tree-widget.el
Lars Ingebrigtsen [Wed, 9 Oct 2019 00:53:11 +0000 (02:53 +0200)]
Remove some XEmacs compat code from tree-widget.el

* lisp/tree-widget.el (tree-widget-themes-load-path)
(tree-widget-use-image-p, tree-widget-create-image)
(tree-widget-image-formats, tree-widget-image-properties)
(tree-widget-lookup-image): Remove XEmacs compat code.

5 years agoRemove some XEmacs compat code from newst*.el
Lars Ingebrigtsen [Wed, 9 Oct 2019 00:46:17 +0000 (02:46 +0200)]
Remove some XEmacs compat code from newst*.el

* lisp/net/newst-plainview.el
(newsticker--plainview-tool-bar-map): Remove XEmacs support.

* lisp/net/newst-treeview.el (newsticker-treeview-tool-bar-map):

5 years agoFilter packages by name in list-packages. (Bug#36981)
Federico Tedin [Thu, 26 Sep 2019 17:18:58 +0000 (19:18 +0200)]
Filter packages by name in list-packages. (Bug#36981)

* lisp/emacs-lisp/package.el (package-menu-filter-by-name): New
function to filter packages by name.
(package-menu-clear-filter): New function to clear applied filters.
(package-menu-filter-by-keyword): Rename function from
package-menu-filter.
(package-menu--generate): Don't change 'q' binding anymore.
(package-menu-mode-map): Bind '/ n' to package-menu-filter-by-name, '/
k' to package-menu-filter-by-keyword and '/ /' to
package-menu-clear-filter.
(package-menu-mode-menu): Update menu entries for the three functions.
* test/lisp/emacs-lisp/package-tests.el (package-test-list-filter-by-name)
(package-test-list-clear-filter): New tests.
* doc/emacs/package.texi: Document usage of
package-menu-filter-by-name, package-menu-clear-filter and update
reference to package-menu-filter-by-keyword.
* etc/NEWS: Announce changes.

5 years agoSearch upward from current dir for the default TAGS file
Hong Xu [Tue, 8 Oct 2019 16:43:47 +0000 (18:43 +0200)]
Search upward from current dir for the default TAGS file

* doc/emacs/maintaining.texi (Select Tags Table): Update the doc
of `visit-tags-table' (bug#37518).
* lisp/progmodes/etags.el (tags--find-default-tags-dir-recursively)
(visit-tags-table): Search upward from current dir for the default
TAGS file.

5 years agoFix title inconsistencies in elisp intro book
Stefan Kangas [Tue, 8 Oct 2019 16:30:39 +0000 (18:30 +0200)]
Fix title inconsistencies in elisp intro book

* doc/lispintro/emacs-lisp-intro.texi: Fix title
inconsistencies.  (Bug#31037)

5 years agoAdd some more commands to eshell-visual-commands
Stefan Kangas [Tue, 8 Oct 2019 14:42:05 +0000 (16:42 +0200)]
Add some more commands to eshell-visual-commands

* lisp/eshell/em-term.el (eshell-visual-commands): Add some more
commonly used commands.

5 years agoFix crashes on TTY frames due to "C-x 6 f"
Eli Zaretskii [Tue, 8 Oct 2019 13:57:23 +0000 (16:57 +0300)]
Fix crashes on TTY frames due to "C-x 6 f"

* src/xdisp.c (redisplay_internal): Revert the recent change
regarding TTY frames' garbaged flag.  It is not needed.

* src/dispnew.c (adjust_frame_glyphs_for_frame_redisplay):
When returning due to mismatch between the desired and actual
dimensions of the glyph matrix, set the frame's garbaged flag
for TTY frames.  This avoids crashes when we are later called
from redisplay.  Reported by Ergus <spacibba@aol.com>.

5 years ago* etc/PROBLEMS: Describe navigation problem from Nautilus. (Bug#37573)
Michael Albinus [Tue, 8 Oct 2019 13:41:00 +0000 (15:41 +0200)]
* etc/PROBLEMS: Describe navigation problem from Nautilus.  (Bug#37573)

* lisp/userlock.el (create-lockfiles): Set `safe-local-variable' property.

5 years ago* lisp/emacs-lisp/package.el (package--get-deps): Fix thinko
Stefan Monnier [Tue, 8 Oct 2019 13:36:01 +0000 (09:36 -0400)]
* lisp/emacs-lisp/package.el (package--get-deps): Fix thinko

* test/lisp/emacs-lisp/package-tests.el (package-test-get-deps):
Adjust test to new calling convention.

5 years agoFix aborts when opening a new font after face-cache reset
Eli Zaretskii [Tue, 8 Oct 2019 13:13:21 +0000 (16:13 +0300)]
Fix aborts when opening a new font after face-cache reset

* src/font.c (font_open_for_lface): Make sure the default face
is realized before using its height for the font to be open.
(Bug#37637)

5 years ago* INSTALL: Describe installation of source and debug packages. (Bug#37527)
Michael Albinus [Tue, 8 Oct 2019 09:48:08 +0000 (11:48 +0200)]
* INSTALL: Describe installation of source and debug packages.  (Bug#37527)

5 years agoSet default colors for tick faces
Juanma Barranquero [Tue, 8 Oct 2019 00:53:02 +0000 (02:53 +0200)]
Set default colors for tick faces

* lisp/faces.el (line-number-major-tick, line-number-minor-tick):
Set default color different from `line-number' so after customizing
the tick number variables, the ticks are immediately visible.
Suggested by Juri Linkov <juri@linkov.net>.

5 years agoClarify docs on newline and auto-fill-mode
Basil L. Contovounesios [Wed, 17 Jul 2019 12:05:42 +0000 (13:05 +0100)]
Clarify docs on newline and auto-fill-mode

* doc/lispref/text.texi (Commands for Insertion):
* lisp/simple.el (newline): Do not mention conditions specific to
'do-auto-fill' under documentation of 'newline' (bug#36702).

5 years ago* lisp/tab-bar.el (tab-bar-tab-name-function): Turn defvar into defcustom.
Juri Linkov [Mon, 7 Oct 2019 22:28:42 +0000 (01:28 +0300)]
* lisp/tab-bar.el (tab-bar-tab-name-function): Turn defvar into defcustom.

(tab-bar-tab-name-all-windows): Rename from tab-bar-tab-name.
(tab-bar-tab-name-selected-window): New function used by default.

5 years agoAdd "python3 -m twine" example to comint-password-prompt tests
Stefan Kangas [Sun, 6 Oct 2019 01:08:27 +0000 (03:08 +0200)]
Add "python3 -m twine" example to comint-password-prompt tests

* test/lisp/comint-tests.el (comint-testsuite-password-strings): Add
new example for "python3 -m twine" to test suite.  (Bug#37636)

5 years agoFix a crash in TTY sessions caused by recent changes
Eli Zaretskii [Mon, 7 Oct 2019 18:22:03 +0000 (21:22 +0300)]
Fix a crash in TTY sessions caused by recent changes

* src/xdisp.c (redisplay_internal): Fix crashes in TTY
sessions when turning on tab-mode.
Reported by Ergus <spacibba@aol.com>.

5 years agoUse text properties instead of truncating strings
Lars Ingebrigtsen [Mon, 7 Oct 2019 18:11:26 +0000 (20:11 +0200)]
Use text properties instead of truncating strings

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-put-tag): Use
this to allow using commands like `C-s' to search for even
truncated bits.

* lisp/international/mule-util.el (truncate-string-to-width):
Allow using text properties to truncate strings instead of
actually truncating strings (bug#17782).

5 years agodired-move-to-filename doc string fix
Lars Ingebrigtsen [Mon, 7 Oct 2019 17:44:17 +0000 (19:44 +0200)]
dired-move-to-filename doc string fix

* lisp/dired.el (dired-move-to-filename): Document the parameters
(bug#17566).

5 years agoImprove recent doc fix for cl-reduce
Basil L. Contovounesios [Mon, 7 Oct 2019 16:54:18 +0000 (17:54 +0100)]
Improve recent doc fix for cl-reduce

* lisp/emacs-lisp/cl-seq.el: (cl-reduce): Clarify treatment of
:INITIAL-VALUE when :FROM-END is non-nil.  Improve wording when SEQ
is empty and :INITIAL-VALUE is unspecified (bug#37400).  Describe
behavior when SEQ comprises a single element.

5 years agoMake completion in the `E' command in *Ibuffer* work
Lars Ingebrigtsen [Mon, 7 Oct 2019 16:05:58 +0000 (18:05 +0200)]
Make completion in the `E' command in *Ibuffer* work

* lisp/ibuf-ext.el (eval): Make completion (etc) work as normal
(bug#16239).

5 years agoFix infloop in redisplay caused by a recent change
Eli Zaretskii [Mon, 7 Oct 2019 16:03:04 +0000 (19:03 +0300)]
Fix infloop in redisplay caused by a recent change

* src/xdisp.c (redisplay_internal): Avoid inflooping due to a
frame's garbaged flag being set after update_frame.  Reported
by Michael Heerdegen <michael_heerdegen@web.de>.

5 years agoFeval_buffer doc string lexical-binding clarification
Lars Ingebrigtsen [Mon, 7 Oct 2019 15:25:07 +0000 (17:25 +0200)]
Feval_buffer doc string lexical-binding clarification

* src/lread.c (Feval_buffer): Mention that the lexical-binding
variable is ignored in the doc string (bug#20139).

5 years agoMake ido-display-buffer work interactively more like display-buffer
Lars Ingebrigtsen [Mon, 7 Oct 2019 15:14:10 +0000 (17:14 +0200)]
Make ido-display-buffer work interactively more like display-buffer

* lisp/ido.el (ido-display-buffer): Take an interactive parameter,
like `display-buffer' (bug#14904).
(ido-visit-buffer): Use it to emulate `C-u M-x display-buffer'.

5 years agoQuadruple term-buffer-maximum-size (Bug#37584)
Stefan Kangas [Wed, 2 Oct 2019 13:50:54 +0000 (15:50 +0200)]
Quadruple term-buffer-maximum-size (Bug#37584)

* lisp/term.el (term-buffer-maximum-size): Quadruple to 8192.

5 years agoSet correct svn:ignore property for relative filenames
Wolfgang Scherer [Mon, 7 Oct 2019 04:58:59 +0000 (06:58 +0200)]
Set correct svn:ignore property for relative filenames

* lisp/vc/vc-svn.el: (vc-svn-ignore) Use svn:ignore property of
immediate parent directory for wildcard specification (bug#37216).

5 years agoFix port of file-acl errno checking to non-GNU
Paul Eggert [Mon, 7 Oct 2019 06:08:34 +0000 (23:08 -0700)]
Fix port of file-acl errno checking to non-GNU

I had misinterpreted the private email from Ashish Shukla.
* src/fileio.c (Ffile_acl): Fix typo in previous change
by negating the call to acl_errno_valid.

5 years agoFix the colours on Motif horizontal scroll bars
Lars Ingebrigtsen [Mon, 7 Oct 2019 04:53:17 +0000 (06:53 +0200)]
Fix the colours on Motif horizontal scroll bars

* src/xterm.c (x_create_horizontal_toolkit_scroll_bar): Use the
same foreground/background colours as the vertical scroll bar
(bug#37359).

5 years agocl-reduce doc fix
Lars Ingebrigtsen [Mon, 7 Oct 2019 04:32:36 +0000 (06:32 +0200)]
cl-reduce doc fix

* lisp/emacs-lisp/cl-seq.el (cl-reduce): Clarify what happens when
SEQ is the empty list (bug#37400).

5 years agotags-complete-tags-table-file doc string fix
Hong Xu [Mon, 7 Oct 2019 04:13:27 +0000 (06:13 +0200)]
tags-complete-tags-table-file doc string fix

* lisp/progmodes/etags.el (tags-complete-tags-table-file): Doc
string fix (bug#37538).

5 years agoDefault FILE to the current buffer for list-tags
Hong Xu [Mon, 7 Oct 2019 04:03:21 +0000 (06:03 +0200)]
Default FILE to the current buffer for list-tags

* doc/emacs/maintaining.texi (List Identifiers): Update
`list-tags' doc (bug#37611).
* lisp/progmodes/etags.el (list-tags)
(tags--get-current-buffer-name-in-tags-file): Default FILE to the
current buffer for list-tags.

5 years agoMake mailcap-prefer-mailcap-viewers work as documented
Lars Ingebrigtsen [Mon, 7 Oct 2019 03:00:16 +0000 (05:00 +0200)]
Make mailcap-prefer-mailcap-viewers work as documented

* lisp/emacs-lisp/seq.el (seq-find): Autoload.

* lisp/net/mailcap.el (mailcap-parse-mailcaps): Note where all the
entries come from so that we can later distinguish between user
values and system values (bug#36771).
(mailcap-parse-mailcap): Take a source parameter.
(mailcap-possible-viewers): No need to sort wildcards/exact
matches; these are later sorted anyway.
(mailcap-add-mailcap-entry): Remove `after' parameter.
(mailcap-mime-info): Make mailcap-prefer-mailcap-viewers work as
documented.

5 years agoOnly complete words inside of the string widget
Mauro Aranda [Mon, 7 Oct 2019 01:59:43 +0000 (03:59 +0200)]
Only complete words inside of the string widget

* lisp/wid-edit.el ('string widget): Peek the word that
ispell-complete-word will try to complete, and only offer completions
when the word is inside of the field (bug#11046).

5 years ago; * doc/misc/eww.texi (Advanced): Fix recent typo.
Basil L. Contovounesios [Mon, 7 Oct 2019 02:02:07 +0000 (03:02 +0100)]
; * doc/misc/eww.texi (Advanced): Fix recent typo.

5 years agoFix message when no completions available for editable field
Mauro Aranda [Mon, 7 Oct 2019 01:36:09 +0000 (03:36 +0200)]
Fix message when no completions available for editable field

* lisp/wid-edit.el (widget-completions-at-point): Detect here if point
is not in an editable field.
(widget-complete): And here say there are no completions available
(bug#11562).

5 years agoAllow using last_tab_bar_item on no-x builds.
Juri Linkov [Sun, 6 Oct 2019 23:00:24 +0000 (02:00 +0300)]
Allow using last_tab_bar_item on no-x builds.

* src/frame.h (struct frame): Remove HAVE_WINDOW_SYSTEM
around last_tab_bar_item.

5 years agoImplement tab-close-other bound to C-x 6 1 by analogy with C-x 5 1.
Juri Linkov [Sun, 6 Oct 2019 21:53:34 +0000 (00:53 +0300)]
Implement tab-close-other bound to C-x 6 1 by analogy with C-x 5 1.

* lisp/tab-bar.el (tab-close-other): New command bound to C-x 6 1.

* doc/emacs/frames.texi (Tab Bars): Document it.

5 years agoUse tabs in EWW (bug#37592)
Juri Linkov [Sun, 6 Oct 2019 21:08:10 +0000 (00:08 +0300)]
Use tabs in EWW (bug#37592)

* lisp/net/eww.el (eww-open-in-new-buffer): Call tab-new when tab-bar-mode
is enabled.
(eww-browse-url): Add docstring.  Call tab-new when tab-bar-mode
is enabled.

* lisp/net/shr.el (shr-map): Bind [C-down-mouse-1] to
shr-mouse-browse-url-new-window.
(shr-mouse-browse-url-new-window): New command.
(shr-browse-url): Add optional arg new-window.

* doc/misc/eww.texi (Basics): Mention opening tabs on M-RET.

5 years ago* eieio-core.el (eieio--full-class-object): New function.
Stefan Monnier [Sun, 6 Oct 2019 20:00:21 +0000 (16:00 -0400)]
* eieio-core.el (eieio--full-class-object): New function.

Rather than explicitly call eieio-class-un-autoload, the autoloading is
now performed on-demand if you use eieio--full-class-object.

* lisp/emacs-lisp/eieio-core.el (eieio-class-un-autoload): Remove.
(eieio--full-class-object): New function, to replace it.
(eieio-oref, eieio--class-precedence-list):
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-convert-list-to-object):
Use it instead of eieio-class-un-autoload.
* lisp/emacs-lisp/eieio.el (eieio-class-parents, child-of-class-p):
Load the class if needed.

5 years agoSupport changing font size using mouse wheel
Stefan Kangas [Wed, 21 Aug 2019 01:38:49 +0000 (03:38 +0200)]
Support changing font size using mouse wheel

* lisp/mwheel.el (mouse-wheel-mode): Support changing font size (text
scaling) using mouse wheel.  (Bug#28182)
(mouse-wheel-scroll-amount): Bind the Ctrl modifier to text scaling.
(mwheel-installed-text-scale-bindings): New variable.
(mouse-wheel--remove-bindings): New helper function for
'mouse-wheel-mode'.

* doc/emacs/frames.texi (Mouse Commands): Document this feature.
* etc/NEWS: Announce it.

5 years agoSet alternate faces for some line numbers (bug#27734)
Juanma Barranquero [Sun, 6 Oct 2019 18:53:18 +0000 (20:53 +0200)]
Set alternate faces for some line numbers (bug#27734)

* lisp/faces.el (line-number-major-tick, line-number-minor-tick):
New faces.
* lisp/cus-start.el (display-line-numbers-major-tick)
(display-line-numbers-minor-tick): Add customization info.
* lisp/frame.el: Add `display-line-numbers-major-tick' and
`display-line-numbers-minor-tick' to list of variables which
should trigger redisplay of the current buffer.

* src/xdisp.c (syms_of_xdisp) <display-line-numbers-major-tick>
<display-line-numbers-major-tick>: Defvar new options.
(syms_of_xdisp) <line-number-major-tick, line-number-minor-tick>:
Defsym new faces.
(maybe_produce_line_number): Use new faces for line numbers
that are multiple of `display-line-numbers-major-tick' and
`display-line-numbers-minor-tick'.

* etc/NEWS (value): Announce new feature.
* doc/emacs/display.texi (Display Custom): Describe it.  Wording by
Robert Pluim <rpluim@gmail.com>

5 years agoDon't bind 'C-x 6' to '2C-mode-map' globally by default.
Juri Linkov [Sun, 6 Oct 2019 18:47:24 +0000 (21:47 +0300)]
Don't bind 'C-x 6' to '2C-mode-map' globally by default.

* lisp/textmodes/two-column.el: Don't autoload global setting of
"\C-x6" to 2C-command.

* lisp/ldefs-boot.el: Update to remove setting "\C-x6" to 2C-command.

* doc/emacs/commands.texi (Keys):
* doc/emacs/text.texi (Two-Column):
* doc/lispref/keymaps.texi (Prefix Keys):
* doc/lispref/maps.texi (Standard Keymaps):
Unbind 'C-x 6' from '2C-mode-map'.

5 years ago* lisp/emacs-lisp/package.el (package--get-deps): Rewrite.
Stefan Monnier [Sun, 6 Oct 2019 17:48:28 +0000 (13:48 -0400)]
* lisp/emacs-lisp/package.el (package--get-deps): Rewrite.

Avoid inf-recursion with dependency cycles.
Remove unused `only` arg.  Prune duplicates early rather than late.
(package--removable-packages): Simplify code accordingly.

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sun, 6 Oct 2019 16:54:58 +0000 (19:54 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoPort file-acl errno checking to non-GNU
Paul Eggert [Sun, 6 Oct 2019 16:53:53 +0000 (09:53 -0700)]
Port file-acl errno checking to non-GNU

Problem reported privately for FreeBSD 12 by Ashish Shukla.
* src/fileio.c (Ffile_acl): Treat EINVAL etc. like ENOTSUP if
acl_get_file fails, to port to FreeBSD 12 and other non-GNU
platforms.

5 years agoSupport mouse clicks on tab bar on TTY frames
Eli Zaretskii [Sun, 6 Oct 2019 16:53:18 +0000 (19:53 +0300)]
Support mouse clicks on tab bar on TTY frames

This for now doesn't work on GPM.
* src/xdisp.c (display_tab_bar): Make the loop over tab-bar
items more efficient.
(tab_bar_item_info, tool_bar_item_info): Correct data type for
CHARPOS.
(tty_get_tab_bar_item, tty_handle_tab_bar_click): New functions.
(note_mouse_highlight): Handle help-echo of tab-bar tabs on
TTY frames.
* src/w32inevt.c (do_mouse_event): Call
tty_handle_tab_bar_click to process mouse clicks on the tab bar.
* src/termchar.h (tty_handle_tab_bar_click): Add prototype.
* src/w32console.c (w32con_set_terminal_modes): Disable Quick
Edit mode on entry, to make sure mouse events get reported to
us.

5 years agoFix off-by-one bug in ISO 8601 BC years
Paul Eggert [Sun, 6 Oct 2019 04:23:15 +0000 (21:23 -0700)]
Fix off-by-one bug in ISO 8601 BC years

* lisp/calendar/iso8601.el (iso8601--year-match)
(iso8601--full-date-match, iso8601--without-day-match)
(iso8601--week-date-match, iso8601--ordinal-date-match)
(iso8601-parse-date):
Don’t bother to separate the year’s sign from the year,
as that distinction is not needed: ISO 8601 uses
astronomical year numbering with a year zero, which
is what the Emacs time functions use, so there’s no
need to treat nonpositive years specially.
(iso8601--adjust-year): Remove; no longer needed
since callers can just use string-to-number.
* test/lisp/calendar/iso8601-tests.el (test-iso8601-date-years):
Adjust test case to match fixed behavior.