1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00
Commit Graph

125409 Commits

Author SHA1 Message Date
Eli Zaretskii
de51d59802 ; * nt/README.W32: Minor copyedits. 2016-11-05 10:07:30 +02:00
Noam Postavsky
db436e93ca Don't call debug on failed cl-assert
Doing this causes problems when running ert tests, for
instance (Bug#24778).  The call to `debug` when `debug-on-error' is
non-nil was introduced in 2015-02-14 "* lisp/emacs-lisp/cl*.el: Use
define-inline and move some code...".

* lisp/emacs-lisp/cl-preloaded.el (cl--assertion-failed): Don't call
`debug' directly.
2016-11-04 21:40:16 -04:00
Paul Eggert
acae275b27 ; Spelling fixes 2016-11-04 14:50:59 -07:00
Phillip Lord
d8fac734e5 Update README for precompiled windows Emacs.
* nt/README.W32: Describe 64 and 32-bit downloads, optional
   dependencies bundle. Remove old material on sourcing dependencies.
   Remove references to Windows 95. Update GUI references to recent
   Windows. Remove references to Usenet.
2016-11-04 20:50:55 +00:00
Hong Xu
23570fd995 Clarify documentation of 'vc-responsible-backend' wrt symlinks
* lisp/vc/vc.el (vc-responsible-backend): Clarify that symlinks
are not resolved when the VC backend is reported.

* doc/lispref/files.texi (Truenames): Document
'vc-responsible-backend'.  (Bug#23436)
* doc/emacs/maintaining.texi (Version Control Systems): Fix a
typo.
2016-11-04 12:06:00 +02:00
Eli Zaretskii
f708cb22a1 Clarify doc string of 'transpose-sexps'
* lisp/simple.el (transpose-sexps): Clarify the conditions for
transposing sexps that are lists or strings.  Mention the effect
of the prefix argument.  (Bug#24860)
2016-11-04 11:50:48 +02:00
Tibor Csögör
cd05b1db33 Fix docstring of 'browse-url-firefox-new-window-is-tab'
* lisp/net/browse-url.el (browse-url-firefox-new-window-is-tab):
Remove obsolete note from docstring (obsoleted by previous commits).
(Bug#24843)

Copyright-paperwork-exempt: yes
2016-11-04 11:24:21 +02:00
Eli Zaretskii
bdc89eb4a6 Improve documentation of 'font-lock-remove-keywords'
* doc/lispref/modes.texi (Customizing Keywords): Clarify the
'keywords' argument of 'font-lock-remove-keywords'.  Suggested by
Hong Xu <hong@topbug.net>.  (Bug#24830)
2016-11-04 11:16:40 +02:00
Eli Zaretskii
4a0c590cbf Fix documentation of the command summary key
* doc/misc/info.texi (Help-^L, Help-Xref, Top): Emacs Info uses
'?' for the summary of commands, whereas the stand-alone reader
uses 'H'.  (Bug#24825)
2016-11-04 10:56:11 +02:00
Eli Zaretskii
0221b7a9b5 Mark relocation workarounds with REL_ALLOC
* src/search.c (boyer_moore): Mark workarounds for ralloc.c
relocation of buffer text with "#ifdef REL_ALLOC".
2016-11-04 10:36:02 +02:00
Thomas Fitzsimmons
5043e0a7e0 Fix documentation for 'eudc-options-file'
* doc/misc/eudc.texi (The Server Hotlist): Update the default
value of 'eudc-options-file'.

Backport:

(cherry picked from commit 0575fd95d0)
2016-11-02 06:11:43 -04:00
Tibor Csögör
26038aa676 Fix documentation of 'eudc-inline-expansion-format'
* doc/misc/eudc.texi (Inline Query Expansion): Fix the default value of
'eudc-inline-expansion-format'. (Bug#24840)

Backport:

(cherry picked from commit 1fef1387c3)
2016-11-02 06:03:50 -04:00
Clément Pit--Claudel
dbb3410228 python.el: Fix detection of native completion in Python 3 (bug #24401)
With Python 3.5, (python-shell-completion-native-get-completions ... "")
would return an empty list, causing python.el to think that native
completion was unavailable (the difference between Python 2 and Python 3
is due to https://bugs.python.org/issue25660).

* lisp/progmodes/python.el (python-shell-completion-native-try): Use "_"
  to check whether native completion is available instead of "".
2016-10-31 08:35:33 -04:00
Glenn Morris
91c97b6eed * Makefile.in (install-arch-indep): Skip etc/refcards/emacsver.tex.in. 2016-10-26 15:47:54 -04:00
Stefan Monnier
9c1cb8d595 * lisp/subr.el (set-transient-map): Exit for unbound events (bug#24755). 2016-10-26 15:29:02 -04:00
Eli Zaretskii
9c247d200b Update category-table for Chinese characters
* lisp/international/characters.el (standard-category-table):
Update the ranges of Han and Chinese characters.  (Bug#24798)
2016-10-26 15:58:07 +03:00
Noam Postavsky
43986d16fb Inhibit buffer relocation during regex searches
* src/search.c (looking_at_1, fast_looking_at, search_buffer): Prevent
relocation of buffer contents during calls to re_search_2.  This ensures
the pointers into buffer text won't be invalidated by
r_alloc_sbrk (called from malloc with configurations where
REL_ALLOC=yes).
2016-10-25 20:15:33 -04:00
Noam Postavsky
fee4cef7d7 Revert fixes to allocation of regex matching
The fix was not complete, and completing it was proving too complicated.

- Revert "* src/regex.c (re_search_2): Make new code safe for
          -Wjump-misses-init."
  This reverts commit c2a17924a5.
- Revert "Port to GCC 6.2.1 + --enable-gcc-warnings"
  This reverts commit f6134bbda2.
- Revert "Fix handling of allocation in regex matching"
  This reverts commit ad66b3fadb.
- Revert "Fix handling of buffer relocation in regex.c functions"
  This reverts commit ee04aedc72.
2016-10-25 20:15:33 -04:00
Eli Zaretskii
4c3f7387df Comment for bug#24793
* lisp/info.el (Info-mode-font-lock-keywords): Add a comment
explaining why `..' quoting is not fontified using the
'Info-quoted' face.  (Bug#24793)
2016-10-25 22:33:14 +03:00
Paul Eggert
32827b374d Default REL_ALLOC to 'no'
This should make ralloc-related bugs less likely on GNU/Linux
systems with bleeding-edge glibc.  See the email thread containing:
http://lists.gnu.org/archive/html/emacs-devel/2016-10/msg00801.html
Do not merge to master.
* configure.ac (REL_ALLOC): Default to 'no' on all platforms, not
merely on platforms with Doug Lea malloc.  Although bleeding-edge
glibc no longer exports __malloc_initialize_hook and so longer
passes the configure-time test for Doug Lea malloc, ralloc tickles
longstanding bugs like Bug#24358 and Bug#24764 and Emacs is likely
to be more reliable without it.  This patch is not needed on
master, which uses hybrid malloc in this situation.
2016-10-25 12:20:26 -07:00
Eli Zaretskii
96ac0c3ebc Yet another fix for using pointers into buffer text
* src/search.c (boyer_moore): Update pointers to buffer text
after call to set_search_regs.  (Bug#24358)
2016-10-24 21:37:20 +03:00
Eli Zaretskii
1047496722 Another fix for using pointer to buffer text
* src/search.c (Freplace_match): Move the call to BYTE_POS_ADDR
after the call to xpalloc, to avoid the danger of buffer text
relocation after its address was taken.  (Bug#24358)
2016-10-24 16:59:34 +03:00
Michael Albinus
31219927a9 Fix Bug#24478
* lisp/net/tramp-sh.el (tramp-histfile-override): Change default value
to "~/.tramp_history".
(tramp-open-shell): Check proper HISTFILE setting.
(tramp-maybe-open-connection): Cleanup also for errors.  (Bug#24478)
2016-10-24 15:04:25 +02:00
Paul Eggert
7bb5c4f206 Port --enable-gcc-warnings to bleeding-edge glibc
Bleeding-edge glibc sets emacs_cv_var_doug_lea_malloc to 'no'.
Do not merge to master.
* configure.ac: Check for valloc decl when compiling gmalloc.c.
* src/gmalloc.c (emacs_abort) [emacs]: Adjust decl to match
what is in lisp.h.  Remove duplicate decl.
(aligned_alloc): #undef before defining.
(aligned_alloc, memalign) [!MSDOS]: Declare.
(valloc) [HAVE_DECL_VALLOC]: Remove duplicate decl.
2016-10-23 21:55:07 -07:00
Eli Zaretskii
ee04aedc72 Fix handling of buffer relocation in regex.c functions
* src/search.c (search_buffer): Updated the base pointer to buffer
text after the call to re_search_2.  (Bug#24358)
2016-10-23 22:09:43 +03:00
Eli Zaretskii
71ca4f6a43 Avoid relocating buffers while libxml2 reads its text
* src/xml.c (parse_region) [REL_ALLOC]: Freeze the ralloc arena
while libxml2 reads the current buffer's text.  (Bug#24764)
2016-10-23 19:52:56 +03:00
Eli Zaretskii
1b3fc8ab49 ; Remove redundant code in gmalloc.c
* src/gmalloc.c [WINDOWSNT]: Remove MS-Windows only inclusion of
w32heap.h, as the MS-Windows build no longer uses gmalloc.c.
2016-10-23 18:05:48 +03:00
Eli Zaretskii
9afea93ed5 Attempt to catch reads from a buffer that is relocated
* src/xml.c (parse_region): Add assertion to ensure buffer text is
not relocated while libxml2 is reading it.  (Bug#24764)
2016-10-23 16:54:00 +03:00
Eli Zaretskii
b8e8e15288 Revert "* lisp/simple.el (process-menu-mode, list-processes--refresh):"
This reverts commit a4285bcb11.
Do not merge to master!
2016-10-23 16:04:20 +03:00
Eli Zaretskii
d784e75776 Revert "* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):"
This reverts commit b0c447e466.
Do not merge to master!
2016-10-23 16:03:25 +03:00
Eli Zaretskii
1dd7b54a7e Revert "* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)"
This reverts commit cf3c19b029.
Do not merge to master!
2016-10-23 16:02:11 +03:00
Eli Zaretskii
50fa7d64d3 ;* src/w32heap.c: Fix typo and wording of the comments. 2016-10-23 12:14:05 +03:00
Paul Eggert
6f1325ed92 electric-quote mode no longer worries about coding
* doc/emacs/text.texi (Quotation Marks), etc/NEWS: Document this.
* lisp/electric.el (electric--insertable-p): Remove.
All uses removed (Bug#24759).
2016-10-23 01:14:57 -07:00
Paul Eggert
c2a17924a5 * src/regex.c (re_search_2): Make new code safe for -Wjump-misses-init. 2016-10-23 01:01:24 -07:00
Paul Eggert
f6134bbda2 Port to GCC 6.2.1 + --enable-gcc-warnings
* src/regex.c (ENSURE_FAIL_STACK, re_search_2):
Redo recent regex changes to avoid complaints from GCC 6.2.1 when
Emacs is configured with --enable-gcc-warnings.  Also, work around
GCC bug 78081, which was uncovered by this new code.
2016-10-22 21:14:15 -07:00
Noam Postavsky
b2ba630739 Explain how to debug emacsclient lisp errors
* doc/lispref/debugging.texi (Error Debugging): Mention that
debug-on-signal is useful for getting backtraces from
emacsclient (Bug#24616).
2016-10-22 12:06:29 -04:00
Noam Postavsky
9da53e2d35 Let describe-function work for lambda again
Since commit "* lisp/help-fns.el (describe-function): More type
checking[...]", `describe-function' throws a user-error when given a
non-symbol.  This prevents the [back] button in a *Help* buffer from
working when the page it goes back to describes an anonymous
function (e.g., the result of `describe-key' on a key which is bound to
a lambda form).

* lisp/help-fns.el (describe-function): Move the checks on FUNCTION
being an fbound symbol into the `interactive' form.  This allows
non-interactive calls to pass an anonymous function (Bug #24221).  Note
that passing a non-bound symbol non-interactively will still trigger a
`void-function' error from `describe-function-1'.
2016-10-21 22:39:37 -04:00
Noam Postavsky
5c2da93015 Fix kill-line's docstring
* lisp/simple.el (kill-line): The effect of show-trailing-whitespace is
important lines with *no* nonblanks (Bug #16654).
2016-10-21 22:39:37 -04:00
Noam Postavsky
ad66b3fadb Fix handling of allocation in regex matching
`re_match_2_internal' uses pointers to the lisp objects that it
searches.  Since it may call malloc when growing the "fail stack", these
pointers may be invalidated while searching, resulting in memory
curruption (Bug #24358).

To fix this, we check the pointer that the lisp object (as specified by
re_match_object) points to before and after growing the stack, and
update existing pointers accordingly.

* src/regex.c (STR_BASE_PTR): New macro.
(ENSURE_FAIL_STACK, re_search_2): Use it to convert pointers into
offsets before possible malloc call, and back into pointers again
afterwards.
(POS_AS_IN_BUFFER): Add explanatory comment about punning trick.
* src/search.c (search_buffer): Instead of storing search location as
pointers, store them as pointers and recompute the corresponding address
for each call to `re_search_2'.
(string_match_1, fast_string_match_internal, fast_looking_at):
* src/dired.c (directory_files_internal): Set `re_match_object' to Qnil
after calling `re_search' or `re_match_2'.
* src/regex.h (re_match_object): Mention new usage in commentary.
2016-10-21 22:24:54 -04:00
Paul Eggert
5a26c9b0e1 * lisp/electric.el (electric-quote-mode): Improve doc (Bug#24759). 2016-10-21 14:00:44 -07:00
Tino Calancha
3877c911b7 vc-region-history: Search just on lines intersecting the region
* lisp/vc/vc.el (vc-region-history): If region ends in the beginning
of a line, then exclude that line from the search (Bug#24725).
2016-10-20 19:39:59 +09:00
Eli Zaretskii
8988327d54 Fix documentation of 'alist-get'
* doc/lispref/lists.texi (Association Lists): Fix the signature of
'alist-get'.  Fix the markup, the wording, and the punctuation in
the description. (Bug#24740)
2016-10-19 21:10:31 +03:00
Eli Zaretskii
b6998eab37 * src/regex.h (re_match_object): Improve commentary. 2016-10-19 17:31:47 +03:00
Alan Third
dfd047666b Fix cursor at bottom left of rectangle (bug#24364)
* lisp/rect.el (rectangle--col-pos): Don't assume point at EOL doesn't
require rectangle--point-crutches to be set.
2016-10-19 12:37:50 +01:00
Michael Albinus
8ad0d7da0a ; Fix quoting in etc/NEWS 2016-10-19 10:49:13 +02:00
Michael Albinus
6b9dee1ae6 Change Tramp version to "2.2.13.25.2"
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.2.13.25.2".
2016-10-19 10:35:52 +02:00
Eli Zaretskii
62f268414c * lisp/emacs-lisp/autoload.el (update-directory-autoloads): Fix last change. 2016-10-19 10:59:05 +03:00
Eli Zaretskii
b2f32e4c9a Don't scan compiled module files for autoloads
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Ignore
compiled module files.  Make sure the extension really ends the
file name.
2016-10-19 10:42:45 +03:00
Michael Albinus
9a758b4ccc Fix Bug#24698
* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Don't send "stty tab0" to *BSD and Darwin machines.  (Bug#24698)
2016-10-18 20:41:19 +02:00
Eli Zaretskii
baa8ba4ed4 * lisp/subr.el (start-process): Doc fix. (Bug#24693) 2016-10-18 09:24:05 +03:00