Commit graph

130975 commits

Author SHA1 Message Date
Eli Zaretskii
949b70a7d8 ; Minor comment copyedit in window.c
* src/window.c (Fset_window_configuration): Don't use non-ASCII
quotes in comments.
2017-11-07 21:57:56 +02:00
K. Handa
20f9bf30f0 Describe Lao rendering problem
* etc/PROBLEMS: Describe a workaround for the problem of Lao rendering
by OpenTyype font.
2017-11-07 20:53:32 +09:00
K. Handa
3d61657694 Fix docstring of arabic-shaper-ZWNJ-handling
* lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Adjusted
the doctstring for addition of :set (bug#28312).
2017-11-07 20:50:46 +09:00
Antonin Houska
db949166ec Handle single-line comments correctly (Bug#26049)
* lisp/newcomment.el (comment-region-internal): Previously, the
comment text had to contain at least one line break character for the
ending extra line to be added.  Make the behavior more consistent by
looking for end of line instead.
(comment-region-internal): Remove trailing white space from the
comment's initial line.

Copyright-paperwork-exempt: yes
2017-11-06 19:01:19 -05:00
Glenn Morris
795bb233a5 * test/lisp/net/tramp-tests.el (tramp-test16-file-expand-wildcards):
Clean up properly.
2017-11-06 18:50:53 -05:00
Stefan Monnier
ba00ea7d0d * etc/PROBLEMS: Add URL to relevant issues for xterm+evil bug 2017-11-06 08:33:16 -05:00
Martin Rudalics
4a6015811e ; In text.texi fix typo spotted by Štěpán Němec 2017-11-06 14:11:15 +01:00
Martin Rudalics
93cd8415b2 Document new treatment of 'comment-auto-fill-only-comments'
* doc/lispref/text.texi (Auto Filling): Add reference to Emacs
manual.  Add description of 'comment-auto-fill-only-comments'.
* etc/NEWS: Mention new treatment of
'comment-auto-fill-only-comments'.
2017-11-06 08:45:52 +01:00
Michael Albinus
ca2d94ba61 Do not load Tramp unless `tramp-mode' is non-nil
* lisp/net/tramp.el (tramp-autoload-file-name-handler): Load Tramp only if
`tramp-mode' is non-nil.
(tramp-unload-file-name-handlers): Unload also
`tramp-autoload-file-name-handler'.

* test/lisp/net/tramp-tests.el (tramp-test42-delay-load): Extend test.
2017-11-05 20:08:05 +01:00
Michael Albinus
709478eaa8 Prefer `customize-set-variable' in tramp.texi
* doc/misc/tramp.texi (Configuration, Default Method, Default User)
(Default Host, Remote shell setup, Auto-save and Backup)
(Ad-hoc multi-hops, Frequently Asked Questions):
Prefer `customize-set-variable' over `custom-set-variables'.
2017-11-05 20:07:12 +01:00
Eli Zaretskii
5d36f2227f Fix last change in hscroll_window_tree
* src/xdisp.c (hscroll_window_tree): When hscroll suspension is
being disabled, set the frame's garbaged flag less eagerly.
(Bug#29002)
2017-11-05 20:10:38 +02:00
Philipp Stephani
72d07d1950 Ediff: add some missing documentation
* vc/ediff.el (ediff-files, ediff-files3, ediff-buffers)
(ediff-buffers3, ediff-merge-directories)
(ediff-merge-directories-with-ancestor)
(ediff-merge-directory-revisions)
(ediff-merge-directory-revisions-with-ancestor)
(ediff-windows-wordwise, ediff-windows-linewise)
(ediff-regions-wordwise, ediff-regions-linewise)
(ediff-merge-files, ediff-merge-files-with-ancestor)
(ediff-merge-buffers, ediff-merge-buffers-with-ancestor)
(ediff-merge-revisions, ediff-merge-revisions-with-ancestor)
(ediff-patch-file, ediff-revision): Document missing arguments.
(ediff-patch-buffer, ediff-revision): Add second space after
period.
(ediff-files-command, ediff3-files-command, ediff-merge-command)
(ediff-merge-with-ancestor-command, ediff-directories-command)
(ediff-directories3-command, ediff-merge-directories-command): Add
documentation for the command line functions.
2017-11-05 18:53:25 +01:00
Justin Timmons
18af404ef3 Support python virtualenv on w32 (Bug#24464)
According to the virtualenv docs only POSIX systems follow the
structure "/path/to/venv/bin/", while windows systems use
"/path/to/venv/Scripts" for the location of the binary files, most
importantly including the python interpreter (see:
https://virtualenv.pypa.io/en/stable/userguide/#windows-notes).
* lisp/progmodes/python.el (python-shell-calculate-exec-path): Use the
"/path/to/venv/Scripts" for `windows-nt' machines.

Copyright-paperwork-exempt: yes
2017-11-05 11:39:06 -05:00
Noam Postavsky
efd0371c23 Improve dired deletion error handling (Bug#28797)
* lisp/dired.el (dired-internal-do-deletions): Use
`error-message-string' to produce a human readable error message.
2017-11-05 11:38:38 -05:00
Noam Postavsky
5d744e032f Don't replace user input when completion prefix is empty (Bug#18951)
* lisp/pcomplete.el (pcomplete-parse-arguments): Only replace user
input if we produced a non-empty common completion stub.
2017-11-05 11:36:20 -05:00
Eli Zaretskii
ec6cf35c5f ; Describe xt-mouse problems with Evil mode
* etc/PROBLEMS: Describe a workaround for xt-mouse problems with
Evil mode.  (Bug#29143)
2017-11-05 17:49:43 +02:00
Eli Zaretskii
c572e1f329 Return non-nil from gnutls-available-p under GnuTLS 2.x
* doc/misc/emacs-gnutls.texi (Help For Users): Update the
documentation of 'gnutls-available-p'.

* etc/NEWS (GnuTLS): Mention the change in the value returned by
'gnutls-available-p'.

* src/gnutls.c (Fgnutls_available_p): Return non-nil when GnuTLS
2.x is available.  (Bug#29147)
2017-11-05 17:26:36 +02:00
João Távora
a2cc6d74c5 Fix Flymake help-echo functions across windows (bug#29142)
* lisp/progmodes/flymake.el (flymake--highlight-line): Use
with-selected-window.
(flymake-goto-next-error): Call help-echo with a window and an
overlay.
2017-11-05 14:58:07 +00:00
João Távora
58bb3462ee Add tests for Flymake backends for Ruby and Perl
* test/lisp/progmodes/flymake-tests.el (perl-backend)
(ruby-backend): New tests.
(warning-predicate-rx-perl, warning-predicate-function-perl):
Delete tests.

* test/lisp/progmodes/flymake-resources/test.pl: Include an
error the test file.

* test/lisp/progmodes/flymake-resources/test.rb: file.
2017-11-05 12:55:43 +00:00
João Távora
58e742b21d Add a Flymake backend for Perl
Define a simple backend in perl-mode.el, which cperl-mode.el also
uses.

* lisp/progmodes/cperl-mode.el (cperl-mode): Add to
flymake-diagnostic-functions.

* lisp/progmodes/flymake-proc.el
(flymake-proc-allowed-file-name-masks): Disable legacy backend
for perl files.

* lisp/progmodes/perl-mode.el (perl-flymake-command): New
defcustom.
(perl--flymake-proc): New buffer-local variable.
(perl-flymake): New function.
(perl-mode): Add to flymake-diagnostic-functions.
2017-11-05 12:53:56 +00:00
João Távora
9dee764165 Add a Flymake backend for Ruby
* lisp/progmodes/ruby-mode.el (ruby-flymake-command): New
defcustom.
(ruby--flymake-proc): New buffer-local variable.
(ruby-flymake): New function.
(ruby-mode): Add flymake-diagnostic-functions.
2017-11-05 12:16:28 +00:00
Lele Gaifax
3ad712ebc9 Add a Flymake backend for Python (bug#28808)
Implement new Flymake backend with related customizable settings.

* lisp/progmodes/python.el (python-flymake-command)
(python-flymake-command-output-pattern)
(python-flymake-msg-alist): New defcustom.
(python--flymake-parse-output): New function, able to parse
python-flymake-command output accordingly to
python-flymake-command-output-pattern.
(python-flymake): New function implementing the backend
interface using python--flymake-parse-output for the real
work.
(python-mode): Add python-flymake to flymake-diagnostic-functions.
2017-11-05 12:15:45 +00:00
Michael Albinus
8db2b3a79b Allow "%" in Tramp host names
* lisp/net/tramp-gvfs.el (tramp-gvfs-url-file-name): Hexify also host.

* lisp/net/tramp.el (tramp-host-regexp): Allow "%" in host names.
2017-11-05 12:40:58 +01:00
Michael Albinus
8c50842790 ; Fix typo in test/file-organization.org 2017-11-05 12:40:13 +01:00
Charles A. Roelli
00fa4449cd ; Fix typo
* doc/misc/cc-mode.texi (Other Commands): Fix typo.
2017-11-05 10:18:00 +01:00
Noam Postavsky
918a2dda07 Use hybrid malloc for FreeBSD (Bug#28308)
FreeBSD aarch64 does not provide sbrk, so gmalloc cannot be used; when
using system malloc dumping does not work correctly (allocated data is
invalid after dumping).
* configure.ac: Set hybrid_malloc for freebsd.
* src/gmalloc.c (gdefault_morecore) [!HAVE_SBRK]: Don't call sbrk.
2017-11-04 18:49:28 -04:00
Charles A. Roelli
725ab635d9 Add html-, mhtml- and python-mode support to semantic symref
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Fix the entry for
'html-mode', which used a regexp-like syntax where only glob
syntax is permitted.  As a result, 'xref-find-references' (M-?)
can now find references in HTML files.  Also duplicate the same
entry for the sake of 'mhtml-mode', and add a new one for
'python-mode'.
(semantic-symref-derive-find-filepatterns): In the documentation,
clarify that returned patterns must follow the glob syntax.  Fix
an 'if' test that always evaluates to nil.
(semantic-symref-tool-grep):
(semantic-symref-perform-search): Fix typos.
2017-11-04 22:19:08 +01:00
Eli Zaretskii
369da28702 Improve documentation of 'window-scroll-functions'
* doc/lispref/windows.texi (Window Hooks): Clarify the values of
arguments of 'window-scroll-functions' functions.

* src/xdisp.c (syms_of_xdisp) <window-scroll-functions>: Doc fix.
2017-11-04 18:09:01 +02:00
Eli Zaretskii
93818eed8a Fix subtle problems in tabulated-list-mode with line numbers
* lisp/emacs-lisp/tabulated-list.el
(tabulated-list-watch-line-number-width): Call
tabulated-list-init-header instead of tabulated-list-revert.
(tabulated-list-window-scroll-function): New function.
(tabulated-list-mode): Put 'tabulated-list-window-scroll-function'
on the buffer-local 'window-scroll-functions' list.
2017-11-04 16:28:25 +02:00
Eli Zaretskii
1f1de8e872 Make gdb-non-stop-setting default to nil on MS-Windows
* lisp/progmodes/gdb-mi.el (gdb-non-stop-setting): Now nil on
MS-Windows.
2017-11-04 13:56:39 +02:00
Mike Gulick
680e8e119b Fix gdb-mi prompt after "attach PID" command
* lisp/progmodes/gdb-mi.el (gdbmi-bnf-console-stream-output): Set
gdb-first-done-or-error non-nil.  (Bug#29020)

Copyright-paperwork-exempt: yes
2017-11-04 13:34:40 +02:00
Eli Zaretskii
ff33074546 Fix doc string of 'window-configuration-change-hook'
* src/window.c (syms_of_window) <window-configuration-change-hook>:
Doc fix.  (Bug#29049)
2017-11-04 12:00:03 +02:00
Eli Zaretskii
787b75ad71 Improve documentation of window hooks
* doc/lispref/windows.texi (Window Hooks): Fix the description of
window-configuration-change-hook.  (Bug#29049)
<run-window-scroll-functions, run-window-configuration-change-hook>:
Document these functions.
2017-11-04 11:56:26 +02:00
Eli Zaretskii
d9be8704ae Fix hscroll suspension after cursor motion
* src/xdisp.c (hscroll_window_tree): Trigger a thorough redisplay
of the window when temporary suspension of hscrolling is
disabled.  (Bug#29002)
2017-11-04 11:30:10 +02:00
Glenn Morris
6f43d29d29 ; * CONTRIBUTE, admin/make-tarball.txt: Doc tweaks re 'emacs-announce'. 2017-11-03 15:55:33 -04:00
Alan Mackenzie
a0d30d6369 Introduce a function to CC Mode which displays the current function name
Remove an erroneous interactive specification from two functions.

* lisp/progmodes/cc-cmds.el (c-display-defun-name): New command.
(c-defun-name, c-cpp-define-name): Remove interactive specification.

* lisp/progmodes/cc-mode.el (c-mode-base-map): Add binding C-c C-z for the new
command.

* doc/misc/cc-mode.texi (Other Commands): Add documentation for the new
command.
2017-11-03 19:45:17 +00:00
Glenn Morris
383abc8898 ; Fix some comment typos 2017-11-03 15:18:32 -04:00
Eli Zaretskii
b02c2714c3 Fix typos in ediff-wind.el
* lisp/vc/ediff-wind.el (ediff-setup-windows-multiframe-merge):
Fix typos in commentary.  (Bug#29138)
2017-11-03 21:12:41 +02:00
João Távora
4f38bdec74 Examine tex-chktex--process in the correct buffer
As in other Flymake backends, the process sentinel might run in
arbitrary buffers where this variable's value doesn't make sense.

For a way to trigger a problem due to this, see discussion starting in
https://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00645.html

* lisp/textmodes/tex-mode.el (tex-chktex): Use
with-current-buffer.
2017-11-03 19:06:01 +00:00
Stephen Leake
94b490529a * nt/INSTALL.W64: Update to current mingw64 install instructions 2017-11-03 12:09:12 -05:00
João Távora
c25113d4ac Don't resignal errors in flymake-diag-region
* lisp/progmodes/flymake.el (flymake-diag-region): Use
flymake-log instead of flymake-error.
2017-11-03 16:53:45 +00:00
João Távora
e950f329c0 New xref-quit-and-goto-xref command bound to TAB (bug#28814)
This is like xref-goto-xref, but quits the *xref* window just before
the user jump to ref.

* lisp/progmodes/xref.el (xref--show-location): Handle 'quit
value for SELECT.
(xref-goto-xref): Take optional QUIT arg.
(xref-quit-and-goto-xref): New command.
(xref--xref-buffer-mode-map): Bind "Q" and "TAB" to
xref-quit-and-goto-xref.

* doc/emacs/maintaining.texi (Xref Commands): Describe new bindings in
*xref*.

* etc/NEWS (Xref): Describe new binding.
2017-11-03 16:13:39 +00:00
João Távora
5d34e1b288 Allow split-window-sensibly to split threshold in further edge case
As a fallback, and to avoid creating a frame, split-window-sensibly
would previously disregard split-height-threshold if the window to be
split is the frame's root window.

This change generalizes that: it disregards the threshold if the
window to be split is the frame's only _usable_ window (it is either
the only one, as before, or all the other windows are dedicated to
some buffer and thus cannot be touched).

This is required for the fix to bug#28814.

* lisp/window.el (split-height-threshold): Adjust doc to match
split-window-sensibly.
(split-window-sensibly): Also disregard threshold if all other
windows are dedicated.
2017-11-03 16:13:37 +00:00
João Távora
2a973edeac Honor window-switching intents in xref-find-definitions (bug#28814)
When there is more than one xref to jump to, and an *xref* window
appears to help the user choose, the original intent to open a
definition in another window or frame is remembered when the choice to
go to or show a reference is finally made.

* lisp/progmodes/xref.el (xref--show-pos-in-buf): Rewrite.
(xref--original-window-intent): New variable.
(xref--original-window): Rename from xref--window and move up
here for clarity.
(xref--show-pos-in-buf): Rewrite.  Don't take SELECT arg here.
(xref--show-location): Handle window selection decision here.
(xref--window): Rename to xref--original-window.
(xref-show-location-at-point): Don't attempt window management here.
(xref--show-xrefs): Ensure display-action intent is saved.
2017-11-03 16:13:35 +00:00
Paul Pogonyshev
78e9065e9f * lisp/emacs-lisp/generator.el (iter-do): Add a debug declaration. 2017-11-03 15:49:51 +02:00
Stefan Monnier
caa63cc96c * lisp/progmodes/flymake.el (flymake-start): Fix dead buffer case
Don't try to flymake-start within a buffer that doesn't exist any more.
2017-11-03 08:33:13 -04:00
Basil L. Contovounesios
9f4f130b79 Fix buffer name comparison in async shell-command
* lisp/simple.el (shell-command): Keep track of output-buffer
by its name, not by its object.  (Bug#28997)
2017-11-03 11:50:13 +02:00
Paul Eggert
c911b27aff Change GCALIGNMENT back to an integer literal
* src/lisp.h (GCALIGNMENT): Change it back to a macro
that expands to a literal integer constant, for older GCC.
I had mistakenly thought that only MSVC had the problem.
Problem repored by Eli Zaretskii (Bug#29040#69).
2017-11-03 02:20:55 -07:00
Paul Eggert
a87ce5c4b4 * src/lisp.h (GCALIGNED): Clarify comment (Bug#29040). 2017-11-02 20:05:33 -07:00
Hong Xu
8a31e9993f ; etc/NEWS: Add cpp-message-min-time-interval. (Bug#28961) 2017-11-02 20:44:12 -04:00