1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-19 01:10:57 -08:00
Commit graph

139572 commits

Author SHA1 Message Date
Stefan Kangas
c548a2af9b 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.
2019-10-09 20:10:09 +02:00
Lars Ingebrigtsen
b16f19626c 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).
2019-10-09 20:07:56 +02:00
Lars Ingebrigtsen
50886f0992 Add a letrec example to the manuel
* doc/lispref/variables.texi (Local Variables): Add a letrec example.
2019-10-09 19:27:17 +02:00
Lars Ingebrigtsen
fe2e29d29b Tweak letrec documentation
* doc/lispref/variables.texi (Local Variables): Compare letrec to
let* instead of let.
2019-10-09 18:42:41 +02:00
Stephen Gildea
600bcde608 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"
2019-10-09 09:19:10 -07:00
Simen Heggestøyl
3d57c829af 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)
2019-10-09 18:12:02 +02:00
Stephen Gildea
697a7a1497 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.
2019-10-09 09:08:19 -07:00
Juanma Barranquero
6fa1558ca5 Silence compiler warning
* src/w32.c (acl_to_text): Add ATTRIBUTE_MALLOC.
2019-10-09 15:43:26 +02:00
Robert Pluim
0f397e8dd4 ; Fix typo in previous commit
* lisp/replace.el (query-replace-read-from): Fix typo in docstring.
2019-10-09 15:16:07 +02:00
Robert Pluim
b5fbefdac6 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.
2019-10-09 15:14:17 +02:00
Michael Albinus
e26c19b889 * doc/misc/tramp.texi (Remote shell setup): Howto configure local shell. 2019-10-09 13:56:58 +02:00
Michael Albinus
0691fdc410 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)
2019-10-09 12:58:43 +02:00
Juanma Barranquero
76a9f03ca6 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.
2019-10-09 12:49:39 +02:00
Juanma Barranquero
4b06250ef1 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.
2019-10-09 12:37:30 +02:00
Eli Zaretskii
8e0761c842 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)
2019-10-09 13:08:01 +03:00
Eli Zaretskii
87d999a2f4 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)
2019-10-09 12:29:21 +03:00
Lars Ingebrigtsen
13f7e07e7c 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).
2019-10-09 10:41:27 +02:00
Lars Ingebrigtsen
fdf7349b1c 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).
2019-10-09 09:45:07 +02:00
Lars Ingebrigtsen
3d0d2d1a19 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).
2019-10-09 09:38:11 +02:00
Lars Ingebrigtsen
a6dfd9145f 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).
2019-10-09 09:26:58 +02:00
Lars Ingebrigtsen
1204e7cb81 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).
2019-10-09 09:22:38 +02:00
Lars Ingebrigtsen
2497a31646 Upcase parameters in things like "&optional (arg 3)"
* lisp/help.el (help--make-usage): Upcase cl-defgeneric (etc)
parameter names (bug#23517).
2019-10-09 09:06:33 +02:00
Lars Ingebrigtsen
4fef6e68f7 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).
2019-10-09 07:31:24 +02:00
Hong Xu
5f727c6342 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.
2019-10-09 07:03:33 +02:00
Lars Ingebrigtsen
e8dd6c9d83 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.
2019-10-09 07:00:39 +02:00
Juanma Barranquero
9db9b0b12d 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.
2019-10-09 06:15:46 +02:00
Lars Ingebrigtsen
489a106b1c Document `letrec'
* doc/lispref/variables.texi (Local Variables): Document letrec
(bug#21048).

* lisp/subr.el (letrec): Expand the doc string slightly.
2019-10-09 06:06:24 +02:00
Lars Ingebrigtsen
43310f4387 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.
2019-10-09 05:27:03 +02:00
Lars Ingebrigtsen
f2cbc7214f 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.
2019-10-09 05:13:07 +02:00
Lars Ingebrigtsen
967eed7596 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.
2019-10-09 05:08:32 +02:00
Lars Ingebrigtsen
534783c526 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).
2019-10-09 04:10:41 +02:00
Lars Ingebrigtsen
cca2ba5532 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).
2019-10-09 03:55:09 +02:00
Lars Ingebrigtsen
9365ff0527 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.
2019-10-09 03:11:15 +02:00
Lars Ingebrigtsen
11d3e309b3 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.
2019-10-09 02:53:11 +02:00
Lars Ingebrigtsen
97702f5292 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):
2019-10-09 02:46:17 +02:00
Federico Tedin
f96b8fd27c 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.
2019-10-08 19:24:12 +02:00
Hong Xu
ba57f1a427 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.
2019-10-08 18:43:56 +02:00
Stefan Kangas
1793d4979b Fix title inconsistencies in elisp intro book
* doc/lispintro/emacs-lisp-intro.texi: Fix title
inconsistencies.  (Bug#31037)
2019-10-08 18:30:39 +02:00
Stefan Kangas
759ba8d1d4 Add some more commands to eshell-visual-commands
* lisp/eshell/em-term.el (eshell-visual-commands): Add some more
commonly used commands.
2019-10-08 16:44:48 +02:00
Eli Zaretskii
6469f9cd92 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>.
2019-10-08 16:57:23 +03:00
Michael Albinus
304d022a66 * etc/PROBLEMS: Describe navigation problem from Nautilus. (Bug#37573)
* lisp/userlock.el (create-lockfiles): Set `safe-local-variable' property.
2019-10-08 15:41:00 +02:00
Stefan Monnier
b12edc6171 * 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.
2019-10-08 09:36:01 -04:00
Eli Zaretskii
bdb04e9dd1 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)
2019-10-08 16:13:21 +03:00
Michael Albinus
005ed49495 * INSTALL: Describe installation of source and debug packages. (Bug#37527) 2019-10-08 11:48:08 +02:00
Juanma Barranquero
32a67a5cfb 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>.
2019-10-08 02:53:02 +02:00
Basil L. Contovounesios
373ffc5931 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).
2019-10-08 00:10:19 +01:00
Juri Linkov
3f9ad4e725 * 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.
2019-10-08 01:28:42 +03:00
Stefan Kangas
9839466b23 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)
2019-10-07 20:51:53 +02:00
Eli Zaretskii
18251fb739 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>.
2019-10-07 21:22:03 +03:00
Lars Ingebrigtsen
67830e7569 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).
2019-10-07 20:11:26 +02:00