]> git.eshelyaron.com Git - emacs.git/log
emacs.git
7 years ago* lisp/vc/ediff-util.el (ediff-janitor): Doc fix. (Bug#25046)
Eli Zaretskii [Fri, 2 Dec 2016 09:29:10 +0000 (11:29 +0200)]
* lisp/vc/ediff-util.el (ediff-janitor): Doc fix.  (Bug#25046)

7 years ago; * doc/emacs/programs.texi (Man Page): Fix last change.
Eli Zaretskii [Fri, 2 Dec 2016 09:14:11 +0000 (11:14 +0200)]
; * doc/emacs/programs.texi (Man Page): Fix last change.

7 years agoImprove indexing of 'man'
Eli Zaretskii [Fri, 2 Dec 2016 09:10:04 +0000 (11:10 +0200)]
Improve indexing of 'man'

* doc/emacs/programs.texi (Man Page): Index 'man', not
'manual-entry', as the latter is an alias for the former.
Suggested by Hong Xu <hong@topbug.net>.  (Bug#25033)

7 years agoPort to Sun C 5.14
Paul Eggert [Fri, 2 Dec 2016 07:13:31 +0000 (23:13 -0800)]
Port to Sun C 5.14

Backport from master.  Sun C 5.14 supports C11 but not GCC
extensions, and so refuses to compile Emacs without this patch.
* src/alloc.c (lmalloc, lrealloc): Don't use INT_ADD_WRAPV on
size_t, as in general this macro is restricted to signed types.

7 years agoFix mail-combine-fields
Richard Stallman [Sat, 3 Sep 2016 01:55:09 +0000 (21:55 -0400)]
Fix mail-combine-fields

* lisp/mail/sendmail.el (mail-combine-fields): Call `save-excursion' to
avoid losing our place in the search loop.

(cherry picked from commit 5fbba6cceaf843cfca449eb000a0a65243b61808)

7 years agoFix documentation of `window-combination-resize'
Martin Rudalics [Thu, 1 Dec 2016 09:51:11 +0000 (10:51 +0100)]
Fix documentation of `window-combination-resize'

* src/window.c (Vwindow_combination_resize): Fix doc-string.
* doc/lispref/windows.texi (Recombining Windows): Fix
documentation of `window-combination-resize'.

7 years agoTypo fixes in elisp manual
Bogdan Creanga [Tue, 29 Nov 2016 10:07:15 +0000 (19:07 +0900)]
Typo fixes in elisp manual

* doc/lispref/sequences.texi: Add missing '4' in result (Bug#25047).
* doc/lispref/strings.texi (Text Comparison): Avoid duplicate
definitions of 'string-prefix-p' and 'string-suffix-p'.
* doc/lispref/symbols.texi (Definitions): Pluralize 'definitions'.

Copyright-paperwork-exempt: yes

7 years ago; Revert "Guard terminal par. in XTerm mouse mode"
Philipp Stephani [Mon, 28 Nov 2016 18:45:55 +0000 (19:45 +0100)]
; Revert "Guard terminal par. in XTerm mouse mode"

This reverts commit d4e15492f7c55eabdadc6f3735b84972748e6c0d.

Since emacs-25 should only contain regression fixes and doc fixes, this
commit was moved to the master branch.

7 years ago; Update ChangeLog.2, etc/AUTHORS and ldef-boot.el for Emacs 25.1.90 pretest emacs-25.1.90
Nicolas Petton [Mon, 28 Nov 2016 18:04:23 +0000 (19:04 +0100)]
; Update ChangeLog.2, etc/AUTHORS and ldef-boot.el for Emacs 25.1.90 pretest

7 years agoFix 'expand-file-name' during startup on MS-Windows
Eli Zaretskii [Mon, 28 Nov 2016 15:43:25 +0000 (17:43 +0200)]
Fix 'expand-file-name' during startup on MS-Windows

* src/w32.c (w32_init_file_name_codepage): New function, resets
file_name_codepage and w32_ansi_code_page to undo the values
recorded during dumping.
(codepage_for_filenames): Fix an embarrassing typo.  Ignore the
cached value of file-name encoding if it is nil, i.e. not
initialized yet.  Actually cache the last used file-name encoding
to avoid calling APIs when not necessary.

* src/w32.h (w32_init_file_name_codepage): Add prototype.

* src/w32term.c (syms_of_w32term): Set the value of
w32_unicode_filenames according to the OS version.  This avoids
resetting it during startup, which then causes temacs to run with
the incorrect value.

* src/emacs.c (main): Call w32_init_file_name_codepage early
during the startup.

* src/fileio.c (Fexpand_file_name) [WINDOWSNT]: Update 'newdir'
after converting $HOME to a UTF-8 string, so that 'newdirlim' is
consistent with it.  (Bug#25038)

* lisp/international/mule-cmds.el (set-locale-environment): Set
'default-file-name-coding-system' to the ANSI codepage even in
non-interactive sessions.

* lisp/files.el (directory-abbrev-alist, abbreviated-home-dir):
Doc fix.
(abbreviate-file-name): Decode 'abbreviated-home-dir' if it is a
unibyte string.

* doc/lispref/files.texi (Directory Names): Index
'directory-abbrev-alist'.

7 years ago; ChangeLog.2 update
Nicolas Petton [Mon, 28 Nov 2016 15:24:59 +0000 (16:24 +0100)]
; ChangeLog.2 update

7 years ago* admin/authors.el (authors-renamed-files-alist): Addition.
Nicolas Petton [Mon, 28 Nov 2016 15:24:21 +0000 (16:24 +0100)]
* admin/authors.el (authors-renamed-files-alist): Addition.

7 years agoTweak refcard note about documentation location
Glenn Morris [Mon, 28 Nov 2016 00:38:56 +0000 (16:38 -0800)]
Tweak refcard note about documentation location

* etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
* etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
* etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
* etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex:
* etc/refcards/fr-survival.tex, etc/refcards/gnus-refcard.tex:
* etc/refcards/orgcard.tex, etc/refcards/pl-refcard.tex:
* etc/refcards/pt-br-refcard.tex, etc/refcards/refcard.tex:
* etc/refcards/ru-refcard.tex, etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex, etc/refcards/sk-survival.tex:
* etc/refcards/survival.tex, etc/refcards/vipcard.tex:
* etc/refcards/viperCard.tex: Tweak documentation url.

7 years agoImprove treatment of Fortran's "class is"
Glenn Morris [Mon, 28 Nov 2016 00:05:02 +0000 (16:05 -0800)]
Improve treatment of Fortran's "class is"

* lisp/progmodes/f90.el (f90-start-block-re, f90-no-block-limit):
Handle "class is".  (Bug#25039)
* test/automated/f90.el (f90-test-bug25039): New test.

7 years agoBump Emacs version to 25.1.90
Nicolas Petton [Sun, 27 Nov 2016 23:01:10 +0000 (00:01 +0100)]
Bump Emacs version to 25.1.90

* README:
* configure.ac:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 25.1.90

7 years ago; Revert "Bump Emacs version"
Nicolas Petton [Sun, 27 Nov 2016 22:58:31 +0000 (23:58 +0100)]
; Revert "Bump Emacs version"

The version should be 25.1.90, not 25.2.90.

This reverts commit 596289bc8d2c4dfb51e32cde3df4350855c5c084.

7 years agoBump Emacs version
Nicolas Petton [Sun, 27 Nov 2016 19:44:43 +0000 (20:44 +0100)]
Bump Emacs version

* README:
* configure.ac:
* etc/NEWS:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 25.2.90

7 years ago; ChangeLog.2 update
Nicolas Petton [Sun, 27 Nov 2016 19:42:28 +0000 (20:42 +0100)]
; ChangeLog.2 update

7 years agoHandle TeX comments when making new paragraph
Karl Fogel [Sat, 26 Nov 2016 05:44:48 +0000 (23:44 -0600)]
Handle TeX comments when making new paragraph

* lisp/textmodes/tex-mode.el (tex-handle-newline): New function.
  Handle comment case directly, and dispatch to `tex-terminate-paragraph'
  for original behavior in non-comment case.
  (tex-mode-map): Bind above to C-j, replacing `tex-terminate-paragraph'.

7 years agoRestore keystroke echo in 'C-q'
Eli Zaretskii [Fri, 25 Nov 2016 10:06:26 +0000 (12:06 +0200)]
Restore keystroke echo in 'C-q'

* lisp/simple.el (read-quoted-char): Use 'read-event' instead of
'read-key', to avoid losing the keystroke echo in 'C-q'.  (Bug#24635)

7 years agoImprove documentation of 'current-word'
Eli Zaretskii [Fri, 25 Nov 2016 09:44:24 +0000 (11:44 +0200)]
Improve documentation of 'current-word'

* lisp/simple.el (current-word): Clarify and improve the doc
string.  (Bug#24979)

7 years agoFix a typo in an Eshell defcustom
Chunyang Xu [Fri, 25 Nov 2016 09:19:52 +0000 (11:19 +0200)]
Fix a typo in an Eshell defcustom

* lisp/eshell/esh-mode.el (eshell-scroll-to-bottom-on-output): Fix
a typo in the 'others' standard value.  (Bug#24983)

7 years agoMinor copyedits of electric-pair-mode
Hong Xu [Thu, 24 Nov 2016 19:22:47 +0000 (21:22 +0200)]
Minor copyedits of electric-pair-mode

* doc/emacs/programs.texi (Matching): Add index entries.  Fix
typos.  (Bug#25012)

Copyright-paperwork-exempt: yes

7 years ago; Minor copyedit in the Emacs manual
Eli Zaretskii [Thu, 24 Nov 2016 17:37:38 +0000 (19:37 +0200)]
; Minor copyedit in the Emacs manual

* doc/emacs/maintaining.texi (Select Tags Table): Remove text that
is no longer pertinent.  (The "explained above" part was moved to
another place in the manual a long time ago.)

7 years agoFix documentation of 'invocation-directory'
Eli Zaretskii [Thu, 24 Nov 2016 17:22:21 +0000 (19:22 +0200)]
Fix documentation of 'invocation-directory'

* doc/lispref/os.texi (System Environment): Fix wording of the
description of 'invocation-directory'.  (Bug#24999)

7 years ago* admin/authors.el (authors-aliases): Add an entry.
Glenn Morris [Wed, 23 Nov 2016 19:19:31 +0000 (14:19 -0500)]
* admin/authors.el (authors-aliases): Add an entry.

7 years ago; Fix pl-refcard.tex
Eli Zaretskii [Wed, 23 Nov 2016 15:33:19 +0000 (17:33 +0200)]
; Fix pl-refcard.tex

* etc/refcards/pl-refcard.tex: Fix last change.

7 years agoGuard terminal parameter in XTerm mouse mode
Philipp Stephani [Tue, 22 Nov 2016 20:32:11 +0000 (21:32 +0100)]
Guard terminal parameter in XTerm mouse mode

It has been observed (in the HTerm terminal emulator) that the
event stored in the 'xterm-mouse-last-down' terminal parameter gets
overwritten during a mouse drag operation, causing Emacs to attempt to
synthesize the non-existing <drag-mouse-0> event.  Copy the event into
the terminal parameter to protect against such modifications.

* lisp/xt-mouse.el (xterm-mouse-translate-1): Guard against modification
of input event list.

7 years ago; * src/lread.c (openp): Correct an inaccuracy in commentary.
Eli Zaretskii [Tue, 22 Nov 2016 16:34:51 +0000 (18:34 +0200)]
; * src/lread.c (openp): Correct an inaccuracy in commentary.

7 years ago* etc/AUTHORS: Regenerate the AUTHORS file
Nicolas Petton [Mon, 21 Nov 2016 16:51:01 +0000 (17:51 +0100)]
* etc/AUTHORS: Regenerate the AUTHORS file

7 years agoUpdate ChangeLog files and authors.el
Nicolas Petton [Mon, 21 Nov 2016 16:50:17 +0000 (17:50 +0100)]
Update ChangeLog files and authors.el

* admin/authors.el (authors-renamed-files-alist): Add entries for
  obsolete files.
* ChangeLog.2: Update.

7 years agoFix menu bindings of Dired 'A' and 'Q' commands
Eli Zaretskii [Mon, 21 Nov 2016 16:22:10 +0000 (18:22 +0200)]
Fix menu bindings of Dired 'A' and 'Q' commands

* lisp/dired.el (dired-mode-map): Rebind "Search Files" and "Query
Replace in Files" menu items to 'dired-do-find-regexp' and
'dired-do-find-regexp-and-replace', respectively.  (Bug#24977)

7 years agoAvoid errors in shr-pixel-column due to dedicated windows
Eli Zaretskii [Sun, 20 Nov 2016 19:08:47 +0000 (21:08 +0200)]
Avoid errors in shr-pixel-column due to dedicated windows

* lisp/net/shr.el (shr-pixel-column): If we are switching to
another buffer in the selected window, make that window
temporarily non-dedicated.  (Bug#24950)

7 years agoUpdate format-time-string documentation
Tino Calancha [Sun, 20 Nov 2016 06:35:41 +0000 (15:35 +0900)]
Update format-time-string documentation

* doc/lispref/os.texi (Time Parsing):
Document %F, %g, %G, %u and %V.

7 years ago; Spelling fix
Paul Eggert [Sat, 19 Nov 2016 22:11:08 +0000 (14:11 -0800)]
; Spelling fix

7 years ago* admin/release-process: Update versions and blocking bug numbers.
Eli Zaretskii [Sat, 19 Nov 2016 07:23:33 +0000 (09:23 +0200)]
* admin/release-process: Update versions and blocking bug numbers.

7 years agoImprove documentation of functions that accept time values
Eli Zaretskii [Fri, 18 Nov 2016 11:02:34 +0000 (13:02 +0200)]
Improve documentation of functions that accept time values

* doc/lispref/os.texi (Time Calculations): Mention the meaning of
'nil' or a scalar number as the time-value argument.  Add a
cross-reference to 'float-time' for computing a time difference as
a scalar number of seconds.

* src/editfns.c (Fformat_time_string, Ftime_less_p)
(Ftime_subtract, Ftime_add, Fdecode_time, Fcurrent_time_string)
(Fcurrent_time_zone): Mention in the doc strings the meaning of
nil argument and the fact that a time value can be a scalar number
of seconds since the epoch.
(Ftime_subtract): Mention 'float-time'.

7 years agoSpeed up initialization by preferring /dev/urandom to GnuTLS
Daniel Colascione [Thu, 6 Oct 2016 19:46:36 +0000 (12:46 -0700)]
Speed up initialization by preferring /dev/urandom to GnuTLS

* src/sysdep.c (init_random): Try /dev/urandom before GnuTLS.

(cherry picked from commit a37eba849eddc41375ad73974f6fcb1258aa8eba)

7 years agoAdd a comment in generated refcards about the source
Glenn Morris [Fri, 18 Nov 2016 07:24:03 +0000 (23:24 -0800)]
Add a comment in generated refcards about the source

* etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
* etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
* etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
* etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex:
* etc/refcards/fr-survival.tex, etc/refcards/gnus-refcard.tex:
* etc/refcards/orgcard.tex, etc/refcards/pl-refcard.tex:
* etc/refcards/pt-br-refcard.tex, etc/refcards/refcard.tex:
* etc/refcards/ru-refcard.tex, etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex, etc/refcards/sk-survival.tex:
* etc/refcards/survival.tex, etc/refcards/vipcard.tex:
* etc/refcards/viperCard.tex: Add comment about the source.

7 years ago; * etc/refcards/calccard.tex: Remove obsolete comment.
Glenn Morris [Fri, 18 Nov 2016 06:59:36 +0000 (22:59 -0800)]
; * etc/refcards/calccard.tex: Remove obsolete comment.

8 years agojs-mode: Fix indent problem after a regexp
Dmitry Gutov [Wed, 16 Nov 2016 23:58:59 +0000 (01:58 +0200)]
js-mode: Fix indent problem after a regexp

* lisp/progmodes/js.el (js--looking-at-operator-p): Check that the
slash is not ending a regexp (bug#24854).

8 years agoFix sluggish display of symbols in UTF-8 language environment
Eli Zaretskii [Wed, 16 Nov 2016 16:11:33 +0000 (18:11 +0200)]
Fix sluggish display of symbols in UTF-8 language environment

* lisp/international/fontset.el (setup-default-fontset): Make sure
Symbola and FreeMono are set up in the default fontset as belonging
to the "iso10646-1" registry.  In the UTF-8 locale, this avoids a
long and futile search for a suitable font, whose side effect is a
lot of consing, which then hits the font-cache compacting issue,
and causes very sluggish redisplay of characters displayed by
these fonts.  All this happens because the default for the
registry is "iso8859-1".  (Bug#24953)

8 years agoDon't confuse how Texinfo outputs @var with the input
Glenn Morris [Wed, 16 Nov 2016 00:18:28 +0000 (19:18 -0500)]
Don't confuse how Texinfo outputs @var with the input

* doc/emacs/rmail.texi (Movemail):
* doc/lispref/control.texi (Pattern matching case statement):
* doc/lispref/frames.texi (Size and Position):
* doc/lispref/processes.texi (Asynchronous Processes):
* doc/lispref/text.texi (Document Object Model):
* doc/lispref/windows.texi (Coordinates and Windows):
Do not upper-case the argument of @var.

8 years ago* doc/lispref/display.texi (Scroll Bars):
Glenn Morris [Wed, 16 Nov 2016 00:07:36 +0000 (19:07 -0500)]
* doc/lispref/display.texi (Scroll Bars):
* doc/lispref/frames.texi (Size and Position):
* doc/lispref/windows.texi (Window Sizes): Fix arglist typos.

8 years ago* doc/emacs/cmdargs.texi (Initial Options): Copyedit for --daemon.
Glenn Morris [Tue, 15 Nov 2016 23:53:25 +0000 (18:53 -0500)]
* doc/emacs/cmdargs.texi (Initial Options): Copyedit for --daemon.

8 years agoMore fixes in copyright notices in etc/refcards/
Eli Zaretskii [Tue, 15 Nov 2016 17:01:07 +0000 (19:01 +0200)]
More fixes in copyright notices in etc/refcards/

* etc/refcards/calccard.tex:
* etc/refcards/cs-dired-ref.tex:
* etc/refcards/cs-refcard.tex:
* etc/refcards/cs-survival.tex:
* etc/refcards/de-refcard.tex:
* etc/refcards/dired-ref.tex:
* etc/refcards/fr-dired-ref.tex:
* etc/refcards/fr-refcard.tex:
* etc/refcards/fr-survival.tex:
* etc/refcards/orgcard.tex:
* etc/refcards/pl-refcard.tex:
* etc/refcards/pt-br-refcard.tex:
* etc/refcards/refcard.tex:
* etc/refcards/ru-refcard.tex:
* etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex:
* etc/refcards/sk-survival.tex:
* etc/refcards/survival.tex:
* etc/refcards/vipcard.tex:
* etc/refcards/viperCard.tex: Change "GNU Emacs" to "this
document" in copyright notices.  (Bug#24520)

8 years agoUpdate copyright text in refcards
Eli Zaretskii [Sun, 13 Nov 2016 16:20:59 +0000 (18:20 +0200)]
Update copyright text in refcards

* etc/refcards/viperCard.tex:
* etc/refcards/vipcard.tex:
* etc/refcards/survival.tex:
* etc/refcards/sk-survival.tex:
* etc/refcards/sk-dired-ref.tex:
* etc/refcards/sk-refcard.tex:
* etc/refcards/ru-refcard.tex:
* etc/refcards/refcard.tex:
* etc/refcards/pt-br-refcard.tex:
* etc/refcards/pl-refcard.tex:
* etc/refcards/orgcard.tex:
* etc/refcards/gnus-refcard.tex:
* etc/refcards/fr-survival.tex):
* etc/refcards/fr-refcard.tex:
* etc/refcards/fr-dired-ref.tex:
* etc/refcards/dired-ref.tex:
* etc/refcards/de-refcard.tex:
* etc/refcards/cs-survival.tex:
* etc/refcards/cs-refcard.tex:
* etc/refcards/cs-dired-ref.tex:
* etc/refcards/calccard.tex: Update the copyright blurb.  (Bug#24520)

8 years agoFix Outline command names
Eli Zaretskii [Sat, 12 Nov 2016 19:40:33 +0000 (21:40 +0200)]
Fix Outline command names

* doc/emacs/text.texi (Foldout): Use the outline-* names instead
of the obsolete aliases.  (Bug#24890)

8 years agoSend text received by bracketed paste to process
Philipp Stephani [Sun, 6 Nov 2016 18:21:10 +0000 (19:21 +0100)]
Send text received by bracketed paste to process

See Bug#24639.

* term.el (term--xterm-paste): New function.
(term-raw-map): Use it.
(xterm--pasted-text): Declare function from xterm.el.

8 years agoCorrect the statement about programming modes always running prog-mode-hook.
Alan Mackenzie [Thu, 10 Nov 2016 21:22:05 +0000 (21:22 +0000)]
Correct the statement about programming modes always running prog-mode-hook.

doc/emacs/modes.texi (Major Modes): Amend the statement about programming
modes running prog-mode-hook to say that it applies to many (not all) such
modes, and specifying exactly which modes.

8 years agoImprove documentation of 'occur'
Eli Zaretskii [Thu, 10 Nov 2016 16:25:21 +0000 (18:25 +0200)]
Improve documentation of 'occur'

* doc/emacs/search.texi (Other Repeating Search): Clarify how to
use Occur with search strings from last Isearch.  (Bug#24890)

8 years agoDo call debugger on failed cl-assert
Noam Postavsky [Tue, 8 Nov 2016 01:03:48 +0000 (20:03 -0500)]
Do call debugger on failed cl-assert

"Don't call debug on failed cl-assert..." removed the call to `debug' in
cl--assertion-failed because `debug' calls `kill-emacs' in batch mode,
thus messing up ert test runs.  However, calling the debugger is useful
because it allows catching failed assertions even inside
`condition-case' calls.  The problem with ert can be avoided by calling
`debugger' instead of `debug' directly, since ert installs its own
debugger while running tests.

* lisp/emacs-lisp/cl-preloaded.el (cl--assertion-failed): Call
`debugger' if `debug-on-error' is non-nil.

8 years agoAvoid infloop in python
Daniel Colascione [Tue, 8 Nov 2016 23:26:43 +0000 (15:26 -0800)]
Avoid infloop in python

Fix bug#24905

* lisp/progmodes/python.el (python-info-docstring-p): Improve
infloop avoidance: replace (bobp) with generic test for
forward progress.
* test/lisp/progmodes/python-tests.el (python-bob-infloop-avoid): Add
test for bug#24905

8 years agoDon't refer to obsolete FEATURE-unload-hook
Eli Zaretskii [Mon, 7 Nov 2016 17:39:54 +0000 (19:39 +0200)]
Don't refer to obsolete FEATURE-unload-hook

* doc/lispref/tips.texi (Coding Conventions): Refer to
FEATURE-unload-function rather than its obsolete variant
FEATURE-unload-hook.  (Bug#24890)

8 years agoImprove documentation of dabbrevs
Eli Zaretskii [Mon, 7 Nov 2016 17:34:51 +0000 (19:34 +0200)]
Improve documentation of dabbrevs

* lisp/dabbrev.el (dabbrev-expand): Doc fix.  (Bug#24890)

* doc/emacs/abbrevs.texi (Dynamic Abbrevs): Mention
'dabbrev-check-all-buffers', 'dabbrev-check-other-buffers', and
'dabbrev-ignored-buffer-names' and their purpose.  (Bug#24890)

8 years ago* lisp/chistory.el (list-command-history): Doc fix. (Bug#24890)
Eli Zaretskii [Mon, 7 Nov 2016 17:09:19 +0000 (19:09 +0200)]
* lisp/chistory.el (list-command-history): Doc fix.  (Bug#24890)

8 years ago* lisp/simple.el (set-mark-command): Doc fix. (Bug#24890)
Eli Zaretskii [Mon, 7 Nov 2016 17:04:19 +0000 (19:04 +0200)]
* lisp/simple.el (set-mark-command): Doc fix.  (Bug#24890)

8 years agoImprove documentation of some Help commands
Eli Zaretskii [Mon, 7 Nov 2016 16:57:28 +0000 (18:57 +0200)]
Improve documentation of some Help commands

* doc/emacs/help.texi (Help Mode): Fix mistake in key sequences.
Mention the 'l' and 'r' keys.
(Misc Help): Mention that 'C-h m' describes key bindings.
(Bug#24890)

8 years agoFix documentation of yes-or-no prompts
Eli Zaretskii [Mon, 7 Nov 2016 16:47:39 +0000 (18:47 +0200)]
Fix documentation of yes-or-no prompts

* doc/emacs/mini.texi (Yes or No Prompts): Fix mistakes in key
sequences.  (Bug#24890)

8 years agoFix documentation of partial completion style
Eli Zaretskii [Mon, 7 Nov 2016 16:44:17 +0000 (18:44 +0200)]
Fix documentation of partial completion style

* doc/emacs/mini.texi (Completion Styles): Fix the description of
the wildcard '*'.  (Bug#24890)

8 years agoFix documentation of the mode line on emacsclient frames
Eli Zaretskii [Mon, 7 Nov 2016 16:23:54 +0000 (18:23 +0200)]
Fix documentation of the mode line on emacsclient frames

* doc/emacs/screen.texi (Mode Line): Document the '@' indicator on
emacsclient frames.

8 years agoFix description of 'C-z' in User manual
Eli Zaretskii [Mon, 7 Nov 2016 16:00:19 +0000 (18:00 +0200)]
Fix description of 'C-z' in User manual

* doc/emacs/entering.texi (Exiting): 'C-z' is bound to
'suspend-frame'.  (Bug#24890)

8 years agoImprove and clarify documentation of Outline Mode
Eli Zaretskii [Mon, 7 Nov 2016 15:55:42 +0000 (17:55 +0200)]
Improve and clarify documentation of Outline Mode

* doc/emacs/text.texi (Outline Visibility): Use the outline-*
names instead of the obsolete aliases.  (Bug#24890)

* lisp/outline.el (outline-hide-sublevels, outline-hide-other)
(outline-hide-body): Doc fixes.  (Bug#24890)

8 years agoAdd Emacs version number to nt/README.W32
Eli Zaretskii [Sun, 6 Nov 2016 16:58:03 +0000 (18:58 +0200)]
Add Emacs version number to nt/README.W32

* nt/README.W32: Include the version number of the latest Emacs
release.

* admin/admin.el (set-version): Update the version in nt/README.W32.

8 years agoFix python-mode hideshow regexp
Noam Postavsky [Wed, 2 Nov 2016 03:24:33 +0000 (23:24 -0400)]
Fix python-mode hideshow regexp

2015-02-07 "Fix hideshow integration[...]" changed the regexp added to
`hs-special-modes-alist' so that it worked when not searching from the
beginning of the line.  However, this allows matching tokens ending in
"def" or "class", not just those keywords.  This results in an infinite
loop in hs-hide-all (Bug #24815).

* lisp/progmodes/python.el (python-mode): Add symbol boundaries around
the def|class matching part of the regexp added to
hs-special-modes-alist.

8 years agoModernize usage of 'macOS' in doc and comments
Paul Eggert [Sun, 6 Nov 2016 07:33:43 +0000 (00:33 -0700)]
Modernize usage of 'macOS' in doc and comments

Apple changed the spelling of its operating system again, to "macOS",
effective with macOS 10.12 Sierra (2016-09-20).  Change Emacs
documentation and comments to match this.  Stick with older OS
spellings ("OS X", "Mac OS X") when talking about older releases where
the older names are more correct.

8 years agoPrefer comments /* like this */ in C code
Paul Eggert [Sun, 6 Nov 2016 03:41:37 +0000 (20:41 -0700)]
Prefer comments /* like this */ in C code

Emacs C code assumes C99 features, but has long used traditional
comments /* like this */ instead of C99-style comments // like this.
Stick with traditional comments for now, partly for style, partly as
it may be safer with compilers that are not fully in C99 mode.

8 years ago* doc/lispref/loading.texi (Autoload): Better link (Bug#24845).
Noam Postavsky [Wed, 2 Nov 2016 03:18:37 +0000 (23:18 -0400)]
* doc/lispref/loading.texi (Autoload): Better link (Bug#24845).

8 years agoClarify documentation of face attribute functions
Eli Zaretskii [Sat, 5 Nov 2016 08:54:15 +0000 (10:54 +0200)]
Clarify documentation of face attribute functions

* doc/lispref/display.texi (Attribute Functions): Make sure to
document that an omitted FRAME argument means the same as nil.
(Bug#24879)

8 years ago; * nt/README.W32: Minor copyedits.
Eli Zaretskii [Sat, 5 Nov 2016 08:07:30 +0000 (10:07 +0200)]
; * nt/README.W32: Minor copyedits.

8 years agoDon't call debug on failed cl-assert
Noam Postavsky [Sat, 5 Nov 2016 01:40:16 +0000 (21:40 -0400)]
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.

8 years ago; Spelling fixes
Paul Eggert [Fri, 4 Nov 2016 21:50:09 +0000 (14:50 -0700)]
; Spelling fixes

8 years agoUpdate README for precompiled windows Emacs.
Phillip Lord [Fri, 4 Nov 2016 20:50:55 +0000 (20:50 +0000)]
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.

8 years agoClarify documentation of 'vc-responsible-backend' wrt symlinks
Hong Xu [Fri, 4 Nov 2016 10:06:00 +0000 (12:06 +0200)]
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.

8 years agoClarify doc string of 'transpose-sexps'
Eli Zaretskii [Fri, 4 Nov 2016 09:50:48 +0000 (11:50 +0200)]
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)

8 years agoFix docstring of 'browse-url-firefox-new-window-is-tab'
Tibor Csögör [Fri, 4 Nov 2016 09:24:21 +0000 (11:24 +0200)]
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

8 years agoImprove documentation of 'font-lock-remove-keywords'
Eli Zaretskii [Fri, 4 Nov 2016 09:16:40 +0000 (11:16 +0200)]
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)

8 years agoFix documentation of the command summary key
Eli Zaretskii [Fri, 4 Nov 2016 08:56:11 +0000 (10:56 +0200)]
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)

8 years agoMark relocation workarounds with REL_ALLOC
Eli Zaretskii [Fri, 4 Nov 2016 08:36:02 +0000 (10:36 +0200)]
Mark relocation workarounds with REL_ALLOC

* src/search.c (boyer_moore): Mark workarounds for ralloc.c
relocation of buffer text with "#ifdef REL_ALLOC".

8 years agoFix documentation for 'eudc-options-file'
Thomas Fitzsimmons [Tue, 1 Nov 2016 09:00:25 +0000 (05:00 -0400)]
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 0575fd95d0b92a9a0ebff8df183a449190f74dbc)

8 years agoFix documentation of 'eudc-inline-expansion-format'
Tibor Csögör [Tue, 1 Nov 2016 08:57:53 +0000 (04:57 -0400)]
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 1fef1387c387d80f8ece326621539b89a6965702)

8 years agopython.el: Fix detection of native completion in Python 3 (bug #24401)
Clément Pit--Claudel [Thu, 27 Oct 2016 02:46:28 +0000 (22:46 -0400)]
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 "".

8 years ago* Makefile.in (install-arch-indep): Skip etc/refcards/emacsver.tex.in.
Glenn Morris [Wed, 26 Oct 2016 19:47:54 +0000 (15:47 -0400)]
* Makefile.in (install-arch-indep): Skip etc/refcards/emacsver.tex.in.

8 years ago* lisp/subr.el (set-transient-map): Exit for unbound events (bug#24755).
Stefan Monnier [Wed, 26 Oct 2016 19:29:02 +0000 (15:29 -0400)]
* lisp/subr.el (set-transient-map): Exit for unbound events (bug#24755).

8 years agoUpdate category-table for Chinese characters
Eli Zaretskii [Wed, 26 Oct 2016 12:58:07 +0000 (15:58 +0300)]
Update category-table for Chinese characters

* lisp/international/characters.el (standard-category-table):
Update the ranges of Han and Chinese characters.  (Bug#24798)

8 years agoInhibit buffer relocation during regex searches
Noam Postavsky [Tue, 25 Oct 2016 01:22:07 +0000 (21:22 -0400)]
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).

8 years agoRevert fixes to allocation of regex matching
Noam Postavsky [Mon, 24 Oct 2016 23:54:29 +0000 (19:54 -0400)]
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 c2a17924a57483d14692c8913edbe8ad24b5ffbb.
- Revert "Port to GCC 6.2.1 + --enable-gcc-warnings"
  This reverts commit f6134bbda259c115c06d4a9a3ab5c39340a15949.
- Revert "Fix handling of allocation in regex matching"
  This reverts commit ad66b3fadb7ae22a4cbb82bb1507c39ceadf3897.
- Revert "Fix handling of buffer relocation in regex.c functions"
  This reverts commit ee04aedc723b035eedaf975422d4eb242894121b.

8 years agoComment for bug#24793
Eli Zaretskii [Tue, 25 Oct 2016 19:33:14 +0000 (22:33 +0300)]
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)

8 years agoDefault REL_ALLOC to 'no'
Paul Eggert [Tue, 25 Oct 2016 19:13:20 +0000 (12:13 -0700)]
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.

8 years agoYet another fix for using pointers into buffer text
Eli Zaretskii [Mon, 24 Oct 2016 18:37:20 +0000 (21:37 +0300)]
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)

8 years agoAnother fix for using pointer to buffer text
Eli Zaretskii [Mon, 24 Oct 2016 13:59:34 +0000 (16:59 +0300)]
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)

8 years agoFix Bug#24478
Michael Albinus [Mon, 24 Oct 2016 13:04:25 +0000 (15:04 +0200)]
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)

8 years agoPort --enable-gcc-warnings to bleeding-edge glibc
Paul Eggert [Mon, 24 Oct 2016 04:54:13 +0000 (21:54 -0700)]
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.

8 years agoFix handling of buffer relocation in regex.c functions
Eli Zaretskii [Sun, 23 Oct 2016 19:09:43 +0000 (22:09 +0300)]
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)

8 years agoAvoid relocating buffers while libxml2 reads its text
Eli Zaretskii [Sun, 23 Oct 2016 16:52:56 +0000 (19:52 +0300)]
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)

8 years ago; Remove redundant code in gmalloc.c
Eli Zaretskii [Sun, 23 Oct 2016 15:05:48 +0000 (18:05 +0300)]
; 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.

8 years agoAttempt to catch reads from a buffer that is relocated
Eli Zaretskii [Sun, 23 Oct 2016 13:54:00 +0000 (16:54 +0300)]
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)

8 years agoRevert "* lisp/simple.el (process-menu-mode, list-processes--refresh):"
Eli Zaretskii [Sun, 23 Oct 2016 13:04:20 +0000 (16:04 +0300)]
Revert "* lisp/simple.el (process-menu-mode, list-processes--refresh):"

This reverts commit a4285bcb1114e29200001f33af9b4802167d6140.
Do not merge to master!

8 years agoRevert "* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):"
Eli Zaretskii [Sun, 23 Oct 2016 13:03:25 +0000 (16:03 +0300)]
Revert "* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):"

This reverts commit b0c447e4668116cecfda91d0203cb7cac2486d92.
Do not merge to master!

8 years agoRevert "* lisp/ibuffer.el (ibuffer): Improve 'other-window' case. (Bug#23617)"
Eli Zaretskii [Sun, 23 Oct 2016 13:02:11 +0000 (16:02 +0300)]
Revert "* lisp/ibuffer.el (ibuffer): Improve 'other-window' case.  (Bug#23617)"

This reverts commit cf3c19b0298236293d9c56d5ba425af4f42c1f8e.
Do not merge to master!