]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years ago* src/regex.c (re_search_2): Make new code safe for -Wjump-misses-init.
Paul Eggert [Sun, 23 Oct 2016 08:00:27 +0000 (01:00 -0700)]
* src/regex.c (re_search_2): Make new code safe for -Wjump-misses-init.

8 years agoPort to GCC 6.2.1 + --enable-gcc-warnings
Paul Eggert [Sun, 23 Oct 2016 04:12:54 +0000 (21:12 -0700)]
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.

8 years agoExplain how to debug emacsclient lisp errors
Noam Postavsky [Sat, 22 Oct 2016 15:52:14 +0000 (11:52 -0400)]
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).

8 years agoLet describe-function work for lambda again
Noam Postavsky [Mon, 3 Oct 2016 22:49:56 +0000 (18:49 -0400)]
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'.

8 years agoFix kill-line's docstring
Noam Postavsky [Sat, 17 Sep 2016 17:30:24 +0000 (13:30 -0400)]
Fix kill-line's docstring

* lisp/simple.el (kill-line): The effect of show-trailing-whitespace is
important lines with *no* nonblanks (Bug #16654).

8 years agoFix handling of allocation in regex matching
Noam Postavsky [Thu, 20 Oct 2016 00:23:50 +0000 (20:23 -0400)]
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.

8 years ago* lisp/electric.el (electric-quote-mode): Improve doc (Bug#24759).
Paul Eggert [Fri, 21 Oct 2016 21:00:09 +0000 (14:00 -0700)]
* lisp/electric.el (electric-quote-mode): Improve doc (Bug#24759).

8 years agovc-region-history: Search just on lines intersecting the region
Tino Calancha [Thu, 20 Oct 2016 10:39:59 +0000 (19:39 +0900)]
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).

8 years agoFix documentation of 'alist-get'
Eli Zaretskii [Wed, 19 Oct 2016 18:10:31 +0000 (21:10 +0300)]
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)

8 years ago* src/regex.h (re_match_object): Improve commentary.
Eli Zaretskii [Wed, 19 Oct 2016 14:31:47 +0000 (17:31 +0300)]
* src/regex.h (re_match_object): Improve commentary.

8 years agoFix cursor at bottom left of rectangle (bug#24364)
Alan Third [Sun, 4 Sep 2016 21:58:37 +0000 (22:58 +0100)]
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.

8 years ago; Fix quoting in etc/NEWS
Michael Albinus [Wed, 19 Oct 2016 08:49:13 +0000 (10:49 +0200)]
; Fix quoting in etc/NEWS

8 years agoChange Tramp version to "2.2.13.25.2"
Michael Albinus [Wed, 19 Oct 2016 08:35:52 +0000 (10:35 +0200)]
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".

8 years ago* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Fix last change.
Eli Zaretskii [Wed, 19 Oct 2016 07:59:05 +0000 (10:59 +0300)]
* lisp/emacs-lisp/autoload.el (update-directory-autoloads): Fix last change.

8 years agoDon't scan compiled module files for autoloads
Eli Zaretskii [Wed, 19 Oct 2016 07:42:45 +0000 (10:42 +0300)]
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.

8 years agoFix Bug#24698
Michael Albinus [Tue, 18 Oct 2016 18:41:19 +0000 (20:41 +0200)]
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)

8 years ago* lisp/subr.el (start-process): Doc fix. (Bug#24693)
Eli Zaretskii [Tue, 18 Oct 2016 06:24:05 +0000 (09:24 +0300)]
* lisp/subr.el (start-process): Doc fix.  (Bug#24693)

8 years agoFix display of vc-dir CVS file statuses in subdirectories
Göktuğ Kayaalp [Tue, 18 Oct 2016 00:01:58 +0000 (03:01 +0300)]
Fix display of vc-dir CVS file statuses in subdirectories

* lisp/vc/vc-cvs.el (vc-cvs-dir-status-files): Use 'cvs update'
instead of 'cvs status'.  It's faster, easier to parse, and
relieves us of the need to use vc-expand-dirs.  (Bug#24082)
(vc-cvs-after-dir-status): Parse its output.

8 years agoUpdate URL of MS-Windows optional DLLs
Eli Zaretskii [Mon, 17 Oct 2016 09:12:25 +0000 (12:12 +0300)]
Update URL of MS-Windows optional DLLs

* nt/README.W32:
* nt/INSTALL: Update the URL of the MS-Windows binaries of the
optional libraries built with MSYS2/MinGW64 project tools.

8 years agoMerge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25
Eli Zaretskii [Mon, 17 Oct 2016 07:26:55 +0000 (10:26 +0300)]
Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25

8 years agoFix time-related data types in 2 editfns.c functions
Eli Zaretskii [Mon, 17 Oct 2016 07:25:58 +0000 (10:25 +0300)]
Fix time-related data types in 2 editfns.c functions

* src/editfns.c (format_time_string, Fcurrent_time_zone): Pass a
pointer to time_t value to emacs_localtime_rz and gmtime_r,
instead of relying on struct timespec's tv_sec member to be of
compatible type.

8 years ago* lisp/simple.el (process-menu-mode, list-processes--refresh):
Tino Calancha [Tue, 7 Jun 2016 19:06:38 +0000 (15:06 -0400)]
* lisp/simple.el (process-menu-mode, list-processes--refresh):
Include PID.  (Bug#21725)

(cherry picked from commit b7adc2f23787eb72015cd705b873e229db6a5049)

8 years ago* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Tino Calancha [Tue, 7 Jun 2016 23:24:51 +0000 (19:24 -0400)]
* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Fix non-file-visiting-buffer case.  (Bug#22678)

(cherry picked from commit 738738259ba77fe17e433c64e0758ea59ab5bc75)

8 years ago* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)
Tino Calancha [Wed, 8 Jun 2016 00:35:24 +0000 (20:35 -0400)]
* lisp/ibuffer.el (ibuffer): Improve 'other-window' case.  (Bug#23617)

(cherry picked from commit f4ef1a1fea15aa58fbb5e7a59bff260720658e49)

8 years agoPort to Ubuntu 16.10, which needs gcc -nopie
Paul Eggert [Sun, 16 Oct 2016 23:25:47 +0000 (16:25 -0700)]
Port to Ubuntu 16.10, which needs gcc -nopie

* configure.ac (emacs_cv_prog_cc_no_pie): Rename from
emacs_cv_prog_cc_nopie.  All usages changed.  Check for -no-pie in
preference to -nopie (Bug#24682).  Backport from master.

8 years ago* lisp/cus-start.el (exec-path): Handle nil elements. (Bug#24471)
Glenn Morris [Mon, 17 Oct 2016 01:56:06 +0000 (18:56 -0700)]
* lisp/cus-start.el (exec-path): Handle nil elements.  (Bug#24471)

8 years agoCatch the imenu-unavailable error in sh-mode completion table
Andreas Politz [Sun, 16 Oct 2016 13:56:25 +0000 (16:56 +0300)]
Catch the imenu-unavailable error in sh-mode completion table

* lisp/progmodes/sh-script.el (sh--cmd-completion-table):
Catch the imenu-unavailable error (bug#24238).

8 years ago; Minor fix for last change in characters.el
Eli Zaretskii [Sun, 16 Oct 2016 11:22:24 +0000 (14:22 +0300)]
; Minor fix for last change in characters.el

8 years agoMore char-width fixes
Eli Zaretskii [Sun, 16 Oct 2016 11:19:32 +0000 (14:19 +0300)]
More char-width fixes

* lisp/international/characters.el (char-width-table): More fixes
according to the latest EastAsianWidth.txt.  (Bug#24705)

8 years agoFix char-width-table values for some Emoji
Eli Zaretskii [Sat, 15 Oct 2016 14:58:57 +0000 (17:58 +0300)]
Fix char-width-table values for some Emoji

* lisp/international/characters.el (char-width-table): Add missing
range U+1F400..U+1F43E.  (Bug#24699)

* admin/notes/unicode: Mention the need to verify char-width-table
setting against data in EastAsianWidth.txt.

8 years agoKeep point when switching from and to *terminal* buffer
Eli Zaretskii [Sat, 15 Oct 2016 13:53:36 +0000 (16:53 +0300)]
Keep point when switching from and to *terminal* buffer

* lisp/term.el (term-reset-size): Don't reset the size if it
didn't change.  If the size did change, restore point after
adjusting the size.  (Bug#24465)

8 years ago* INSTALL: Use correct Emacs release number 25.
Michael Albinus [Sat, 15 Oct 2016 10:40:45 +0000 (12:40 +0200)]
* INSTALL: Use correct Emacs release number 25.

8 years agoAvoid crashes due to objects read with the #n=object form
Eli Zaretskii [Fri, 14 Oct 2016 19:52:46 +0000 (22:52 +0300)]
Avoid crashes due to objects read with the #n=object form

* src/lread.c (read1): Use Fcons for 'placeholder', not AUTO_CONS,
because elements of the list in 'read_objects' cannot be allocated
off the stack.  (Bug#24640)

8 years agoImprove doc string of 'completion-at-point-functions'
Eli Zaretskii [Thu, 13 Oct 2016 17:15:21 +0000 (20:15 +0300)]
Improve doc string of 'completion-at-point-functions'

* lisp/minibuffer.el (completion-at-point-functions): Doc fix.
(Bug#24663)

8 years agoFix crash in evaluating functions
Philipp Stephani [Wed, 12 Oct 2016 20:48:32 +0000 (22:48 +0200)]
Fix crash in evaluating functions

See Bug#24673

* src/eval.c (funcall_lambda): Fix crash for bogus functions such
as (closure).

8 years ago* src/filelock.c (current_lock_owner): Update comment.
Paul Eggert [Thu, 13 Oct 2016 00:48:04 +0000 (17:48 -0700)]
* src/filelock.c (current_lock_owner): Update comment.

8 years agoPort --enable-gcc-warnings to GCC 6.2.1
Paul Eggert [Wed, 12 Oct 2016 16:16:31 +0000 (09:16 -0700)]
Port --enable-gcc-warnings to GCC 6.2.1

Backport from master.
* src/conf_post.h (GNUC_PREREQ): New macro.
* src/keyboard.c: Use it to work around GCC bug 54561.
* src/process.c (would_block): New function.
(server_accept_connection, wait_reading_process_output, send_process):
Use it.

8 years agoWork around Samba bug with ':' in symlink contents
Paul Eggert [Wed, 12 Oct 2016 16:01:03 +0000 (09:01 -0700)]
Work around Samba bug with ':' in symlink contents

* src/filelock.c (current_lock_owner): When reading the contents
of a lock, treat the UTF-8 for U+F022 as if it were ':' (Bug#24656).
Backport from master.

8 years agoPort last_marked change to full-program optimizers
Paul Eggert [Wed, 12 Oct 2016 16:00:27 +0000 (09:00 -0700)]
Port last_marked change to full-program optimizers

* src/alloc.c (last_marked): Now EXTERNALLY_VISIBLE.

8 years agoAdapt GDB scripts to '--enable-check-lisp-object-type' builds
Eli Zaretskii [Wed, 12 Oct 2016 08:59:53 +0000 (11:59 +0300)]
Adapt GDB scripts to '--enable-check-lisp-object-type' builds

* etc/emacs-buffer.gdb <$qnil>: New variable.
(ybuffer-list, yset-buffer): Use $qnil for comparing against
'nil', as direct comparison with Qnil doesn't work in a build with
'--enable-check-lisp-object-type'.

* src/.gdbinit: Adapt commands of the temporary breakpoint in
init_sys_modes to a build with '--enable-check-lisp-object-type'.

8 years agoAvoid optimizing out the last_marked[] array
Eli Zaretskii [Tue, 11 Oct 2016 11:38:48 +0000 (14:38 +0300)]
Avoid optimizing out the last_marked[] array

* src/alloc.c <last_marked>: No longer 'static', to avoid having
it optimized out in optimized builds, which then makes debugging
GC problems harder.

8 years agoCC Mode manual: remove reference to former Emacs variable last-command-char
Alan Mackenzie [Sun, 9 Oct 2016 13:42:57 +0000 (13:42 +0000)]
CC Mode manual: remove reference to former Emacs variable last-command-char

* doc/misc/cc-mode.texi (Hanging Semicolons and Commas): Replace reference to
variable last-command-char by one to macro c-last-command-char.

8 years agoAllow to disable compaction of font caches
Eli Zaretskii [Sat, 8 Oct 2016 19:31:14 +0000 (22:31 +0300)]
Allow to disable compaction of font caches

* src/font.c (syms_of_font) <inhibit-compacting-font-caches>: New
boolean variable.
* src/alloc.c (compact_font_caches): Use it to bypass the call to
compact_font_cache_entry.  (Bug#24634)  (Bug#24565)

* etc/NEWS: Mention the new variable.

8 years agoAllow selection of font for symbols as in Emacs 24.x
Eli Zaretskii [Sat, 8 Oct 2016 19:03:51 +0000 (22:03 +0300)]
Allow selection of font for symbols as in Emacs 24.x

* src/fontset.c (syms_of_fontset) <use-default-font-for-symbols>:
New boolean variable.
(face_for_char): Use it to fall back to pre-Emacs 25.1 behavior
when selecting fonts for displaying symbol and punctuation
characters.  (Bug#24644)

* etc/NEWS: Mention the new variable.

8 years ago; Fix last commit
Eli Zaretskii [Sat, 8 Oct 2016 14:16:33 +0000 (17:16 +0300)]
; Fix last commit

* doc/lispref/functions.texi (Argument List): Restore the index
entry for 'wrong-number-of-arguments'.  (Bug#24222)
* doc/lispref/errors.texi: Fix cross-reference for
'wrong-number-of-arguments'.

8 years ago; Fix indexing in lispref manual
Eli Zaretskii [Sat, 8 Oct 2016 14:01:54 +0000 (17:01 +0300)]
; Fix indexing in lispref manual

* doc/lispref/functions.texi (Argument List): Remove the index
entry for 'wrong-number-of-arguments'.  (Bug#24222)

8 years ago; Minor improvement in documentation of generators
Wilfred Hughes [Sat, 8 Oct 2016 13:44:47 +0000 (16:44 +0300)]
; Minor improvement in documentation of generators

* doc/lispref/control.texi (Generators): Add a 'require' to the
example code.  (Bug#24539)

8 years agoFix horizontal scrolling during Isearch
Eli Zaretskii [Sat, 8 Oct 2016 09:35:17 +0000 (12:35 +0300)]
Fix horizontal scrolling during Isearch

* lisp/isearch.el (isearch-update): Compute the window's body
width in a way that is correct when there are no fringes.
(Bug#24584)

8 years agoFix infloop in redisplay due to truncated lines and invisible text
Eli Zaretskii [Sat, 8 Oct 2016 07:52:52 +0000 (10:52 +0300)]
Fix infloop in redisplay due to truncated lines and invisible text

* src/xdisp.c (forward_to_next_line_start): Don't call
'get_next_display_element' after finding the end of line.  This
avoids setting the row's end position to the wrong value when the
next screen line begins with invisible text; that wrong value
caused set_cursor_from_row position the cursor in the wrong screen
line, and eventually triggered bug#24109.

8 years agogitmerge: Add cherry pick to gitmerge-skip-regexp
David Engster [Sun, 1 May 2016 19:05:18 +0000 (21:05 +0200)]
gitmerge: Add cherry pick to gitmerge-skip-regexp

* gitmerge.el (gitmerge-skip-regexp): Add "cherry picked from commit",
  which is the string appended by 'git cherry-pick -x'.

(cherry picked from commit f648e4866981b142fca788372e1fd9013a0bb16a)

8 years ago; Merge: some backports from master
Noam Postavsky [Fri, 7 Oct 2016 01:20:28 +0000 (21:20 -0400)]
; Merge: some backports from master

Regression in Emacs 25.1
* "Don't require isearch-update before isearch-done"

This bug actually crashes in emacs-25
* "Avoid error in icalendar--read-element"

Doc fixes
* "Make a menu less ambiguous"
* "Doc fix for url-http"

8 years agoImprove documentation of 'menu-bar-open'
Eli Zaretskii [Thu, 6 Oct 2016 18:46:48 +0000 (21:46 +0300)]
Improve documentation of 'menu-bar-open'

* lisp/term/w32-win.el (w32-menu-bar-open): Clarify that sometimes
two ESC keypresses are needed to exit the menu.

* doc/emacs/screen.texi (Menu Bar): Qualify the description of how
to exit menus.  (Bug#24596)

8 years agoFix compilation with MinGW runtime 3.22.2 and w32api 3.18.2
Eli Zaretskii [Thu, 6 Oct 2016 15:08:31 +0000 (18:08 +0300)]
Fix compilation with MinGW runtime 3.22.2 and w32api 3.18.2

* nt/inc/ms-w32.h (_WIN32_WINNT) [!MINGW_W64]: Undefine before
defining to avoid redefinition warnings.

* nt/inc/sys/stat.h (_SYS_STAT_H, _INC_STAT_H): Define, to avoid
inclusion of sys/stat.h from the system headers, which could then
lead to compilation errors due to redefinition of 'struct stat'
etc.  This is needed because latest versions of MinGW runtime
include sys/stat.h from wchar.h.

* src/image.c (__MINGW_MAJOR_VERSION) [WINDOWSNT]: Temporarily
redefine to 4 to avoid conflict between 2 definitions of
MemoryBarrier.  (Bug#24613)

Do not merge to master!

8 years agoAdd documentation note from Alex
John Wiegley [Tue, 4 Oct 2016 21:47:43 +0000 (14:47 -0700)]
Add documentation note from Alex

8 years ago* src/alloc.c: call only non-null finalizers
Aurelien Aptel [Fri, 30 Sep 2016 12:00:51 +0000 (14:00 +0200)]
* src/alloc.c: call only non-null finalizers

8 years agoClarify that doc fixes are okay in feature freeze
Karl Fogel [Tue, 4 Oct 2016 21:03:27 +0000 (16:03 -0500)]
Clarify that doc fixes are okay in feature freeze

* CONTRIBUTE (branches): Explain that doc fixes are always safe, even
on a release branch in feature freeze.  Tweak wording of paragraph
after that to avoid a misleading contrast.

8 years agoAvoid crashes when setting the cursor
Eli Zaretskii [Tue, 4 Oct 2016 19:12:08 +0000 (22:12 +0300)]
Avoid crashes when setting the cursor

* src/xdisp.c (display_and_set_cursor): Don't index glyphs of a
glyph row if hpos is out of valid bounds.  This avoids crashes in
some rare cases.  (Bug#24614)

8 years agoRestore 'command-debug-status' functionality
Philippe Vaucher [Tue, 4 Oct 2016 14:34:51 +0000 (17:34 +0300)]
Restore 'command-debug-status' functionality

* src/callint.c (Fcall_interactively): Bind command-debug-status
to nil.  This restores functionality inadvertently removed in
Emacs 25.1.  (Bug#24555)

* lisp/subr.el (command-debug-status): Declare obsolete.

* doc/lispref/debugging.texi (Internals of Debugger): Document
that 'command-debug-status' is obsolete.

8 years ago; Minor addition to CONTRIBUTE
Eli Zaretskii [Tue, 4 Oct 2016 05:59:37 +0000 (08:59 +0300)]
; Minor addition to CONTRIBUTE

* CONTRIBUTE (http): Mention that doc fixes should always go to
the release branch.

8 years agoDocument yank behavior in the right place
Karl Fogel [Mon, 3 Oct 2016 00:47:27 +0000 (19:47 -0500)]
Document yank behavior in the right place

* lisp/simple.el (yank): Document the handling of the
`yank-handled-properties' and `yank-excluded-properties' variables,
and the `yank-handler' text property.
(yank-pop): Refer to `yank' now (bug#286)

* lisp/subr.el (insert-for-yank): Refer to `yank' now.
(insert-for-yank-1): Refer to `insert-for-yank' now.

See this thread for discussion:

  https://lists.gnu.org/archive/html/emacs-devel/2016-09/threads.html#00329
  From: Karl Fogel
  To: Emacs Devel
  Subject: Question about intended behavior of 'insert-for-yank-1'.
  Date: Mon, 12 Sep 2016 00:17:14 -0500
  Message-ID: <874m5lr92d.fsf@red-bean.com>

8 years agoDocument nil args of compare-buffer-substrings
Philipp Stephani [Sun, 2 Oct 2016 17:58:39 +0000 (19:58 +0200)]
Document nil args of compare-buffer-substrings

* editfns.c (Fcompare_buffer_substrings): Document behavior when
the arguments are nil.

8 years ago* doc/misc/message.texi (Bcc Warning): Fix markup.
Katsumi Yamaoka [Mon, 3 Oct 2016 03:03:40 +0000 (03:03 +0000)]
* doc/misc/message.texi (Bcc Warning): Fix markup.

8 years ago* doc/misc/message.texi (Bcc Warning):
Katsumi Yamaoka [Mon, 3 Oct 2016 02:43:20 +0000 (02:43 +0000)]
* doc/misc/message.texi (Bcc Warning):
Document mml-secure-safe-bcc-list.

8 years agoDon't require isearch-update before isearch-done
Noam Postavsky [Sun, 4 Sep 2016 03:38:35 +0000 (23:38 -0400)]
Don't require isearch-update before isearch-done

It is useful to be able to call `isearch-done' unconditionally to
ensure a non-isearching state.

* lisp/isearch.el (isearch-done): Check that `isearch--current-buffer'
is a live buffer before using it (Bug #21091).
* test/lisp/isearch-tests.el (isearch--test-done): Test it.

(cherry picked from commit 68f4b5292781bc331b040105c4079902b993835c)

8 years agoAvoid error in icalendar--read-element
Peder O. Klingenberg [Tue, 30 Aug 2016 12:44:16 +0000 (14:44 +0200)]
Avoid error in icalendar--read-element

* lisp/calendar/icalendar.el (icalendar--read-element): Avoid a regex
stack overflow by not using regex to extract values from calendar
events. (Bug#24315)

(cherry picked from commit 55dde6c1a21a792d3d75c19e612c74dd054aaf1e)

8 years agoMake a menu less ambiguous
Lars Ingebrigtsen [Thu, 28 Apr 2016 13:53:15 +0000 (15:53 +0200)]
Make a menu less ambiguous

* doc/emacs/custom.texi (Key Bindings): The Modifier Keys node
is about using modifier keys, not binding them (bug#10942).

(cherry picked from commit 214f85a0a68b96a552ca605d601b33f6eef5c4ca)

8 years agoDoc fix for url-http
Devon Sean McCullough [Fri, 25 Dec 2015 21:21:22 +0000 (22:21 +0100)]
Doc fix for url-http

* lisp/url/url-http.el (url-http): Document better return values
  (bug#13187) (tiny change)

(cherry picked from commit 344303c8d9cb03d4778a73940e80e966280aa694)

8 years ago* lisp/frame.el (blink-cursor-delay): Doc fix. (Bug#24372)
Eli Zaretskii [Sat, 1 Oct 2016 08:23:18 +0000 (11:23 +0300)]
* lisp/frame.el (blink-cursor-delay): Doc fix.  (Bug#24372)

8 years ago* lisp/gnus/gnus-art.el (gnus-button-handle-library): Fix typo.
Katsumi Yamaoka [Thu, 29 Sep 2016 23:25:42 +0000 (23:25 +0000)]
* lisp/gnus/gnus-art.el (gnus-button-handle-library): Fix typo.

8 years agoRegexp Functions doc minor fixes
Paul Eggert [Tue, 27 Sep 2016 00:00:03 +0000 (17:00 -0700)]
Regexp Functions doc minor fixes

* doc/lispref/searching.texi (Regexp Functions):
Fix misspelling of “matching”.  Use @table for table.
Reformat code example to fit into info file width (Bug#17862).

8 years agoBackport mm-convert-shr-links fix from master (bug#23964)
Katsumi Yamaoka [Mon, 26 Sep 2016 22:34:53 +0000 (22:34 +0000)]
Backport mm-convert-shr-links fix from master (bug#23964)

* lisp/gnus/mm-decode.el (mm-convert-shr-links):
Preserve key bindings that shr adds (bug#23964).

8 years agoImprove documentation of 'expand-abbrev' and wrapper hooks
Eli Zaretskii [Mon, 26 Sep 2016 16:02:01 +0000 (19:02 +0300)]
Improve documentation of 'expand-abbrev' and wrapper hooks

* lisp/simple.el (filter-buffer-substring-functions)
(buffer-substring--filter): Add a link to 'with-wrapper-hook' as
the place to look for documentation of wrapper hooks.
* lisp/minibuffer.el (completion-in-region-functions)
(completion--in-region): Add a link to 'with-wrapper-hook' as the
place to look for documentation of wrapper hooks.
* lisp/abbrev.el (expand-abbrev, abbrev--default-expand): Clarify
the doc strings.  (Bug#24540)

* doc/lispref/text.texi (Buffer Contents): Mention
'with-wrapper-hook's doc string as the place to learn about that
obsolete facility.

8 years agoMinor copyedits of MS-Windows installation instructions
Eli Zaretskii [Sun, 25 Sep 2016 15:16:07 +0000 (18:16 +0300)]
Minor copyedits of MS-Windows installation instructions

* nt/INSTALL:
* nt/README.W32: Add URL of Emacs dependencies on alpha.gnu.org.

8 years agoFix display of cursor when 'blink-cursor-delay' has small value
Eli Zaretskii [Fri, 23 Sep 2016 14:25:55 +0000 (17:25 +0300)]
Fix display of cursor when 'blink-cursor-delay' has small value

* lisp/frame.el (blink-cursor-check, blink-cursor-mode):
Protect ourselves against too small values of blink-cursor-delay.
This avoids erratic display of the cursor, or even failure to
display it, when user types text at high speed or leans on a key
to invoke the keyboard auto-repeat feature.  (Bug#24372)

8 years agoImprove the doc string of 'format'
Eli Zaretskii [Fri, 16 Sep 2016 09:55:15 +0000 (12:55 +0300)]
Improve the doc string of 'format'

* src/editfns.c (Fformat): Fix ambiguity in the doc string's usage
of a literal period.  (Bug#24407)

This was backported from master
(cherry picked from commit 7123896626b06c26c4e37839ab41e41980c8f433)

8 years agoImprove doc strings in whitespace.el
Eli Zaretskii [Fri, 16 Sep 2016 09:46:15 +0000 (12:46 +0300)]
Improve doc strings in whitespace.el

* lisp/whitespace.el (whitespace-mode, whitespace-newline-mode)
(global-whitespace-mode, global-whitespace-newline-mode): Improve
the doc strings.  (Bug#24413)

This was backported from master
(cherry picked from commit 3462fe73351f3da5bc3ebf8296ee44dd2e6b1dbc)

8 years agoImprove detectability of 'next-logical-line' and 'previous-logical-line'
Eli Zaretskii [Fri, 16 Sep 2016 09:31:41 +0000 (12:31 +0300)]
Improve detectability of 'next-logical-line' and 'previous-logical-line'

* lisp/simple.el (next-line, previous-line): Mention
'next-logical-line' and 'previous-logical-line' in the doc
strings.  (Bug#24443)

This was backported from master
(cherry picked from commit e95d0d15bb1534803b0adb3c3a927c8beb7d4e79)

8 years agoFix (next-frame nil t) crash (Bug#24281)
Martin Rudalics [Mon, 22 Aug 2016 06:33:48 +0000 (08:33 +0200)]
Fix (next-frame nil t) crash (Bug#24281)

* src/frame.c (candidate_frame): Check minibuf argument before
comparing it to zero (Bug#24281).

This was backported from master
(cherry picked from commit dc491c3df305a73908fe8de20b7c428a5b38c846)

8 years agoFix debugging of string-match-p errors
Noam Postavsky [Sat, 6 Aug 2016 02:11:00 +0000 (22:11 -0400)]
Fix debugging of string-match-p errors

* src/eval.c (call_debugger): Bind inhibit-changing-match-data to nil so
that debugger code that needs to do regexp match won't break
(Bug #23949, Bug #24166, Bug#16294).

This was backported from master
(cherry picked from commit 7fb75680b38fe0805c2ff7e9cca3bec8121ba984)

8 years agoFix region display while dragging mouse
Eli Zaretskii [Sat, 30 Jul 2016 08:32:02 +0000 (11:32 +0300)]
Fix region display while dragging mouse

* lisp/mouse.el (mouse-drag-track): Reset deactivate-mark in the
buffer of the drag event, to allow mark to be set and the region
be shown as we drag the mouse.  (Bug#24030)

This was backported from master
(cherry picked from commit 7d58b02f363ab02961faa950d1ba727df96f2f19)

8 years agoFix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'
Eli Zaretskii [Sat, 21 May 2016 09:35:08 +0000 (12:35 +0300)]
Fix 'vertical-motion' and 'posn-at-point' under 'visual-line-mode'

* src/xdisp.c (move_it_in_display_line_to): Don't assume we can
wrap on a whitespace character if it's followed by another
whitespace character.  When returning under WORD_WRAP for a screen
line that is continued, restore to wrap point when atpos/atx
position would be displayed on the next screen line due to
line-wrap.  (Bug#23570)

This is backported from master
(cherry picked from commit 99848b37d2c3e14c0af45fc6da437a806aa58a80)

8 years agoImprove display of tex-verbatim and Info quoted
Paul Eggert [Fri, 13 May 2016 20:30:33 +0000 (13:30 -0700)]
Improve display of tex-verbatim and Info quoted

Problem reported by Glenn Morris (Bug#19889).
* doc/emacs/display.texi (Standard Faces):
* doc/lispref/display.texi (Basic Faces):
* etc/NEWS: Mention fixed-pitch-serif.
* lisp/faces.el (face-font-family-alternatives):
New family alias Monospace Serif.
(fixed-pitch-serif): New face, which uses the new family.
* lisp/info.el (Info-quoted):
* lisp/textmodes/tex-mode.el (tex-verbatim): Use the new face.
* test/lisp/legacy/font-parse-tests.el (font-parse-tests--data):
Add test case for Monospace Serif.

This is backport from master
(cherry picked from commit 36906806ccfc0e53f1d8c365ab0d7151288b7833)

8 years agoDocument how to check for ImageMagick support
Lars Ingebrigtsen [Sat, 30 Apr 2016 19:39:21 +0000 (21:39 +0200)]
Document how to check for ImageMagick support

* doc/lispref/display.texi (ImageMagick Images): Say how to
check for ImageMagick support, which isn't quite obvious
(bug#20702).

This is backport from master
(cherry picked from commit faf07d646575c78d6d956ce91820ebbf38308553)

8 years agoRun find-function-after-hook after finding a symbol
Tino Calancha [Mon, 25 Apr 2016 17:27:06 +0000 (19:27 +0200)]
Run find-function-after-hook after finding a symbol

* lisp/emacs-lisp/find-func.el (find-library):
* lisp/help-mode.el (help-function-def, help-variable-def):
Run `find-function-after-hook' inside the help-function of the
buttons (bug#22583).
* etc/NEWS: Mention the change.

This is a backport from master.
(cherry picked from commit f069d854508946bcc03e4c77ceb430748e3ab6d7)

8 years agoDocument 'timerp'
Eli Zaretskii [Fri, 23 Sep 2016 08:43:25 +0000 (11:43 +0300)]
Document 'timerp'

* doc/lispref/os.texi (Timers): Document 'timerp'.  (Bug#24511)
Improve indexing.

8 years agoImprove documentation of overlay priorities
Eli Zaretskii [Fri, 23 Sep 2016 08:27:18 +0000 (11:27 +0300)]
Improve documentation of overlay priorities

* doc/lispref/display.texi (Overlay Properties): Minor copyedits.
By popular demand, mention the '(PRIMNARY . SECONDARY)' form of
overlay properties used for the region.  (Bug#20253)

8 years agoFix 'dired-compress-files'
Eli Zaretskii [Fri, 23 Sep 2016 08:08:34 +0000 (11:08 +0300)]
Fix 'dired-compress-files'

* lisp/dired-aux.el (dired-do-compress-to): Make sure the archive
file name is fully expanded by running it through
'expand-file-name'.  Suggested by Drew Adams <drew.adams@oracle.com>.
(Bug#24486)  Doc fix.
* lisp/dired.el: Regenerated changes in autoloads.

8 years agoUpdate commentary of STRING_CHAR and FETCH_MULTIBYTE_CHAR
Eli Zaretskii [Fri, 23 Sep 2016 07:52:07 +0000 (10:52 +0300)]
Update commentary of STRING_CHAR and FETCH_MULTIBYTE_CHAR

* src/character.h (STRING_CHAR):
* src/buffer.h (FETCH_MULTIBYTE_CHAR): Update commentary: these
two macros no longer do any character unification, so the caveats
in those comments are no longer pertinent.

8 years agoIncrement Emacs version to 25.1.50
Eli Zaretskii [Fri, 23 Sep 2016 07:46:26 +0000 (10:46 +0300)]
Increment Emacs version to 25.1.50

* README:
* configure.ac:
* etc/NEWS:
* msdos/sed2v2.inp: Bump the version to 25.1.50.

8 years agoDocument the optional zlib library in MS-Windows builds
Eli Zaretskii [Wed, 21 Sep 2016 15:28:30 +0000 (18:28 +0300)]
Document the optional zlib library in MS-Windows builds

* nt/README.W32:
* nt/INSTALL.W64:
* nt/INSTALL: Mention the optional text decompression support and
the zlib library.

8 years ago; * admin/notes/unicode: Mention BidiCharacterTest.txt.
Eli Zaretskii [Wed, 21 Sep 2016 15:14:50 +0000 (18:14 +0300)]
; * admin/notes/unicode: Mention BidiCharacterTest.txt.

8 years agoFix tagging of DEFUN by etags
Eli Zaretskii [Wed, 21 Sep 2016 15:10:29 +0000 (18:10 +0300)]
Fix tagging of DEFUN by etags

* lib-src/etags.c (C_entries): Tag DEFUN twice: once with its C
name, and then again with its Lisp name.  This restores the
ability to find Lisp primitives by their C name, which was lost
when the etags back-end was switched to a more strict search
criteria.

* test/etags/ETAGS.good_1:
* test/etags/ETAGS.good_2:
* test/etags/ETAGS.good_3:
* test/etags/ETAGS.good_4:
* test/etags/ETAGS.good_5:
* test/etags/ETAGS.good_6:
* test/etags/CTAGS.good: Adapt to the changes in etags.c wrt
tagging DEFUN.

8 years agoAvoid resetting track-mouse by mouse clicks
Eli Zaretskii [Wed, 21 Sep 2016 15:00:18 +0000 (18:00 +0300)]
Avoid resetting track-mouse by mouse clicks

* lisp/mouse.el (mouse-drag-line, mouse-drag-track): Don't assume
the previous value of track-mouse is nil; instead, save and
restore the previous value.  (Bug#24480)

8 years agoImprove nt/README.W32 instructions
Eli Zaretskii [Tue, 20 Sep 2016 15:25:41 +0000 (18:25 +0300)]
Improve nt/README.W32 instructions

* nt/README.W32: Add instructions for installing 64-bit builds of
optional libraries.  (Bug#24470)

8 years agoDocument that desktop file overrides frame parameters
Eli Zaretskii [Sat, 17 Sep 2016 09:20:09 +0000 (12:20 +0300)]
Document that desktop file overrides frame parameters

* doc/emacs/misc.texi (Saving Emacs Sessions):
* doc/emacs/frames.texi (Frame Parameters): Document that frame
parameters restored by desktop.el take precedence over the
customizations in the init file, and explain how to countermand
that.  For the details of the issue, see
http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00318.html.

8 years ago; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 release emacs-25.1
Nicolas Petton [Thu, 15 Sep 2016 21:30:09 +0000 (23:30 +0200)]
; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 release

8 years ago* etc/AUTHORS: Regenerate the AUTHORS file
Nicolas Petton [Thu, 15 Sep 2016 21:08:14 +0000 (23:08 +0200)]
* etc/AUTHORS: Regenerate the AUTHORS file

8 years agoUpdate admin/authors.el
Eli Zaretskii [Thu, 15 Sep 2016 19:21:19 +0000 (22:21 +0300)]
Update admin/authors.el

* admin/authors.el (authors-fixed-entries): Add an entry for Bob
Weiner.

8 years agoUpdate Antinews in ELisp manual
Eli Zaretskii [Wed, 14 Sep 2016 14:20:24 +0000 (17:20 +0300)]
Update Antinews in ELisp manual

* doc/lispref/anti.texi (Antinews): Update for Emacs 25.1.
* doc/lispref/elisp.texi (Top): Update the main menu entry for
Antinews.

8 years agoFix comments on window height macros
Noam Postavsky [Sun, 11 Sep 2016 20:25:13 +0000 (16:25 -0400)]
Fix comments on window height macros

* src/window.h (WINDOW_MODE_LINE_HEIGHT, WINDOW_HEADER_LINE_HEIGHT): Fix
confusing claim that "height is in pixels and in lines"; in fact it's in
pixels.