]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years ago* test/src/editfns-tests.el (test-group-name): Small fix.
Glenn Morris [Sat, 10 Nov 2018 18:37:47 +0000 (10:37 -0800)]
* test/src/editfns-tests.el (test-group-name): Small fix.

Do not assume user 1000 has group name = user name.

6 years agoDissociate controlling tty better on Darwin
Paul Eggert [Sat, 10 Nov 2018 17:00:43 +0000 (09:00 -0800)]
Dissociate controlling tty better on Darwin

* src/process.c (dissociate_controlling_tty): New function.
(create_process): Use it to dissociate controlling tty if setsid
fails, which happens on Darwin after a vfork (Bug#33154).
Do this on all platforms, not just on Darwin, as a similar
problem is plausible elsewhere.
* src/callproc.c (call_process): Use the new function here, too,
for consistency and to avoid duplicate code.

6 years agoProvide branch information for both Emacs and Tramp (Bug#33328)
Michael Albinus [Sat, 10 Nov 2018 15:03:12 +0000 (16:03 +0100)]
Provide branch information for both Emacs and Tramp (Bug#33328)

* doc/lispref/intro.texi (Version Info):
Document `emacs-repository-version' and `emacs-repository-branch'.

* etc/NEWS: Mention `emacs-repository-branch'.

* lisp/loadup.el: Initialize `emacs-repository-branch'.

* lisp/version.el (emacs-repository-branch): New variable.
(emacs-repository-branch-git, emacs-repository-get-branch):
New defuns.

* lisp/mail/emacsbug.el (report-emacs-bug):
Insert `emacs-repository-branch'.

* lisp/net/tramp.el (tramp-get-local-gid):
Use `group-name' if available.
(tramp-debug-message):
* lisp/net/tramp-cmds.el (tramp-bug): Report also
`tramp-repository-branch' and `tramp-repository-version'.

* lisp/net/trampver.el (tramp-repository-branch)
(tramp-repository-version): New defconst.
(tramp-repository-get-version): Remove.

6 years ago* lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available.
Michael Albinus [Sat, 10 Nov 2018 14:55:23 +0000 (15:55 +0100)]
* lisp/net/tramp.el (tramp-get-local-gid): Use `group-name' if available.

6 years agoAdd setter for 'xref-marker-ring-length'
Allen Li [Thu, 25 Oct 2018 02:48:15 +0000 (20:48 -0600)]
Add setter for 'xref-marker-ring-length'

* lisp/progmodes/xref.el (xref-marker-ring-length): Add setter.
* etc/NEWS: Document last change.  (Bug#32849)

6 years agoAdd 'ring-resize' function
Allen Li [Thu, 25 Oct 2018 02:44:01 +0000 (20:44 -0600)]
Add 'ring-resize' function

* lisp/emacs-lisp/ring.el (ring-resize): New function.  (Bug#32849)
* doc/lispref/sequences.texi (Rings): Document new function 'ring-resize'.
* etc/NEWS: Document new function 'ring-resize'.
* test/lisp/emacs-lisp/ring-tests.el (ring-test-ring-resize): New tests.

6 years agoFix last commit
Eli Zaretskii [Sat, 10 Nov 2018 09:32:14 +0000 (11:32 +0200)]
Fix last commit

* doc/lispref/os.texi (User Identification): Fix function name
of 'group-name'.

6 years agoFix last change
Eli Zaretskii [Sat, 10 Nov 2018 09:16:17 +0000 (11:16 +0200)]
Fix last change

* src/editfns.c (Fgroup_name): Fix the doc string.  Move
closer to the "group" functions.
* src/w32.c (getgrgid): Return NULL if GID is not the group ID
of the user of this Emacs session

* test/src/editfns-tests.el (test-group-name): Rename from
'group-name'.  Add tests for non-Posix hosts.  Test error when
the argument to group-name is invalid.

* etc/NEWS: Fix wording of last added entry.

6 years agosrc/editfns.c (group-name): New function.
Jules Tamagnan [Tue, 30 Oct 2018 17:22:03 +0000 (10:22 -0700)]
src/editfns.c (group-name): New function.

6 years agoImprove doc strings generated by 'easy-mmode-define-navigation'
Eli Zaretskii [Fri, 9 Nov 2018 09:22:46 +0000 (11:22 +0200)]
Improve doc strings generated by 'easy-mmode-define-navigation'

* lisp/emacs-lisp/easy-mmode.el
(easy-mmode-define-navigation): Include the documentation of
prefix argument in the generated doc string.

6 years agoAdd functions to open a bookmark in another frame
Pierre-Yves Luyten [Sat, 13 Oct 2018 20:06:41 +0000 (22:06 +0200)]
Add functions to open a bookmark in another frame

* lisp/bookmark.el (bookmark-jump-other-frame): New function.
Bind in bookmark-map.
(bookmark-bmenu-other-frame): New function.
Bind in bookmark-bmenu-mode-map.

Patch applied by Karl Fogel.

6 years ago* lisp/windmove.el (windmove-create-window): New defcustom (bug#32790).
Juri Linkov [Thu, 8 Nov 2018 21:27:49 +0000 (23:27 +0200)]
* lisp/windmove.el (windmove-create-window): New defcustom (bug#32790).

(windmove-do-window-select): Use it.

6 years ago* doc/misc/tramp.texi (Password handling): Explain Ange FTP case.
Michael Albinus [Thu, 8 Nov 2018 11:48:54 +0000 (12:48 +0100)]
* doc/misc/tramp.texi (Password handling): Explain Ange FTP case.

6 years agoGet rid of own netrc parsing implementation in Tramp
Michael Albinus [Thu, 8 Nov 2018 11:21:48 +0000 (12:21 +0100)]
Get rid of own netrc parsing implementation in Tramp

* lisp/net/tramp.el (tramp-parse-netrc): Reimplement, using
`netrc-parse'.
(tramp-parse-netrc-group): Remove.

6 years agoSupport VC single file operations from Dired (bug#32596).
Juri Linkov [Wed, 7 Nov 2018 22:52:50 +0000 (00:52 +0200)]
Support VC single file operations from Dired (bug#32596).

* lisp/vc/vc.el (vc-ensure-vc-buffer): Use dired-get-filename for dired-mode.
Move error-checking outside of the last branch of cond.
(vc-dired-deduce-fileset): Remove unused error signaling.

6 years ago* lisp/vc/log-view.el: Better error handling (bug#33295).
Juri Linkov [Wed, 7 Nov 2018 22:42:28 +0000 (00:42 +0200)]
* lisp/vc/log-view.el: Better error handling (bug#33295).

* lisp/vc/log-view.el (log-view-find-revision)
(log-view-annotate-version): Add condition to signal an error
when log-view-vc-fileset contains a directory.
Use user-error instead of error.

* lisp/dired.el (dired-get-file-for-visit):
* lisp/locate.el (locate-do-setup):
Use user-error instead of error.

6 years agoAdvertise new hi-lock 'M-s h' key prefix in lisp/bindings.el
Juri Linkov [Wed, 7 Nov 2018 22:33:05 +0000 (00:33 +0200)]
Advertise new hi-lock 'M-s h' key prefix in lisp/bindings.el

https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00104.html

6 years ago* lisp/files-x.el (modify-dir-local-variable): Use assoc-delete-all
Juri Linkov [Wed, 7 Nov 2018 22:27:58 +0000 (00:27 +0200)]
* lisp/files-x.el (modify-dir-local-variable): Use assoc-delete-all

instead of assq-delete-all for cases when mode is a subdirectory name.
(dir-locals-to-string): Call pp-to-string and string-trim-right
on values.  (Bug#32817)

6 years ago* lisp/window.el (window-state-put): Create a new window
Juri Linkov [Wed, 7 Nov 2018 22:20:16 +0000 (00:20 +0200)]
* lisp/window.el (window-state-put): Create a new window

to replace the existing one on the same frame in case
when WINDOW is not live.  (Bug#32850)

* doc/lispref/windows.texi (Window Configurations):
Describe changes related to WINDOW arg of window-state-put.

6 years ago* lisp/net/tramp.el (tramp-get-debug-buffer): Fix error in setting local map.
Michael Albinus [Wed, 7 Nov 2018 15:07:25 +0000 (16:07 +0100)]
* lisp/net/tramp.el (tramp-get-debug-buffer): Fix error in setting local map.

6 years agoHandle also port and domain in Tramp proxy definitions
Michael Albinus [Tue, 6 Nov 2018 14:48:05 +0000 (15:48 +0100)]
Handle also port and domain in Tramp proxy definitions

* doc/misc/tramp.texi (Multi-hops): Exclude ports and domains from
pattern expansion.

* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections):
Remove ad-hoc proxies.

* lisp/net/tramp-sh.el (tramp-compute-multi-hops): Handle also
port and domain in the proxy.  Propertize ad-hoc proxies.

* lisp/net/tramp.el (tramp-default-proxies-alist): Adapt docstring.

* test/lisp/net/tramp-tests.el (tramp-test02-file-name-dissect)
(tramp-test02-file-name-dissect-simplified)
(tramp-test02-file-name-dissect-separate): Extend tests.

6 years agoSupport lazy-highlight-buffer in Info (bug#29321, bug#29360).
Juri Linkov [Mon, 5 Nov 2018 21:11:30 +0000 (23:11 +0200)]
Support lazy-highlight-buffer in Info (bug#29321, bug#29360).

* lisp/isearch.el (isearch-lazy-highlight-point-min)
(isearch-lazy-highlight-point-max): New variables.
(isearch-lazy-highlight-new-loop): When lazy-highlight-buffer is
non-nil, compare (point-min) with isearch-lazy-highlight-point-min,
and (point-max) with isearch-lazy-highlight-point-max, for buffers
like Info where narrowing changes the values point-min and point-max.

6 years ago* lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename.
Juri Linkov [Mon, 5 Nov 2018 20:57:10 +0000 (22:57 +0200)]
* lisp/image-mode.el (image--imagemagick-wanted-p): Check for nil filename.

(Bug#33241)

6 years ago* src/xfaces.c (face_at_buffer_position): Adapt lookup_basic_face call.
Glenn Morris [Sun, 4 Nov 2018 17:45:59 +0000 (09:45 -0800)]
* src/xfaces.c (face_at_buffer_position): Adapt lookup_basic_face call.

6 years agoMerge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26

6937c35 (origin/emacs-26) Improve recent changes in documentation of ...
c04b48c Rewrite documentation of buffer display
7cadb32 ; * doc/lispref/control.texi (pcase Macro): Fix another typo.
963f1d9 ; * doc/lispref/control.texi (pcase Macro): Fix a typo.
e824c91 Improve documentation of destructuring-binding macros

6 years ago; Merge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

74bc0e1 Avoid byte compilation warning in rcirc.el

6 years agoMerge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26

bd1d617 Avoid race in rcirc process filter (bug#33145)
88ef31a Avoid file-name errors when viewing PDF from Gnus
c939042 Avoid crashes with remapped default face in Org mode
97660fa Doc fix for checkdoc-continue
96f055b Fix a typo in autoload.el

6 years ago; Merge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
; Merge from origin/emacs-26

The following commit was skipped:

d53a2b6 ; Auto-commit of loaddefs files.

6 years agoMerge from origin/emacs-26
Glenn Morris [Sun, 4 Nov 2018 17:37:03 +0000 (09:37 -0800)]
Merge from origin/emacs-26

9962cf9 * doc/lispref/control.texi (Destructuring patterns): New subs...

6 years agoImprove recent changes in documentation of window handling
Eli Zaretskii [Sun, 4 Nov 2018 17:08:00 +0000 (19:08 +0200)]
Improve recent changes in documentation of window handling

* doc/lispref/windows.texi (Displaying Buffers)
(Choosing Window, Buffer Display Action Functions)
(Buffer Display Action Alists, Choosing Window Options)
(Precedence of Action Functions, The Zen of Buffer Display):
Fix wording, punctuation, and markup.  Remove redundant
cross-references.

* doc/emacs/windows.texi (Window Choice, Temporary Displays):
Fix wording and punctuation.

6 years agoA further fix for locally remapped fringe face
Eli Zaretskii [Sun, 4 Nov 2018 14:01:09 +0000 (16:01 +0200)]
A further fix for locally remapped fringe face

* src/xdisp.c (expose_window): Temporarily switch to the
window's buffer, in case the fringe face was remapped locally
in that buffer.  (Bug#33244)

6 years agoFix Bug#33194
Michael Albinus [Sun, 4 Nov 2018 11:51:39 +0000 (12:51 +0100)]
Fix Bug#33194

* lisp/autorevert.el (auto-revert-notify-add-watch):
Handle buffers with same descriptor properly.
(auto-revert-notify-handler): Handle all buffers with same
descriptor.  (Bug#33194)

* lisp/filenotify.el (file-notify-callback): Simplify.

6 years agoRewrite documentation of buffer display
Martin Rudalics [Sun, 4 Nov 2018 08:15:13 +0000 (09:15 +0100)]
Rewrite documentation of buffer display

* doc/emacs/windows.texi (Window Choice): Rewrite, replacing
references to older buffer display options with references to
and examples of buffer display actions.
(Temporary Displays): Rewrite display of *Completions*
example.

* doc/lispref/elisp.texi (Top): New Windows section
'Displaying Buffers'.
* doc/lispref/frames.texi (Child Frames): Adjust cross
reference.
* doc/lispref/windows.texi (Windows): New section 'Displaying
Buffers'.  Move sections 'Choosing Window', 'Display Action
Functions' and 'Choosing Window Options' there and adjust
namings.  Preferably write 'Buffer Display Action' instead of
'Display Action'.  More consistently use @w{} to make key
binding specifications unsplittable.
(Displaying Buffers): New section.
(Choosing Window): Make it a subsection of 'Displaying
Buffers'.  More explicitly describe how 'display-buffer'
compiles its list of action functions and the action alist.
(Buffer Display Action Functions): Rename from 'Display Action
Functions', make it a subsection of 'Displaying Buffers' and
rewrite it.  Elide more detailed descriptions of action alist
entries; these are now in the new section 'Buffer Display
Action Functions'.  Remove example.
(Buffer Display Action Alists): New subsection of 'Displaying
Buffers' giving a comprehensive description of recognized
action alist entries with appropriate indexing.  Contents were
partially moved here from the old 'Display Action Functions'
section.
(Choosing Window Options): Make it a subsection of 'Displaying
Buffers'.  Add examples of how to rewrite old buffer display
options with the help of buffer display actions.
(Precedence of Action Functions): New subsection of
'Displaying Buffers' explaining the execution order of action
functions with the help of a detailed example.
(The Zen of Buffer Display): New subsection of 'Displaying
Buffers' supplying guidelines on how to write and use buffer
display actions with examples.
(Side Windows, Displaying Buffers in Side Windows)
(Frame Layouts with Side Windows, Atomic Windows): Update
references to the 'Displaying Buffers' subsections.

6 years agoImprove time error reporting
Paul Eggert [Sat, 3 Nov 2018 20:11:26 +0000 (13:11 -0700)]
Improve time error reporting

* src/timefns.c (emacs_mktime_z): Remove; no longer needed.
(time_error): New function, replacing invalid_time.
All callers changed.
(decode_float_time, decode_ticks_hz, decode_time_components):
Return an error number instead of merely a boolean.
All callers changed.
(decode_lisp_time): Signal an error based on the error number,
instead of merely returning a boolean to the caller.
All callers changed.
(format_time_string, Fdecode_time, Fencode_time)
(Fcurrent_time_string):
Do not assume that a failure of a system time function
must be due to time overflow.
(Fencode_time): Don't report an error merely because mktime
returned ((time_t) -1), as that may be a valid time_t value.
Use a simpler error check.  See:
https://www.sourceware.org/ml/libc-alpha/2018-11/msg00062.html

6 years ago; * doc/lispref/control.texi (pcase Macro): Fix another typo.
Eli Zaretskii [Sat, 3 Nov 2018 17:37:54 +0000 (19:37 +0200)]
; * doc/lispref/control.texi (pcase Macro): Fix another typo.

6 years ago; * doc/lispref/control.texi (pcase Macro): Fix a typo.
Eli Zaretskii [Sat, 3 Nov 2018 16:11:29 +0000 (18:11 +0200)]
; * doc/lispref/control.texi (pcase Macro): Fix a typo.

6 years agoImprove documentation of destructuring-binding macros
Eli Zaretskii [Sat, 3 Nov 2018 13:11:33 +0000 (15:11 +0200)]
Improve documentation of destructuring-binding macros

* lisp/emacs-lisp/pcase.el (pcase-dolist, pcase-let)
(pcase-let*): Improve the doc strings.

* doc/lispref/sequences.texi (Sequence Functions): Improve
wording and rename arguments of seq-let to be more
descriptive.  Add a cross-reference to "Destructuring with
pcase Patterns".
* doc/lispref/control.texi (Pattern-Matching Conditional):
Improve wording and the menu.
(pcase Macro): Incorporate patch suggested by Paul Eggert
<eggert@cs.ucla.edu>.  Reformat text.
(Destructuring with pcase Patterns): Rename from
"Destructuring patterns", and improve wording and indexing.

6 years agoAllow the fringe face to be remapped locally in a buffer
Eli Zaretskii [Sat, 3 Nov 2018 10:39:59 +0000 (12:39 +0200)]
Allow the fringe face to be remapped locally in a buffer

* src/fringe.c (draw_window_fringes): Switch to window's
buffer to get the local value of face-remapping-alist, if
necessary.  (Bug#33244)
* src/xfaces.c (syms_of_xfaces) <Qface_remapping_alist>: New
DEFSYM.

6 years agoAdd URL truncation support to rcirc (bug#33043)
David Edmondson [Sun, 28 Oct 2018 03:11:21 +0000 (03:11 +0000)]
Add URL truncation support to rcirc (bug#33043)

Suggested by David Edmondson <dme@dme.org>.
* lisp/net/rcirc.el (rcirc-url-max-length): New user option
controlling extent of URL truncation, defaulting to none.
(rcirc-markup-urls): Use it.
* etc/NEWS: Announce it.

6 years ago; * etc/NEWS: Fix last change. (Bug#33188)
Eli Zaretskii [Sat, 3 Nov 2018 09:01:44 +0000 (11:01 +0200)]
; * etc/NEWS: Fix last change.  (Bug#33188)

6 years ago'minor-mode-menu-from-indicator' now display full minor mode.
Pierre Téchoueyres [Wed, 10 Oct 2018 18:08:05 +0000 (20:08 +0200)]
'minor-mode-menu-from-indicator' now display full minor mode.

When there is no menu for a mode, display the mode name after the
indicator instead of just the indicator (which is sometime cryptic).
Ex:
before : SP
now    : SP - Smartparens Mode

* etc/NEWS: Add en entry for this new feature.
* lisp/mouse.el (minor-mode-menu-from-indicator): Append the mode name
  after the indicator when there is no menu defined by the mode.

6 years agoAvoid byte compilation warning in rcirc.el
Eli Zaretskii [Sat, 3 Nov 2018 08:49:51 +0000 (10:49 +0200)]
Avoid byte compilation warning in rcirc.el

* lisp/net/rcirc.el (rcirc-prompt-start-marker): Move
definition before 1st use to avoild byte-compiler warning.

6 years agoAvoid race in rcirc process filter (bug#33145)
Basil L. Contovounesios [Thu, 25 Oct 2018 02:35:57 +0000 (03:35 +0100)]
Avoid race in rcirc process filter (bug#33145)

* lisp/net/rcirc.el (rcirc-filter): Clear rcirc-process-output
before processing its constituent lines.  Otherwise, if rcirc-filter
runs again before the last rcirc-process-server-response is
finished, the contents of rcirc-process-output could be duplicated.

6 years ago; * etc/NEWS: Announce feature introduced in last change.
Eli Zaretskii [Sat, 3 Nov 2018 08:42:22 +0000 (10:42 +0200)]
; * etc/NEWS: Announce feature introduced in last change.

6 years agoAllow use of Gnus search groups as notmuch path: search term
Eric Abrahamsen [Tue, 23 Oct 2018 02:51:37 +0000 (10:51 +0800)]
Allow use of Gnus search groups as notmuch path: search term

* lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function): New
option governing whether and how to use Gnus' search groups as path:
search terms to notmuch.
(nnir-run-notmuch): Check and possibly use above variable.
(Bug#33122)

6 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 3 Nov 2018 08:37:01 +0000 (10:37 +0200)]
; * etc/NEWS: Fix last change.

6 years agoFix interaction between vc-hg find-file-hook and vc state caching
Daniel Pittman [Tue, 23 Oct 2018 15:24:04 +0000 (11:24 -0400)]
Fix interaction between vc-hg find-file-hook and vc state caching

Bad assumptions in the `vc-hg-find-file-hook' prevented it from
working. This correctly them.  (Bug#33129).

2018-10-23  Daniel Pittman  <slippycheeze@google.com>

* lisp/vc/vc-hg.el (vc-hg-find-file-hook): This function made two
assumptions about conflicted files that were not accurate,
preventing conflicts in files ever being detected.

The first was that the `vc-state' was cache by the time this was
invoked, which it is not - at least when visiting the file, or
using `vc-refresh-state'.

The second was that a file with the ".orig" extension would be
present, next to the file being visited.  This is the default
behavior of Mercurial, but can be overridden by the user.

Since the VC mode-line code will shortly calculate the state for
display, the optimization of testing for the ".orig" file only
delayed this work by a few moments.

6 years agoAvoid file-name errors when viewing PDF from Gnus
Jordan Wilson [Wed, 10 Oct 2018 10:45:57 +0000 (11:45 +0100)]
Avoid file-name errors when viewing PDF from Gnus

* lisp/doc-view.el (doc-view-mode): Run the output file name
through 'convert-standard-filename', to avoid problems with
characters that are not allowed in file names on some
systems.  (Bug#32989)

Copyright-paperwork-exempt: yes

6 years ago* lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Allow empty rules
Stefan Monnier [Fri, 2 Nov 2018 21:47:11 +0000 (17:47 -0400)]
* lisp/emacs-lisp/syntax.el (syntax-propertize-rules): Allow empty rules

6 years ago* lisp/help-fns.el (describe-symbol): Use help--symbol-completion-table
Stefan Monnier [Fri, 2 Nov 2018 20:14:49 +0000 (16:14 -0400)]
* lisp/help-fns.el (describe-symbol): Use help--symbol-completion-table

6 years ago* src/data.c (Ffset): Don't signal gratuitous errors
Stefan Monnier [Fri, 2 Nov 2018 19:00:34 +0000 (15:00 -0400)]
* src/data.c (Ffset): Don't signal gratuitous errors

6 years agoObsolete gnus-correct-length in favor of string-width
Eric Abrahamsen [Thu, 1 Nov 2018 23:50:17 +0000 (16:50 -0700)]
Obsolete gnus-correct-length in favor of string-width

* lisp/gnus/gnus-spec.el: Define an obsolete alias.

6 years ago* lisp/progmodes/ruby-mode.el: Cosmetic changes
Stefan Monnier [Fri, 2 Nov 2018 16:07:12 +0000 (12:07 -0400)]
* lisp/progmodes/ruby-mode.el: Cosmetic changes

Remove redundant :groups.
(ruby-font-lock-syntax-table): Delete var.
(ruby-mode): Use font-lock-default's syntax-alist instead.

6 years agoAvoid crashes with remapped default face in Org mode
Eli Zaretskii [Fri, 2 Nov 2018 10:07:47 +0000 (12:07 +0200)]
Avoid crashes with remapped default face in Org mode

* src/xfaces.c (face_at_buffer_position): Look up BASE_FACE_ID
anew if it is not in the frame's face cache.  This avoids
crashes when Org mode sets up for a new major mode in embedded
code fragment, and the default face is remapped.  (Bug#33222)

6 years agoDoc fix for checkdoc-continue
Eric Abrahamsen [Thu, 1 Nov 2018 20:21:27 +0000 (13:21 -0700)]
Doc fix for checkdoc-continue

* lisp/emacs-lisp/checkdoc.el (checkdoc-continue): There is no second
  optional argument, and the function always starts from point.

6 years agoFix a typo in autoload.el
Eli Zaretskii [Thu, 1 Nov 2018 18:56:31 +0000 (20:56 +0200)]
Fix a typo in autoload.el

* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Remove stray backslashes.  (Bug#33231)

6 years ago* lisp/progmodes/cc-mode.el: Silence compiler warnings
Stefan Monnier [Thu, 1 Nov 2018 13:00:42 +0000 (09:00 -0400)]
* lisp/progmodes/cc-mode.el: Silence compiler warnings

(c-parse-quotes-before-change, c-parse-quotes-after-change):
Flag unused args according to convention.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Nov 2018 11:24:23 +0000 (07:24 -0400)]
; Auto-commit of loaddefs files.

6 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Nov 2018 10:24:27 +0000 (06:24 -0400)]
; Auto-commit of loaddefs files.

6 years ago* doc/lispref/control.texi (Destructuring patterns): New subsection.
Stefan Monnier [Wed, 31 Oct 2018 19:34:45 +0000 (15:34 -0400)]
* doc/lispref/control.texi (Destructuring patterns): New subsection.

6 years agoRemote file name completion is also performed by auth-sources search
Michael Albinus [Wed, 31 Oct 2018 19:04:04 +0000 (20:04 +0100)]
Remote file name completion is also performed by auth-sources search

* doc/misc/tramp.texi (File name completion): User and host name
completion is also performed by auth-sources search.

* etc/NEWS: Document remote file name completion using auth-sources.

* lisp/net/tramp.el (tramp-completion-use-auth-sources):
New user option.
(tramp-parse-auth-sources): New defun.
(tramp-get-completion-function): Call it.

6 years ago; Merge from origin/emacs-26
Glenn Morris [Wed, 31 Oct 2018 14:50:58 +0000 (07:50 -0700)]
; Merge from origin/emacs-26

The following commits were skipped:

c3cf85b (origin/emacs-26) Add regression test for Bug#33014
1ad2903 Refer to bytecode constant vectors (Bug#33014)

6 years agoMerge from origin/emacs-26
Glenn Morris [Wed, 31 Oct 2018 14:50:57 +0000 (07:50 -0700)]
Merge from origin/emacs-26

eb903d8 * lisp/emacs-lisp/pcase.el: Improve docstrings.
86abbb3 * lisp/emacs-lisp/rx.el (rx): Fix typo in doc string.  (Bug#3...
ced58d3 Improve doc string of 'call-process'
38f88a7 Document that generic functions cannot be commands
5aeddfa * lisp/mail/rmailsum.el (rmail-summary-output): Add lost word...
10e0fd8 Add index entries for more isearch commands/bindings (Bug#32990)
de28184 * lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#...
d192c16 Fix recent change in lispref/processes.texi.

6 years ago* lisp/emacs-lisp/cl-generic.el: Clarify we can't define commands
Stefan Monnier [Wed, 31 Oct 2018 14:16:02 +0000 (10:16 -0400)]
* lisp/emacs-lisp/cl-generic.el: Clarify we can't define commands

(cl--generic-lambda): Warn about the presence of interactive specs.

6 years agoAdd regression test for Bug#33014
Gemini Lasswell [Wed, 31 Oct 2018 04:15:51 +0000 (21:15 -0700)]
Add regression test for Bug#33014

Backport from master.
* test/src/eval-tests.el:
(eval-tests-byte-code-being-evaluated-is-protected-from-gc): New test.
(eval-tests-33014-var): New variable.
(eval-tests-33014-func, eval-tests-33014-redefine): New functions.

6 years agoRefer to bytecode constant vectors (Bug#33014)
Paul Eggert [Wed, 31 Oct 2018 04:14:10 +0000 (21:14 -0700)]
Refer to bytecode constant vectors (Bug#33014)

Backport from master.
* src/bytecode.c (exec_byte_code): Save VECTOR into stack slot
so that it survives GC.  The stack slot was otherwise unused,
so this doesn’t cost us memory, only a store insn.

6 years agoImprove fix for Bug#33014
Paul Eggert [Wed, 31 Oct 2018 03:57:46 +0000 (20:57 -0700)]
Improve fix for Bug#33014

Although the previously-applied fix worked for its platform,
it doesn’t suffice in general.
* src/bytecode.c (exec_byte_code): Save VECTOR into stack slot
so that it survives GC.  The stack slot was otherwise unused,
so this doesn’t cost us memory, only a store insn.
* src/eval.c (Ffuncall): Do not make FUN volatile, reverting
2018-10-14T19:12:04Z!gazally@runbox.com.  Adding ‘volatile’
does not suffice, since storage for a volatile local can be
reclaimed after its last access (e.g., by tail recursion
elimination), which would make VECTOR invisible to GC.

6 years ago* lisp/emacs-lisp/pcase.el: Improve docstrings.
Stefan Monnier [Tue, 30 Oct 2018 18:24:31 +0000 (14:24 -0400)]
* lisp/emacs-lisp/pcase.el: Improve docstrings.

6 years ago* lisp/emacs-lisp/rx.el (rx): Fix typo in doc string. (Bug#33205)
Eli Zaretskii [Tue, 30 Oct 2018 17:25:14 +0000 (19:25 +0200)]
* lisp/emacs-lisp/rx.el (rx): Fix typo in doc string.  (Bug#33205)

6 years ago* admin/bzrmerge.el: Remove file, long since replaced by gitmerge.el.
Glenn Morris [Tue, 30 Oct 2018 15:58:05 +0000 (08:58 -0700)]
* admin/bzrmerge.el: Remove file, long since replaced by gitmerge.el.

6 years agoDon't quote self-quoting pcase patterns
Michael Heerdegen [Fri, 26 Oct 2018 23:48:35 +0000 (01:48 +0200)]
Don't quote self-quoting pcase patterns

* admin/bzrmerge.el:
* lisp/char-fold.el:
* lisp/dired.el:
* lisp/emacs-lisp/derived.el:
* lisp/emacs-lisp/easy-mmode.el:
* lisp/emacs-lisp/easymenu.el:
* lisp/emacs-lisp/eieio-core.el:
* lisp/emacs-lisp/package.el:
* lisp/emacs-lisp/smie.el:
* lisp/faces.el:
* lisp/filesets.el:
* lisp/progmodes/modula2.el:
* lisp/progmodes/octave.el:
* lisp/progmodes/opascal.el:
* lisp/progmodes/perl-mode.el:
* lisp/progmodes/prolog.el:
* lisp/progmodes/ruby-mode.el:
* lisp/progmodes/sh-script.el:
* lisp/server.el:
* lisp/subr.el:
* lisp/textmodes/css-mode.el:
* test/lisp/emacs-lisp/pcase-tests.el: Don't quote self-quoting
'pcase' patterns.

6 years agoFix C++ Mode dynamic error with string delimiters.
Alan Mackenzie [Tue, 30 Oct 2018 11:43:13 +0000 (11:43 +0000)]
Fix C++ Mode dynamic error with string delimiters.

Fixes bug #33163

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings):
Use the correct variable `end' in place of the wrong `c-new-END'.
(c-after-change-re-mark-unbalanced-strings): Correct a logic error whilst
skipping over comments.

6 years agoImprove doc string of 'call-process'
Eli Zaretskii [Tue, 30 Oct 2018 11:08:28 +0000 (13:08 +0200)]
Improve doc string of 'call-process'

* src/callproc.c (Fcall_process): Clarify DESTINATION in the
doc string.

6 years agoDocument that generic functions cannot be commands
Eli Zaretskii [Tue, 30 Oct 2018 10:14:19 +0000 (12:14 +0200)]
Document that generic functions cannot be commands

* doc/lispref/commands.texi (Defining Commands):
* doc/lispref/functions.texi (Generic Functions): Document
that generic functions cannot be turned into commands.
(Bug#33170)

6 years ago* configure.ac (emacs_config_features): Add notify backends.
Glenn Morris [Tue, 30 Oct 2018 00:50:14 +0000 (20:50 -0400)]
* configure.ac (emacs_config_features): Add notify backends.

6 years ago* lisp/window.el (window--state-get-1): Check buffer-live-p in next-buffers
Juri Linkov [Mon, 29 Oct 2018 22:57:09 +0000 (00:57 +0200)]
* lisp/window.el (window--state-get-1): Check buffer-live-p in next-buffers

and prev-buffers.  (Bug#32850)

6 years agoKeep a stack reference to bytecode objects being executed (Bug#33014)
Gemini Lasswell [Sun, 14 Oct 2018 19:12:04 +0000 (12:12 -0700)]
Keep a stack reference to bytecode objects being executed (Bug#33014)

* src/eval.c (Ffuncall): Make local variable 'fun' volatile.
* test/src/eval-tests.el
(eval-tests-byte-code-being-evaluated-is-protected-from-gc):
Add regression test for Bug#33014.
(eval-tests-33014-var): New variable.
(eval-tests-33014-func, eval-tests-33014-redefine): New functions.

6 years agoFix Bug#33006
Michael Albinus [Mon, 29 Oct 2018 13:09:52 +0000 (14:09 +0100)]
Fix Bug#33006

* lisp/cedet/semantic/symref/grep.el (semantic-symref-perform-search):
* lisp/progmodes/xref.el (xref-collect-matches)
(xref--collect-matches): Handle remote files.  (Bug#33006)

6 years agoFix Flymake's diagnostic count with custom error types
João Távora [Mon, 29 Oct 2018 11:41:04 +0000 (11:41 +0000)]
Fix Flymake's diagnostic count with custom error types

Fixes: bug#33187
* lisp/progmodes/flymake.el (flymake--mode-line-format): Replace
cl-union with iterative cl-pushnew.

6 years ago* lisp/mail/rmailsum.el (rmail-summary-output): Add lost word to doc.
Charles A. Roelli [Sun, 28 Oct 2018 19:29:45 +0000 (20:29 +0100)]
* lisp/mail/rmailsum.el (rmail-summary-output): Add lost word to doc.

6 years agoAdd index entries for more isearch commands/bindings (Bug#32990)
Charles A. Roelli [Sun, 28 Oct 2018 17:07:01 +0000 (18:07 +0100)]
Add index entries for more isearch commands/bindings (Bug#32990)

* doc/emacs/search.texi (Basic Isearch): Index isearch-exit,
isearch-abort, isearch-cancel, isearch-repeat-forward,
isearch-repeat-backward and their bindings.
(Repeat Isearch): Index isearch-ring-advance,
isearch-ring-retreat and isearch-edit-string.
(Special Isearch): Index isearch-quote-char,
isearch-char-by-name and their bindings.  Index
isearch-query-replace and isearch-query-replace-regexp, and
the latter's binding.  Explain what
isearch-query-replace-regexp does.  Index isearch-complete.
(Word Search): Index isearch-toggle-word.

6 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sun, 28 Oct 2018 15:55:00 +0000 (17:55 +0200)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

6 years ago* lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#33179).
Noam Postavsky [Sat, 27 Oct 2018 19:27:45 +0000 (15:27 -0400)]
* lisp/simple.el (filter-buffer-substring): Clarify doc (Bug#33179).

6 years ago* lisp/isearch.el (lazy-highlight-buffer): New defcustom. (Bug#29360)
Juri Linkov [Sat, 27 Oct 2018 20:27:54 +0000 (23:27 +0300)]
* lisp/isearch.el (lazy-highlight-buffer): New defcustom.  (Bug#29360)

(lazy-highlight-buffer-max-at-a-time): New defcustom.
(isearch-lazy-highlight-buffer): New defvar.
(isearch-lazy-highlight-new-loop): Don't check changes in window
boundaries when lazy-highlight-buffer is non-nil.
Move code that extends start/end to match whole string at point
here from isearch-lazy-highlight-search.
(isearch-lazy-highlight-search): Add args string and bound
like in other search functions.  Move calculation of bound
to isearch-lazy-highlight-update.
(isearch-lazy-highlight-match): New function with code extracted from
isearch-lazy-highlight-update to be called also from
isearch-lazy-highlight-buffer-update.
(isearch-lazy-highlight-update): Reuse the values returned from
window-group-start and window-group-end.  At the end schedule the
timer to call isearch-lazy-highlight-buffer-update when
isearch-lazy-highlight-buffer is non-nil.
(isearch-lazy-highlight-buffer-update): New function.

6 years agoFix recent change in lispref/processes.texi.
Eli Zaretskii [Sat, 27 Oct 2018 18:47:59 +0000 (21:47 +0300)]
Fix recent change in lispref/processes.texi.

* doc/lispref/processes.texi (Asynchronous Processes): Clarify
wording.  Suggested by Thomas Fitzsimmons <fitzsim@fitzsim.org>.
(Bug#33050)

6 years agoMerge from origin/emacs-26
Glenn Morris [Sat, 27 Oct 2018 16:15:32 +0000 (09:15 -0700)]
Merge from origin/emacs-26

df64da8 (origin/emacs-26) * lisp/simple.el (region-extract-function):...
520c486 * lisp/simple.el (region-bounds): Doc fix.  (Bug#33168)
9193db0 Improve documentation of 'process-connection-type'
106b9e1 Unify prompt for gnupg passphrase between GNU/Linux and MS-Wi...
2a41616 Doc fix of 'gnus-fetch-old-headers'
29a7644 Deactivate incorrect hyperlinking in gnus-build-sparse-thread...
53ae90f Minor copyedits in cmdargs.texi
fc2e65a Improve documentation of X resource loading
13132b3 * lisp/net/tramp-sh.el (tramp-inline-compress-commands):
8361292 ; Fix sorting in admin/MAINTAINERS
92de44f Don't error when indenting malformed Lisp (Bug#30891)
c3adbc8 Improve 'isearch-delete-char' documentation (Bug#32990)
6ca71ce ; * lisp/help.el (with-help-window): Remove extra space in doc.
f5f9583 Improve XPM load failure message (bug#33126)
f3d01d4 Avoid infloop in CPerl mode fontification
71a2d50 Fix minibuffer-help-form for lexical binding
7e8eee6 Fix some NS drawing issues (bug#32932)
d72975a * lisp/gnus/mm-util.el (mm-decompress-buffer): Fix split-stri...
c97a5f1 * doc/misc/calc.texi (Summary): The +/- key is 'p', not 'P'.

# Conflicts:
# lisp/gnus/mm-util.el

6 years ago* lisp/simple.el (region-extract-function): Doc fix. (Bug#33167)
Eli Zaretskii [Sat, 27 Oct 2018 11:08:40 +0000 (14:08 +0300)]
* lisp/simple.el (region-extract-function): Doc fix.  (Bug#33167)

6 years ago* lisp/simple.el (region-bounds): Doc fix. (Bug#33168)
Eli Zaretskii [Sat, 27 Oct 2018 10:50:34 +0000 (13:50 +0300)]
* lisp/simple.el (region-bounds): Doc fix.  (Bug#33168)

6 years agoImprove documentation of 'process-connection-type'
Eli Zaretskii [Sat, 27 Oct 2018 10:18:33 +0000 (13:18 +0300)]
Improve documentation of 'process-connection-type'

* doc/lispref/processes.texi (Asynchronous Processes): Clarify
better when it is advisable to use pipes for communicating
with subprocesses.  (Bug#33050)

6 years agoUnify prompt for gnupg passphrase between GNU/Linux and MS-Windows.
Pierre Téchoueyres [Sun, 14 Oct 2018 15:49:12 +0000 (17:49 +0200)]
Unify prompt for gnupg passphrase between GNU/Linux and MS-Windows.

* lisp/epg.el (epg--start): Use 'raw-text' for coding system instead
of 'binary', in order to avoid spurious carriage return on Microsoft
Windows and MS-DOS when prompting for a password.  (Bug#33040)

6 years ago; * etc/NEWS: Fix last change.
Eli Zaretskii [Sat, 27 Oct 2018 09:23:21 +0000 (12:23 +0300)]
; * etc/NEWS: Fix last change.

6 years agoAdd support in emacsclient for EMACS_SOCKET_NAME
Daniel Pittman [Wed, 5 Sep 2018 13:44:58 +0000 (09:44 -0400)]
Add support in emacsclient for EMACS_SOCKET_NAME

If the '--socket-name' argument is unspecified, the environment
variable 'EMACS_SOCKET_NAME' is now consulted with the same
semantics.  This mirrors the behavior of the '--server-file' argument,
and allows for easier configuration of emacsclient when the socket is
in a location other than 'TMPDIR' or '/tmp'.

* emacsclient.c (set_socket): Add support for the
EMACS_SOCKET_NAME environment variable.  (Bug#33095)

* misc.texi (emacsclient Options):
* emacsclient.1: Document the EMACS_SOCKET_NAME environment
variable.

* etc/NEWS: Announce the new feature.

Copyright-paperwork-exempt: yes

6 years agoDoc fix of 'gnus-fetch-old-headers'
Eli Zaretskii [Sat, 27 Oct 2018 09:14:35 +0000 (12:14 +0300)]
Doc fix of 'gnus-fetch-old-headers'

* lisp/gnus/gnus-sum.el (gnus-fetch-old-headers): Avoid
treating 'some' and 'invisible' as symbols that need to be
hyperlinked.  Reported by Robert Pluim <rpluim@gmail.com>.
(Bug#33090)

6 years agoDeactivate incorrect hyperlinking in gnus-build-sparse-threads doc
Eric Abrahamsen [Thu, 18 Oct 2018 18:32:47 +0000 (11:32 -0700)]
Deactivate incorrect hyperlinking in gnus-build-sparse-threads doc

* lisp/gnus/gnus-sum.el (gnus-build-sparse-threads): Add the word
"symbol" so it doesn't link to the `some' function.  (Bug#33090)

6 years agoMinor copyedits in cmdargs.texi
Eli Zaretskii [Sat, 27 Oct 2018 08:40:33 +0000 (11:40 +0300)]
Minor copyedits in cmdargs.texi

* doc/emacs/cmdargs.texi (Initial Options): Document '-nsl'.
Add a cross-reference to "Writing Dynamic Modules".

6 years agoImprove documentation of X resource loading
Eli Zaretskii [Sat, 27 Oct 2018 08:24:53 +0000 (11:24 +0300)]
Improve documentation of X resource loading

* doc/emacs/cmdargs.texi (Initial Options):
* doc/emacs/frames.texi (Frame Parameters):
* doc/emacs/xresources.texi (Resources): Document the
'--no-x-resources' command-line option and the fact that X
resources override .emacs settings of frame parameters.
(Bug#32975)

6 years ago* lisp/net/tramp-sh.el (tramp-inline-compress-commands):
Michael Albinus [Sat, 27 Oct 2018 07:22:18 +0000 (09:22 +0200)]
* lisp/net/tramp-sh.el (tramp-inline-compress-commands):

Suppress warnings about obsolete environment variable GZIP.

6 years ago; Fix sorting in admin/MAINTAINERS
Michael Albinus [Sat, 27 Oct 2018 07:21:53 +0000 (09:21 +0200)]
; Fix sorting in admin/MAINTAINERS

6 years agoSubject: (mouse-drag-and-drop-region): Simplify and remove assumptions
Federico Tedin [Fri, 26 Oct 2018 17:16:50 +0000 (13:16 -0400)]
Subject: (mouse-drag-and-drop-region): Simplify and remove assumptions

* lisp/mouse.el (mouse-drag-and-drop-region): Use insert-for-yank for
insertion, remove rectangular-region-specific variables.
Use text-property-not-all.
* lisp/rect.el (rectangle-dimensions): New function.
(rectangle-position-as-coordinates): Use the usual 1-origin for lines.

6 years ago* lisp/files.el (abbreviate-file-name): Avoid save-match-data
Stefan Monnier [Fri, 26 Oct 2018 17:04:31 +0000 (13:04 -0400)]
* lisp/files.el (abbreviate-file-name): Avoid save-match-data

Also, don't assume homedir doesn't contain special regexp chars.
And prefer \` ... \' over ^ ... $.
(recover-file): Use user-error.