]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 years agoFix issue calling face_at_pos. feature/extend_face_id
Jimmy Aguilar Mena [Sun, 13 Oct 2019 21:20:22 +0000 (23:20 +0200)]
Fix issue calling face_at_pos.

*src/xdisp.c (extend_face_to_end_of_line): Add extra condition when
producing glyphs from a C string to not call face_at_pos.

5 years agoModify face_at_pos to not modify change IT.
Jimmy Aguilar Mena [Sun, 13 Oct 2019 14:56:50 +0000 (16:56 +0200)]
Modify face_at_pos to not modify change IT.

src/xdisp.c (face_at_pos): Removed code to that modified
it->start_of_box_run_p and it->face_box_p.  This function should not
modify it.
(handle_face_prop): Added code to update it->start_of_box_run_p and
it->face_box_p.
(underlying_face_id): Input IT made CONST.

5 years ago; extend_face_id and fill_column_indicator corrections
Jimmy Aguilar Mena [Wed, 9 Oct 2019 14:44:21 +0000 (16:44 +0200)]
; extend_face_id and fill_column_indicator corrections

*etc/NEWS: Correction for extend face and add some comments in the
code.

5 years ago*etc/NEWS: Added comment about :extend face attribute in NEWS.
Jimmy Aguilar Mena [Sun, 29 Sep 2019 19:41:00 +0000 (21:41 +0200)]
*etc/NEWS: Added comment about :extend face attribute in NEWS.

5 years agoDocument new :extend face attribute in manuals.
Jimmy Aguilar Mena [Sat, 21 Sep 2019 21:34:40 +0000 (23:34 +0200)]
Document new :extend face attribute in manuals.

Some stylistic corrections in src/xdisp.c and src/xfaces.c.

5 years agoFixed merge_face_ref recursive calls.
Jimmy Aguilar Mena [Sat, 21 Sep 2019 18:33:38 +0000 (20:33 +0200)]
Fixed merge_face_ref recursive calls.

* src/xfaces.c (merge_face_ref): Fixed recursive calls to consider
filter when CONSP (face_ref).

5 years agoOptimization in extend_face
Jimmy Aguilar Mena [Sat, 21 Sep 2019 17:57:17 +0000 (19:57 +0200)]
Optimization in extend_face

* src/xdisp.c (extend_face_to_end_of_line): Optimization to void
calls to face_at_pos.

5 years agoExtend_face simplify.
Jimmy Aguilar Mena [Sat, 21 Sep 2019 15:04:09 +0000 (17:04 +0200)]
Extend_face simplify.

* src/dispextern.h (struct it): Removed extend_face unneeded members.
* src/xdisp.c (handle_face_prop_general): renamed to face_at_pos and
removed input parameter initial_face_id. Updated all occurrences.

5 years agoAdded parameter attr_filter to face_at_string_position.
Jimmy Aguilar Mena [Sun, 15 Sep 2019 21:14:48 +0000 (23:14 +0200)]
Added parameter attr_filter to face_at_string_position.

Update all the occurrences in src/xdisp.c and src/xfaces.c

5 years agoExtend face hl-line after end-of-line
Jimmy Aguilar Mena [Sat, 14 Sep 2019 21:46:10 +0000 (23:46 +0200)]
Extend face hl-line after end-of-line

* lisp/hl-line.el (face hl-line): Added extend attribute to hl-line
face.

5 years agoFix last change in append_space_for_newline.
Jimmy Aguilar Mena [Sat, 14 Sep 2019 21:43:32 +0000 (23:43 +0200)]
Fix last change in append_space_for_newline.

 * src/xdisp.c (append_space_for_newline): Code refactor and
 simplification.

5 years agoAdd space for cursor to work also in terminal.
Jimmy Aguilar Mena [Sat, 14 Sep 2019 19:15:17 +0000 (21:15 +0200)]
Add space for cursor to work also in terminal.

* src/xdisp.c (append_space_for_newline): Modified to add the space
with the last face also in terminal interface.
(fill_column_indicator_column): Modified to group more conditions.
(extend_face_to_end_of_line): Simplified code in
fill_column_indicator to use the new function.

5 years agoChanged handle_face_prop_general prototype.
Jimmy Aguilar Mena [Mon, 9 Sep 2019 14:10:57 +0000 (16:10 +0200)]
Changed handle_face_prop_general prototype.

* src/xdisp.h (handle_face_prop_general): Changed function prototype
to receive different arguments.

5 years agoFixed extend face filtered for prop.
Jimmy Aguilar Mena [Sun, 8 Sep 2019 12:41:31 +0000 (14:41 +0200)]
Fixed extend face filtered for prop.

* src/xfaces.c (face_at_buffer_position): Pass ATTR_FILTER to
merge_face_ref in when !NILP (prop).

5 years agoCall handle_face_prop_general to extend face.
Jimmy Aguilar Mena [Sat, 12 Oct 2019 17:51:46 +0000 (19:51 +0200)]
Call handle_face_prop_general to extend face.

* src/xdisp.c (extend_face_to_end_of_line): Added a call to
handle_face_prop_general to extend face after EOL according to
parameter :extend in the faces.

5 years agoUpdate dfci code with new extend_face code.
Jimmy Aguilar Mena [Sat, 12 Oct 2019 17:15:32 +0000 (19:15 +0200)]
Update dfci code with new extend_face code.

* src/xdisp.c (extend_face_to_end_of_line): Updated the
column-indicator code to use the new version of the function
fill_column_indicator_column.

5 years agoNew parameter to control the face extension..
Jimmy Aguilar Mena [Sat, 12 Oct 2019 16:10:48 +0000 (18:10 +0200)]
New parameter to control the face extension..

* src/xdisp.c (handle_face_prop_general): New function to specialize
handle_face_prop with ATTR_FILTER.
* src/dispextern.h (face_at_buffer_position): Added
LFACE_ATTRIBUTE_INDEX.
* src/xfaces.c (merge_face_ref): Added LFACE_ATTRIBUTE_INDEX to merge
conditionally.

5 years agoAdded face parameter :extend.
Jimmy Aguilar Mena [Wed, 4 Sep 2019 15:27:28 +0000 (17:27 +0200)]
Added face parameter :extend.

This is an initial change to add a parameter :extend that will be used
in the display engine later.

5 years agoSimplify struct face to use only underline.
Jimmy Aguilar Mena [Wed, 28 Aug 2019 09:47:50 +0000 (11:47 +0200)]
Simplify struct face to use only underline.

* src/dispextern.h (enum face_underline_type): Add FACE_NO_UNDERLINE = 0.
(struct face): Merge `underline_type` and `underline_p` into `underline`.
Update all the occurrences in src/xdisp.c, src/xfaces.c, and src/xterm.c.

5 years agoFix directory-files-recursively doc typo
Robert Pluim [Mon, 14 Oct 2019 09:43:12 +0000 (11:43 +0200)]
Fix directory-files-recursively doc typo

* lisp/files.el (directory-files-recursively): Fix doc string.

5 years agoFix bug recently introduced in 'fit-window-to-buffer' (Bug#37743)
Martin Rudalics [Mon, 14 Oct 2019 08:53:07 +0000 (10:53 +0200)]
Fix bug recently introduced in 'fit-window-to-buffer' (Bug#37743)

* lisp/window.el (fit-window-to-buffer): Call 'window-combined-p'
with right argument (Bug#37743).

5 years agoFix up previous dired change again
Lars Ingebrigtsen [Mon, 14 Oct 2019 06:47:02 +0000 (08:47 +0200)]
Fix up previous dired change again

* lisp/dired.el (dired-set-id): Fix the name of the face after the
previous change.

5 years agoFix typo in previous dired change
Lars Ingebrigtsen [Mon, 14 Oct 2019 06:43:36 +0000 (08:43 +0200)]
Fix typo in previous dired change

* lisp/dired.el (dired-set-idguid): Remove superfluous '
introduced by previous change (bug#37742).

5 years ago; Minor fixes in documentation
Eli Zaretskii [Mon, 14 Oct 2019 06:33:51 +0000 (09:33 +0300)]
; Minor fixes in documentation

* doc/emacs/xresources.texi (Table of Resources):
* doc/emacs/cmdargs.texi (Misc X):
* etc/NEWS: Fix recent changes in documentation.

5 years ago(help-fns--var-aliases): Fix compilation warning in previous patch.
Lars Ingebrigtsen [Mon, 14 Oct 2019 05:49:25 +0000 (07:49 +0200)]
(help-fns--var-aliases): Fix compilation warning in previous patch.

5 years agoMake `C-h v' list all aliases a variable has
Lars Ingebrigtsen [Mon, 14 Oct 2019 05:47:53 +0000 (07:47 +0200)]
Make `C-h v' list all aliases a variable has

* lisp/help-fns.el (help-fns--var-aliases): New function (bug#15179).

5 years agoMake url-hexify-string accept a list of allowed chars (bug#26469)
Hong Xu [Mon, 14 Oct 2019 04:46:47 +0000 (06:46 +0200)]
Make url-hexify-string accept a list of allowed chars (bug#26469)

* lisp/url/url-util.el (url-hexify-string): Accept a list of allowed
chars.
* doc/misc/url.texi (URI Encoding): Update url-hexify-string doc and
index improvements (bug#24694).

5 years agoTweak ispell-init-process messaging
Lars Ingebrigtsen [Mon, 14 Oct 2019 04:08:19 +0000 (06:08 +0200)]
Tweak ispell-init-process messaging

* lisp/textmodes/ispell.el (ispell-init-process): Output a "done"
after the "starting" message (bug#12828).

5 years agoAdd a new tar-copy-preserve-time variable
Lars Ingebrigtsen [Mon, 14 Oct 2019 03:41:45 +0000 (05:41 +0200)]
Add a new tar-copy-preserve-time variable

* lisp/tar-mode.el (tar-copy-preserve-time): New variable (bug#11882).
(tar-copy): Use it.

5 years agoClarify message about newer source file
Lars Ingebrigtsen [Mon, 14 Oct 2019 03:19:37 +0000 (05:19 +0200)]
Clarify message about newer source file

* src/lread.c (Fload): Mention which file was actually used
instead of just saying that the .el is newer than the .elc (bug#10637).

5 years agoAllow zap-to-char to use a history
Lars Ingebrigtsen [Mon, 14 Oct 2019 03:09:32 +0000 (05:09 +0200)]
Allow zap-to-char to use a history

* doc/emacs/killing.texi (Other Kill Commands): Document it.

* lisp/simple.el (read-char-with-history): New function (bug#10477).
(zap-to-char): Use it to have a history.

5 years agoFont-lock suid/guid files in Dired
Lars Ingebrigtsen [Mon, 14 Oct 2019 01:31:33 +0000 (03:31 +0200)]
Font-lock suid/guid files in Dired

* lisp/dired.el (dired-font-lock-keywords): Font-lock suid/guid
permissions (bug#8186).
(dired-sguid): New face.

5 years agoFurther changes to ensure that copy-keymap doesn't segfault
Lars Ingebrigtsen [Mon, 14 Oct 2019 00:52:25 +0000 (02:52 +0200)]
Further changes to ensure that copy-keymap doesn't segfault

* src/keymap.c (copy_keymap_1, copy_keymap_set_char_table): Ensure
we don't recurse infinitely when using non-sparse keymaps, too.

This change makes this form not segfault:

(let ((map (make-keymap)))
  (define-key map " " map)
  (copy-keymap map))

5 years agoClarify mouse commands section in manual
Stefan Kangas [Fri, 11 Oct 2019 00:21:08 +0000 (02:21 +0200)]
Clarify mouse commands section in manual

* doc/emacs/frames.texi (Mouse Commands): Clarify section on mouse
wheel somewhat.  (Bug#28182)

5 years agoDon't display the number of windows in tab name in tab-bar by default.
Juri Linkov [Sun, 13 Oct 2019 22:00:38 +0000 (01:00 +0300)]
Don't display the number of windows in tab name in tab-bar by default.

* lisp/tab-bar.el (tab-bar-tab-name-function): Change the default value.
(tab-bar-tab-name-current): Rename from tab-bar-tab-name-selected-window.
(tab-bar-tab-name-current-with-count): New function.
(tab-bar-tab-name-all): Rename from tab-bar-tab-name-all-windows.

5 years ago* lisp/window.el (next-buffer, previous-buffer): Add repeat count arg.
Juri Linkov [Sun, 13 Oct 2019 21:18:56 +0000 (00:18 +0300)]
* lisp/window.el (next-buffer, previous-buffer): Add repeat count arg.

* doc/emacs/buffers.texi (Select Buffer): Mention arg as repeat count.
(Bug#37514)

5 years agoMake list-buffers--refresh preserve marks
Lars Ingebrigtsen [Sun, 13 Oct 2019 20:56:38 +0000 (22:56 +0200)]
Make list-buffers--refresh preserve marks

* lisp/buff-menu.el (list-buffers--refresh): Preserve the marked
buffers when refreshing the list (bug#6491).

5 years agoEnable tab-bar-mode from X resources
Juri Linkov [Sun, 13 Oct 2019 20:56:17 +0000 (23:56 +0300)]
Enable tab-bar-mode from X resources

* lisp/startup.el (x-apply-session-resources): Enable tab-bar-mode
when X resource "tabBar" class "TabBar" is "on", "yes" or "1".

* doc/man/emacs.1.in:
* doc/emacs/xresources.texi (Table of Resources):
Document X resource "tabBar" (class "TabBar").

5 years agoFix initial value of frame-inhibit-implied-resize
Juri Linkov [Sun, 13 Oct 2019 20:47:33 +0000 (23:47 +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 NS to not include 'tab-bar-lines,
and non-toolkit X builds to include 'tab-bar-lines.

5 years agoFix hitting RET on some text in compilation-mode
Lars Ingebrigtsen [Sun, 13 Oct 2019 20:22:31 +0000 (22:22 +0200)]
Fix hitting RET on some text in compilation-mode

* lisp/progmodes/compile.el (compilation-next-error-function):
Don't bug out with an incomprehensible error message on "make[2]:"
texts (bug#5316).
(compilation-find-file): Protect against there being no file name.

5 years ago* src/xdisp.c (note_tab_bar_highlight): Simplify HAVE_NS ifdefs.
Paul Eggert [Sun, 13 Oct 2019 19:55:12 +0000 (12:55 -0700)]
* src/xdisp.c (note_tab_bar_highlight): Simplify HAVE_NS ifdefs.

5 years agoAdd a new action in save-some-buffers to view the buffer
Lars Ingebrigtsen [Sun, 13 Oct 2019 19:36:57 +0000 (21:36 +0200)]
Add a new action in save-some-buffers to view the buffer

* doc/emacs/files.texi (Save Commands): Document it.

* lisp/files.el (save-some-buffers-action-alist): Offer to pop to
the buffer and then quit (bug#3625).
(save-some-buffers): Implement it.
(save-some-buffers--switch-window-callback): New variable.

5 years agoCorrectly explain test failures with mixed uni/multibyte strings
Mattias Engdegård [Thu, 10 Oct 2019 19:20:20 +0000 (21:20 +0200)]
Correctly explain test failures with mixed uni/multibyte strings

* lisp/emacs-lisp/ert.el (ert--explain-equal-rec):
* test/lisp/emacs-lisp/ert-tests.el (ert-test-explain-equal):
When explaining a difference between a unibyte and a multibyte string,
first convert both to multibyte.  Otherwise, we might end up comparing
unibyte char C to multibyte char C, 127<C<256, and not detect the
difference (bug#30219).

5 years agoMention shifted alphabetical control GUI sequences
Lars Ingebrigtsen [Sun, 13 Oct 2019 18:06:19 +0000 (20:06 +0200)]
Mention shifted alphabetical control GUI sequences

* doc/emacs/custom.texi (Modifier Keys): Mention that you can bind
shifted alphabetical control sequences in GUI frames (bug#23247).

5 years agoAvoid compiler warnings on macOS.
Philipp Stephani [Sun, 13 Oct 2019 15:24:10 +0000 (17:24 +0200)]
Avoid compiler warnings on macOS.

* src/xdisp.c (note_tab_bar_highlight): Define variables 'dpyinfo' and
'mouse_down_p' only if needed.

5 years agoFix with-coding-priority markup in Elisp manual
Basil L. Contovounesios [Sun, 13 Oct 2019 15:36:02 +0000 (16:36 +0100)]
Fix with-coding-priority markup in Elisp manual

* doc/lispref/nonascii.texi (Specifying Coding Systems): Don't use
'&rest' in conjunction with 'body...' in arglist of
with-coding-priority.  Fix typo and cross-referencing (2-arg @pxref
adds a trailing period).

5 years agoMinor tweaks to time-stamp documentation strings
Stephen Gildea [Sun, 13 Oct 2019 14:58:55 +0000 (07:58 -0700)]
Minor tweaks to time-stamp documentation strings

* time-stamp.el (time-stamp): Reformat the explanation of the
variables that affect time-stamp, for easier reading.  In particular,
wrap the documentation to 75 characters, so that it displays neatly as
a before-save-hook customization option.

* time-stamp-tests.el (with-time-stamp-test-env): Use imperative voice,
per checkdoc.

5 years agoIn compilation-tear-down-arrow-spec-in-margin, test compilation-arrow-overlay
Alan Mackenzie [Sun, 13 Oct 2019 13:15:35 +0000 (13:15 +0000)]
In compilation-tear-down-arrow-spec-in-margin, test compilation-arrow-overlay

* lisp/progmodes/compile.el (compilation-tear-down-arrow-spec-in-margin): Make
sure compilation-arrow-overlay is an overlay before performing overlay
operations on it.  This fixes bug #37733.

5 years ago; Minor copyedits in a recent ELisp manual change.
Eli Zaretskii [Sun, 13 Oct 2019 07:59:18 +0000 (10:59 +0300)]
; Minor copyedits in a recent ELisp manual change.

* doc/lispref/tips.texi (Coding Conventions): Make the
guideline against '-p' in variable names less mandatory and
more constructive.

5 years ago; Fix recent additions to ELisp manual
Eli Zaretskii [Sun, 13 Oct 2019 07:50:30 +0000 (10:50 +0300)]
; Fix recent additions to ELisp manual

* doc/lispref/files.texi (Contents of Directories): Fix
recently added documentation of 'locate-dominating-file'.

5 years agoMake the previous-matching-history-element prompt clearer
Lars Ingebrigtsen [Sun, 13 Oct 2019 05:14:03 +0000 (07:14 +0200)]
Make the previous-matching-history-element prompt clearer

* lisp/simple.el (previous-matching-history-element): Put the
default into the prompt (bug#380).

5 years agoMake diff-mode understand git-format-patch separators
Konstantin Kharlamov [Sun, 13 Oct 2019 03:52:21 +0000 (05:52 +0200)]
Make diff-mode understand git-format-patch separators

* lisp/vc/diff-mode.el (diff-prev-line-if-patch-separator):
A function to return prev. line if it has git-format-patch
separator.
(diff-end-of-hunk): Make use of
diff-prev-line-if-patch-separator
diff-buffer-type: whether a buffer is a git-diff
(define-derived-mode): set diff-buffer-type to appropriate
value (bug#37395).

5 years agoTCL indentation fix outside functions
Rolf Ade [Sun, 13 Oct 2019 03:18:36 +0000 (05:18 +0200)]
TCL indentation fix outside functions

* lisp/progmodes/tcl.el (tcl-calculate-indent): Indent code
correctly outside of function definitions (bug#23565).

Copyright-paperwork-exempt: yes

5 years agoHide passwords more in `read-password'
Lars Ingebrigtsen [Sun, 13 Oct 2019 03:15:18 +0000 (05:15 +0200)]
Hide passwords more in `read-password'

* lisp/subr.el (read-password--hide-password): Factor out (bug#17127).
(read-passwd): Use it in post-command-hook instead of
after-change-functions to ensure that we hide the password no
matter what inserts text.

5 years agoUse quit-window in some functions
Andreas Politz [Sun, 13 Oct 2019 03:08:37 +0000 (05:08 +0200)]
Use quit-window in some functions

* lisp/strokes.el:
* lisp/startup.el (fancy-startup-tail):
* lisp/progmodes/verilog-mode.el (verilog-complete-word)
(verilog-show-completions):
* lisp/progmodes/idlwave.el (idlwave-quit-help): Use `quit-window'
(bug#24213).

5 years agoAdd -unknown to version-regexp-alist
Lars Ingebrigtsen [Sun, 13 Oct 2019 02:59:44 +0000 (04:59 +0200)]
Add -unknown to version-regexp-alist

* lisp/epg-config.el (epg-find-configuration): Remove the -unknown
hack, because it led to further problems later when comparing
versions.

* lisp/subr.el (version-regexp-alist): Rate -unknown versions the
same as -alpha releases (bug#37556).

5 years agoAdd "next" and "previous" shortcuts in eww-history buffers
Raimon Grau [Sun, 13 Oct 2019 02:26:39 +0000 (04:26 +0200)]
Add "next" and "previous" shortcuts in eww-history buffers

* lisp/net/eww.el (eww-history-mode-map): Add "n" and "p" for
"next-line" and "previous-line" (bug#37648).

5 years agoProtect against segfaults in copy-keymap
Lars Ingebrigtsen [Sun, 13 Oct 2019 01:12:11 +0000 (03:12 +0200)]
Protect against segfaults in copy-keymap

* src/keymap.c (copy_keymap_1): Factor out and refuse to recurse
infinitely (bug#7496).
(Fcopy_keymap): ... from here.
(copy_keymap_item): Pass on the depth parameter.

5 years agoDocument let-alist
Lars Ingebrigtsen [Sat, 12 Oct 2019 23:29:32 +0000 (01:29 +0200)]
Document let-alist

* doc/lispref/lists.texi (Association Lists): Document let-alist
(bug#34842).

5 years agoDon't claim that the default height is precisely 36 characters
Lars Ingebrigtsen [Sat, 12 Oct 2019 22:49:09 +0000 (00:49 +0200)]
Don't claim that the default height is precisely 36 characters

* doc/emacs/cmdargs.texi (Window Size X):
* doc/man/emacs.1.in: Be more vague about what the default height
is (bug#33921).

5 years agoDocument locate-dominating-file
Lars Ingebrigtsen [Sat, 12 Oct 2019 22:22:03 +0000 (00:22 +0200)]
Document locate-dominating-file

* doc/lispref/files.texi (Contents of Directories): Document
locate-dominating-file (bug#33869).

5 years ago* lisp/tab-bar.el: Don't use minibuffer buffer name as tab name.
Juri Linkov [Sat, 12 Oct 2019 21:41:39 +0000 (00:41 +0300)]
* lisp/tab-bar.el: Don't use minibuffer buffer name as tab name.

* lisp/tab-bar.el (tab-bar-tab-name-selected-window):
Use minibuffer-selected-window to get original window.

5 years agoMake Fadd_face_text_property even less destructive
Lars Ingebrigtsen [Sat, 12 Oct 2019 21:35:26 +0000 (23:35 +0200)]
Make Fadd_face_text_property even less destructive

* src/textprop.c (Fadd_face_text_property): We need to be
non-destructive in buffers, too, because face properties may have
been added with `put-text-property' as a list that's been reused.

5 years agoMention the Emacs exit code in batch mode
Lars Ingebrigtsen [Sat, 12 Oct 2019 21:15:43 +0000 (23:15 +0200)]
Mention the Emacs exit code in batch mode

* doc/lispref/os.texi (Batch Mode): Mention what the exit code is
if an error is signalled (bug#31552).

5 years agoDocument that variables should not be called -p
Kaushal Modi [Sat, 12 Oct 2019 20:26:50 +0000 (22:26 +0200)]
Document that variables should not be called -p

* doc/lispref/tips.texi (Coding Conventions): Document that
variables should now be called -p (bug#26564).

5 years agoMake the cl-letf doc string link to the manual
Lars Ingebrigtsen [Sat, 12 Oct 2019 20:21:11 +0000 (22:21 +0200)]
Make the cl-letf doc string link to the manual

* lisp/emacs-lisp/cl-macs.el (cl-letf): Add a link to the manual
from the doc string (bug#24459).

5 years agobutton-* function doc string clarifications
Jiajie Chen [Sat, 12 Oct 2019 19:47:47 +0000 (21:47 +0200)]
button-* function doc string clarifications

* lisp/button.el (button-start, button-end, button-get)
(button-put, button-label): Have the doc string mention that they
have to be called from the current buffer (bug#23909).

Copyright-paperwork-exempt: yes

5 years agoert-deftest macro doc string clarification
Lars Ingebrigtsen [Sat, 12 Oct 2019 19:34:56 +0000 (21:34 +0200)]
ert-deftest macro doc string clarification

* lisp/emacs-lisp/ert.el (ert-deftest): Mention that macros are
expanded when defined, not when tested (bug#21742).

5 years ago; Remove unneeded @samp from a @table
Eli Zaretskii [Sat, 12 Oct 2019 19:23:56 +0000 (22:23 +0300)]
; Remove unneeded @samp from a @table

* doc/lispref/objects.texi (Special Read Syntax): Remove @samp
from @item's.

5 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 12 Oct 2019 19:22:37 +0000 (22:22 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

5 years agoFix recent changes in ELisp manual
Eli Zaretskii [Sat, 12 Oct 2019 19:18:34 +0000 (22:18 +0300)]
Fix recent changes in ELisp manual

* doc/lispref/objects.texi (Special Read Syntax): Use @samp in
@table.

* doc/lispref/elisp.texi (Top): Update the detailed menu due
to a recent addition.

5 years agoDocument #$ in the overview
Lars Ingebrigtsen [Sat, 12 Oct 2019 19:14:42 +0000 (21:14 +0200)]
Document #$ in the overview

* doc/lispref/objects.texi (Special Read Syntax): Add #$.

5 years agoFix compilation-transform-file-match-alist failure
Lars Ingebrigtsen [Sat, 12 Oct 2019 18:57:37 +0000 (20:57 +0200)]
Fix compilation-transform-file-match-alist failure

* lisp/progmodes/compile.el (compilation-error-properties): Fix
thinko in compilation-transform-file-match-alist feature -- `file'
isn't a list of files after all.

5 years agoAdd a lispref node to list special read syntax forms
Lars Ingebrigtsen [Sat, 12 Oct 2019 18:56:52 +0000 (20:56 +0200)]
Add a lispref node to list special read syntax forms

* doc/lispref/objects.texi (Special Read Syntax): Add a node to
list all the special read syntax forms (bug#18957).

5 years ago; Improve a doc string in etags.el
Eli Zaretskii [Sat, 12 Oct 2019 18:55:59 +0000 (21:55 +0300)]
; Improve a doc string in etags.el

* lisp/progmodes/etags.el (tags-complete-tags-table-file):
Improve the doc string.  (Bug#37538)

5 years agoAdapt some Tramp tests
Michael Albinus [Sat, 12 Oct 2019 10:20:55 +0000 (12:20 +0200)]
Adapt some Tramp tests

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test17-insert-directory): Adapt regexp of summary line.

* test/lisp/net/tramp-tests.el (tramp-test21-file-links):
Extend test for symlinked directories.

5 years agoFix google-drive handling in tramp-gvfs
Michael Albinus [Sat, 12 Oct 2019 10:20:30 +0000 (12:20 +0200)]
Fix google-drive handling in tramp-gvfs

* lisp/net/tramp-gvfs.el (tramp-gvfs-file-attributes):
Add "standard::is-volatile".
(tramp-gvfs-get-directory-attributes)
(tramp-gvfs-handle-file-attributes): Handle "gdrive" special.
(tramp-gvfs-send-command): Ignore nil arguments.

5 years ago* lisp/net/tramp.el (tramp-handle-access-file): Use `file-truename'.
Michael Albinus [Sat, 12 Oct 2019 10:19:59 +0000 (12:19 +0200)]
* lisp/net/tramp.el (tramp-handle-access-file): Use `file-truename'.

5 years agoCC-Mode: Remove unneeded backslashes from doc strings and regular expressions
Alan Mackenzie [Sat, 12 Oct 2019 09:30:23 +0000 (09:30 +0000)]
CC-Mode: Remove unneeded backslashes from doc strings and regular expressions

Also make miscellaneous amendments.

* lisp/progmodes/cc-align.el, lisp/progmodes/cc-cmds.el
* lisp/progmodes/cc-defs.el, lisp/progmodes/cc-engine.el
* lisp/progmodes/cc-langs.el, lisp/progmodes/cc-vars.el: Remove lots of
unneeded backslashes.

* lisp/progmodes/cc-langs.el (c-string-innards-re-alist): Remove redundant
"\\|\r" from regular expression.

* lisp/progmodes/cc-mode.el (c-make-mode-syntax-table): Correct the name of
the hook normal-erase-is-backspace-MODE-hook from a non-existant hook name.

5 years ago; * lisp/progmodes/grep.el (lgrep, rgrep, zrgrep): Fix doc wording.
Eli Zaretskii [Sat, 12 Oct 2019 06:52:03 +0000 (09:52 +0300)]
; * lisp/progmodes/grep.el (lgrep, rgrep, zrgrep): Fix doc wording.

5 years agotool-bar-map doc string clarification
Lars Ingebrigtsen [Sat, 12 Oct 2019 05:30:36 +0000 (07:30 +0200)]
tool-bar-map doc string clarification

* lisp/tool-bar.el (tool-bar-map): Try to clarify how this
variable is used (bug#17709).

5 years agoFix `shell' doc keymap expansions
David Röthlisberger [Sat, 12 Oct 2019 05:10:27 +0000 (07:10 +0200)]
Fix `shell' doc keymap expansions

* lisp/shell.el (shell): Make the commands be expanded in the
correct keymap (bug#11202).

Copyright-paperwork-exempt: yes

5 years agodiary-mark-entries-hook doc string clarification
Lars Ingebrigtsen [Sat, 12 Oct 2019 05:06:54 +0000 (07:06 +0200)]
diary-mark-entries-hook doc string clarification

* lisp/calendar/diary-lib.el (diary-mark-entries-hook): Mention
dynamically bound variables (bug#9287).

5 years agoDocument :match-inline widget elements
Lars Ingebrigtsen [Sat, 12 Oct 2019 04:40:49 +0000 (06:40 +0200)]
Document :match-inline widget elements

* doc/lispref/customize.texi (Type Keywords): Document
:match-inline (bug#8716).
(Splicing into Lists): Mention :match-inline.

5 years agoUpdate from Gnulib
Paul Eggert [Sat, 12 Oct 2019 01:23:47 +0000 (18:23 -0700)]
Update from Gnulib

This incorporates:
2019-10-11 Simplify and regularize regex use of ‘assert’
2019-10-09 regex: omit debug assignment when not debugging
2019-10-09 regex: tell compiler there’s at most 256 arcs out
2019-10-09 regex: simplify by assuming C99
2019-10-09 regex: avoid copying of uninitialized storage
2019-09-29 fbufmode: Fix compilation error on glibc >= 2.28 systems
2019-09-28 Update comments that refer to POSIX
2019-09-23 Update URLs and associated text
* doc/misc/texinfo.tex, lib/open.c, lib/regcomp.c:
* lib/regex_internal.c, lib/regex_internal.h, lib/regexec.c:
* lib/stdio-impl.h:
Copy from Gnulib.

5 years agoDocument REAL-BINDING more extensively in Extended Menu Items
Lars Ingebrigtsen [Fri, 11 Oct 2019 20:28:27 +0000 (22:28 +0200)]
Document REAL-BINDING more extensively in Extended Menu Items

* doc/lispref/keymaps.texi (Extended Menu Items): Document that
REAL-BINDING can be other things than a real command (bug#7755).

5 years agoMinor grep.el doc string clarifications
Lars Ingebrigtsen [Fri, 11 Oct 2019 20:13:43 +0000 (22:13 +0200)]
Minor grep.el doc string clarifications

* lisp/progmodes/grep.el (grep-find-ignored-directories)
(grep-compute-defaults, grep, grep-expand-template)
(grep-highlight-matches, grep-use-null-device)
(grep-find-command, grep-find-template, grep-expand-template)
(rgrep): Minor doc string clarifications.

5 years agoFactor out the lambda from help-function-def
Lars Ingebrigtsen [Fri, 11 Oct 2019 19:58:26 +0000 (21:58 +0200)]
Factor out the lambda from help-function-def

* lisp/help-mode.el (help-function-def--button-function): Factor
out into own function for easier reuse.
(help-function-def): ... from the lambda here.

5 years agoMake << shell heredoc expansion less enthusiastic
Lars Ingebrigtsen [Fri, 11 Oct 2019 19:36:32 +0000 (21:36 +0200)]
Make << shell heredoc expansion less enthusiastic

* lisp/progmodes/sh-script.el (sh--maybe-here-document): Require a
space before expanding a heredoc (bug#3226).  This allows the user
to insert a bash <<< "herestring", which was previously difficult.

5 years agoC++ Mode: Correctly handle <:, <::, <::>, etc, according to the C++ standard
Alan Mackenzie [Fri, 11 Oct 2019 19:10:11 +0000 (19:10 +0000)]
C++ Mode: Correctly handle <:, <::, <::>, etc, according to the C++ standard

* lisp/progmodes/cc-engine.el (c-before-change-check-<>-operators): Perform
checking now on an insertion, should point be inside a critical token.
(c-forward-<>-arglist-recur, c-guess-continued-construct): Check for <::, etc.

* lisp/progmodes/cc-langs.el (c-<-pseudo-digraph-cont-regexp)
(c-<-pseudo-digraph-cont-len): New lang variables/constants.

5 years ago* lisp/cedet/mode-local.el (define-overload): Declare obsolete
Stefan Monnier [Fri, 11 Oct 2019 17:54:30 +0000 (13:54 -0400)]
* lisp/cedet/mode-local.el (define-overload): Declare obsolete

* lisp/cedet/srecode/ctxt.el (srecode-calculate-context):
* lisp/cedet/srecode/semantic.el (srecode-semantic-apply-tag-to-dict)
(srecode-semantic-find-template): Use define-overloadable-function instead.

5 years ago* lisp/emacs-lisp/map.el (map-into) <hash-table>: Allow keyword args
Andrea Corallo [Fri, 11 Oct 2019 16:18:21 +0000 (12:18 -0400)]
* lisp/emacs-lisp/map.el (map-into) <hash-table>: Allow keyword args

(map--into-hash): New function, extracted from `map-into <hash-table>`.
Speed it up a bit by using gethash instead of map-elt when we know
we're accessing a hash table.

* test/lisp/emacs-lisp/map-tests.el (test-map-into): Add corresponding test.

5 years agoRemove reference to obsolete package gnuserv from FAQ
Stefan Kangas [Fri, 11 Oct 2019 13:59:42 +0000 (15:59 +0200)]
Remove reference to obsolete package gnuserv from FAQ

On visiting http://meltin.net/hacks/emacs/, we now find:
"I used to have some Emacs and Haskell hacks on my previous
sites. However, these hacks are now old and un-maintained. I don’t
think there is enough interest to keep them around."

* doc/misc/efaq.texi (Using an already running Emacs process):
Remove reference to obsolete package 'gnuserv'.  (Bug#37574)

5 years agoCorrect some more custom type specs
Robert Pluim [Wed, 9 Oct 2019 13:28:47 +0000 (15:28 +0200)]
Correct some more custom type specs

* lisp/winner.el (winner-boring-buffers-regexp):
* lisp/progmodes/js.el (js-jsx-indent-level):
* lisp/image-dired.el (image-dired-external-viewer):
* lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function):
Correct custom type specification.

* lisp/textmodes/bibtex.el (bibtex-string-file-path):
(bibtex-file-path): Correct custom type specification and document
source of initial value.

5 years agoCleanup Tramp
Michael Albinus [Fri, 11 Oct 2019 11:50:34 +0000 (13:50 +0200)]
Cleanup Tramp

* lisp/net/tramp-archive.el (tramp-archive-gvfs-host): Fix docstring.

* lisp/net/tramp.el: Remove :group from all defcustoms.
(tramp-encoding-shell): Fix docstring.
(tramp-error): Remove text properties from error message.

5 years agoSupport showing directory in shell command prompt
Stefan Kangas [Fri, 11 Oct 2019 11:01:13 +0000 (13:01 +0200)]
Support showing directory in shell command prompt

* lisp/simple.el (shell-command-prompt-show-cwd): New defcustom.
(async-shell-command, shell-command): Show current directory in prompt
when above option is non-nil.  (Bug#4987)
* etc/NEWS: Announce it.

5 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Martin Rudalics [Fri, 11 Oct 2019 07:27:55 +0000 (09:27 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

5 years agoMinor fixes for switching to previous and next buffers (Bug#37514)
Martin Rudalics [Fri, 11 Oct 2019 07:26:41 +0000 (09:26 +0200)]
Minor fixes for switching to previous and next buffers (Bug#37514)

* lisp/window.el (switch-to-prev-buffer)
(switch-to-next-buffer): In doc-strings add links to
'prev-buffer' and 'next-buffer'.
(next-buffer, previous-buffer): Signal 'user-error' instead of
'error'.  In doc-strings link to 'switch-to-prev-buffer' and
'switch-to-next-buffer'.

5 years agoNew variable amalgamating-undo-limit
Lars Ingebrigtsen [Fri, 11 Oct 2019 07:24:26 +0000 (09:24 +0200)]
New variable amalgamating-undo-limit

* doc/lispref/text.texi (Undo): Document it.

* lisp/simple.el (amalgamating-undo-limit): New variable (bug#31658).

5 years agoCorrect .dir-locals-2.el description
Robert Pluim [Thu, 10 Oct 2019 06:24:48 +0000 (08:24 +0200)]
Correct .dir-locals-2.el description

* doc/lispref/variables.texi (Directory Local Variables): Correct
description of .dir-locals-2.el functioning.  (Bug#37640)