]> git.eshelyaron.com Git - emacs.git/log
emacs.git
8 years ago* lisp/window.el (window--process-window-list): No-op if no processes.
Glenn Morris [Wed, 27 Apr 2016 23:21:41 +0000 (19:21 -0400)]
* lisp/window.el (window--process-window-list): No-op if no processes.

This avoids an issue with save-selected-window (from walk-windows)
failing if frame.el is not loaded, eg if the terminal is resized
during startup of a -nw CANNOT_DUMP build.  (Bug#23369).

8 years agoPort dumping to NetBSD with PaX
Paul Eggert [Wed, 27 Apr 2016 22:52:53 +0000 (15:52 -0700)]
Port dumping to NetBSD with PaX

Problem reported by Thomas Klausner (Bug#23371).
* configure.ac (PAXCTL_dumped, PAXCTL_notdumped): New vars.
Set them to setfattr and/or paxctl commands appropriate for
GNU/Linux and/or NetBSD; the latter prefers paxctl +a.  Search
for paxctl only if setfattr is not found.
* src/Makefile.in (PAXCTL_dumped, PAXCTL_notdumped):
New vars, replacing PAXCTL_if_present and SETFATTR_if_present.
All uses changed.

8 years agoDon't mistake `for' inside a function for a part of array comprehension
Dmitry Gutov [Wed, 27 Apr 2016 23:00:23 +0000 (02:00 +0300)]
Don't mistake `for' inside a function for a part of array comprehension

* lisp/progmodes/js.el (js--indent-in-array-comp): Also check the
depth in parens between the bracket and `for' (bug#23391).

* test/indent/js.js: Add a corresponding example.

8 years agoFix bug#22891: wrong terminal width when a fringe width is zero.
Anders Lindgren [Tue, 26 Apr 2016 18:58:52 +0000 (20:58 +0200)]
Fix bug#22891: wrong terminal width when a fringe width is zero.

When either fringe width is zero, Emacs reserved one column for a
continuation glyph. Terminal windows does not take this into
account when the frame is resized.

* lisp/window.el (window-adjust-process-window-size): Use
`window-max-chars-per-line' instead of `window-body-width'.
* lisp/term.el (term-window-width): Remove function. (It does the
same as `window-max-chars-per-line' but without recent bug fixes.)
(term-mode): Use `window-max-chars-per-line' instead of
`term-window-width'.

Backport

(cherry picked from commit 5b5403289888efe8783ae6a405845b925f544ec1)

8 years agoImprove last change to vc-git-mode-line-string
Leo Liu [Wed, 27 Apr 2016 14:12:12 +0000 (22:12 +0800)]
Improve last change to vc-git-mode-line-string

* lisp/vc/vc-git.el (vc-git-mode-line-string): Better fix that caches
  the result.

8 years agoTodo mode doc bug fix
Stephen Berman [Wed, 27 Apr 2016 08:18:02 +0000 (10:18 +0200)]
Todo mode doc bug fix

* lisp/calendar/todo-mode.el (todo-show): Correct obsolete and no
longer correct information in doc string.

8 years agoFix revision calculation in vc-git-mode-line-string
Leo Liu [Wed, 27 Apr 2016 05:18:04 +0000 (13:18 +0800)]
Fix revision calculation in vc-git-mode-line-string

* lisp/vc/vc-git.el (vc-git-mode-line-string): Use
  vc-git-working-revision because vc-working-revision needs to decide
  the backend and may return nil.

8 years ago; Fix errant revert ccb75d7
Mark Oteiza [Wed, 27 Apr 2016 00:05:57 +0000 (20:05 -0400)]
; Fix errant revert ccb75d7

* lisp/rect.el (rectangle--highlight-for-redisplay): Use region face.

8 years agoAdd Python 3.5 keyword "await"
Jorgen Schaefer [Thu, 21 Apr 2016 08:00:39 +0000 (10:00 +0200)]
Add Python 3.5 keyword "await"

* lisp/progmodes/python.el (python-font-lock-keywords): Add await as
keyword.

8 years agoAdd new keywords of Python 3.5
Lele Gaifax [Wed, 6 Apr 2016 08:38:23 +0000 (10:38 +0200)]
Add new keywords of Python 3.5

Python 3.5, released in mid September 2015, introduced a few new
keywords to better support asynchronous code, "async" and "await"
in particular. See https://www.python.org/dev/peps/pep-0492/ for
details. (Bug#21783)
* lisp/progmodes/python.el (python-rx-constituents): Add async
def/for/with as block-start and async def as defun.
* lisp/progmodes/python.el (python-font-lock-keywords): Add async
def/for/with as keyword.
* test/automated/python-tests.el (python-indent-after-async-block-1,
python-indent-after-async-block-2, python-indent-after-async-block-3,
python-nav-beginning-of-defun-3): New tests to test indentation and
navigation for the async keyword.

8 years agoPartially revert previous change.
Mark Oteiza [Tue, 26 Apr 2016 15:42:53 +0000 (11:42 -0400)]
Partially revert previous change.

This commit partially reverts 0f332848cdb2ed6d46771914a911cbca194cd51a.
* lisp/rect.el (rectangle--highlight-for-redisplay): Use region face.
This function is for rectangle-mark-mode, not string-rectangle.

8 years ago; * etc/NEWS: Update entry about color fonts on OS X with a workaround.
Eli Zaretskii [Tue, 26 Apr 2016 05:49:29 +0000 (08:49 +0300)]
; * etc/NEWS: Update entry about color fonts on OS X with a workaround.

8 years agoSay why text-quoting-style is not a user option
Paul Eggert [Mon, 25 Apr 2016 22:19:55 +0000 (15:19 -0700)]
Say why text-quoting-style is not a user option

* doc/lispref/help.texi (Keys in Documentation):
* etc/NEWS: Document why text-quoting-style is not a
customizable variable (Bug#23372).

8 years ago* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Glenn Morris [Mon, 25 Apr 2016 21:28:00 +0000 (17:28 -0400)]
* lisp/emacs-lisp/autoload.el (update-directory-autoloads):
Future-proof against non-time-values.

; Do not merge to master.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Mon, 25 Apr 2016 11:22:14 +0000 (07:22 -0400)]
; Auto-commit of loaddefs files.

8 years agoDon't mention ~/.emacs.bmk literally in doc strings
Eli Zaretskii [Mon, 25 Apr 2016 08:28:17 +0000 (11:28 +0300)]
Don't mention ~/.emacs.bmk literally in doc strings

* lisp/bookmark.el (bookmark-save-flag, bookmark-load): Don't
mention "~/.emacs.bmk" explicitly as the default bookmark file in
the doc strings.  (Bug#23350)

8 years ago* etc/NEWS: Explain why multicolor font display is disabled on OS X Cocoa.
YAMAMOTO Mitsuharu [Mon, 25 Apr 2016 08:23:15 +0000 (17:23 +0900)]
* etc/NEWS: Explain why multicolor font display is disabled on OS X Cocoa.

8 years agoPort to Ubuntu 16.04 --enable-gcc-warnings
Paul Eggert [Sun, 24 Apr 2016 20:38:38 +0000 (13:38 -0700)]
Port to Ubuntu 16.04 --enable-gcc-warnings

* src/image.c (gif_load) [HAVE_GIF]: Fix pointer signedness problem.

8 years ago* etc/NEWS: Improve wording of vc-git-log-output-coding-system etc.
Paul Eggert [Sun, 24 Apr 2016 19:42:02 +0000 (12:42 -0700)]
* etc/NEWS: Improve wording of vc-git-log-output-coding-system etc.

8 years agoDon't kill ~/ if it's the top level directory
Tino Calancha [Sun, 24 Apr 2016 15:05:33 +0000 (17:05 +0200)]
Don't kill ~/ if it's the top level directory

* lisp/dired-aux.el (dired-kill-subdir): Don't kill ~/ if it's
the top level directory (bug#23017).

8 years agodescribe-char: fix insert char documentation
Tino Calancha [Sat, 23 Apr 2016 19:41:28 +0000 (12:41 -0700)]
describe-char: fix insert char documentation

* lisp/descr-text.el (describe-char):
Only 'ucs-names' entries can be inserted by unicode name (Bug#23325).

Copyright-paperwork-exempt: yes

8 years ago(vc-git-mode-line-string): Don't use `replace-regexp-in-string'
Dmitry Gutov [Sat, 23 Apr 2016 19:16:27 +0000 (22:16 +0300)]
(vc-git-mode-line-string): Don't use `replace-regexp-in-string'

* lisp/vc/vc-git.el (vc-git-mode-line-string): Use `substring'
instead of `replace-regexp-in-string', because REV can be nil
(e.g. when FILE is a directory, bug#23344), and we actually know
we only need the first 4 characters.

8 years agoBump version to 25.0.93 emacs-25.0.93
Nicolas Petton [Fri, 22 Apr 2016 17:00:05 +0000 (19:00 +0200)]
Bump version to 25.0.93

* README:
* configure.ac:
* msdos/sed2v2.inp: Bump Emacs version to 25.0.93.

8 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Fri, 22 Apr 2016 16:59:44 +0000 (18:59 +0200)]
* etc/AUTHORS: Update the AUTHORS file

8 years ago* admin/update_autogen: Use #!/usr/bin/env bash
Nicolas Petton [Fri, 22 Apr 2016 16:58:57 +0000 (18:58 +0200)]
* admin/update_autogen: Use #!/usr/bin/env bash

8 years ago; Auto-commit of loaddefs files.
Nicolas Petton [Fri, 22 Apr 2016 16:57:36 +0000 (18:57 +0200)]
; Auto-commit of loaddefs files.

8 years ago; ChangeLog fixes
Nicolas Petton [Fri, 22 Apr 2016 16:54:52 +0000 (18:54 +0200)]
; ChangeLog fixes

* ChangeLog.2:
* lisp/ChangeLog.17: Fix ChangeLog entries

8 years ago* admin/authors.el (authors-ignored-files): Additions.
Nicolas Petton [Fri, 22 Apr 2016 16:50:26 +0000 (18:50 +0200)]
* admin/authors.el (authors-ignored-files): Additions.

8 years agoIn x_set_window_size restore do_pending_window_change calls
Martin Rudalics [Fri, 22 Apr 2016 09:56:03 +0000 (11:56 +0200)]
In x_set_window_size restore do_pending_window_change calls

* src/xterm.c (x_set_window_size):
* src/w32term.c (x_set_window_size): Restore
do_pending_window_change calls after their stupid removal on
2015-08-31.

8 years agoFix Alt-modified keys on some European MS-Windows keyboards
Ilya Zakharevich [Thu, 21 Apr 2016 16:08:16 +0000 (19:08 +0300)]
Fix Alt-modified keys on some European MS-Windows keyboards

* src/w32fns.c (deliver_wm_chars): If the reported character is
ASCII, AND Meta modifier is a candidate, behave as if Meta is
present, i.e. fall back to the legacy code.  (Bug#23251)

8 years agoDocument 'help-go-forward'
Eli Zaretskii [Thu, 21 Apr 2016 02:27:58 +0000 (05:27 +0300)]
Document 'help-go-forward'

* doc/emacs/help.texi (Help Mode): Document and index
'help-go-forward'.  (Bug#23323)

8 years agoRevert "Allow to customize names of executables used by grep.el"
Eli Zaretskii [Thu, 21 Apr 2016 02:08:29 +0000 (05:08 +0300)]
Revert "Allow to customize names of executables used by grep.el"

This reverts commit c93ae7a1e5a94541189a8f36984014344d561ffc.

8 years agoRevert "Don't use 'find-program'"
Eli Zaretskii [Thu, 21 Apr 2016 02:07:27 +0000 (05:07 +0300)]
Revert "Don't use 'find-program'"

This reverts commit 10597c977d55cbf9304b51c3b364ce58199384a0.

8 years agoRevert "Use 'grep-find-program' in check-declare.el"
Eli Zaretskii [Thu, 21 Apr 2016 02:06:26 +0000 (05:06 +0300)]
Revert "Use 'grep-find-program' in check-declare.el"

This reverts commit 33bef6e90bfd20609d044b8a076c1570c627684a.

8 years agoClarify documentation of 'dired-mark-files-containing-regexp'
Eli Zaretskii [Wed, 20 Apr 2016 14:52:25 +0000 (17:52 +0300)]
Clarify documentation of 'dired-mark-files-containing-regexp'

* doc/emacs/dired.texi (Marks vs Flags): Clarify that for files
visited in buffers, 'dired-mark-files-containing-regexp' searches
the buffer rather than the file on disk.  (Bug#22694)

* lisp/dired.el (dired-mark-files-containing-regexp): Clarify that
for files visited in buffers, 'dired-mark-files-containing-regexp'
searches the buffer rather than the file on disk.  (Bug#22694)

8 years agoMake tmm-menubar work in correct order again
Eli Zaretskii [Tue, 19 Apr 2016 15:06:52 +0000 (18:06 +0300)]
Make tmm-menubar work in correct order again

* lisp/tmm.el (tmm-prompt): Don't reverse 'tmm-km-list' right at the
beginning; instead, pass a reversed copy to 'tmm--completion-table'.
(Bug#23309)
(tmm-menubar): Fix an off-by-one error in determining the menu
item when the function is called with a non-nil 'x-position'
argument.

8 years agoRemove the Meta-CVS VC backend
Dmitry Gutov [Mon, 18 Apr 2016 22:20:59 +0000 (01:20 +0300)]
Remove the Meta-CVS VC backend

* lisp/obsolete/vc-mcvs.el: Remove the file (bug#20475).

* lisp/vc/log-view.el (log-view-extract-comment): Remove the MCVS
reference.

* doc/misc/efaq-w32.texi (Version control): Same.

8 years agoFix Bug#23276
Michael Albinus [Mon, 18 Apr 2016 08:11:44 +0000 (10:11 +0200)]
Fix Bug#23276

* lisp/autorevert.el (auto-revert-handler): Ignore errors
coming from `revert-buffer'.  (Bug#23276)

8 years agoSync with upstream vhdl mode v3.38.1.
Reto Zimmermann [Sun, 17 Apr 2016 23:15:29 +0000 (16:15 -0700)]
Sync with upstream vhdl mode v3.38.1.

* lisp/progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp): Update.
(vhdl-mode): No longer set comment-padding.
(vhdl-begin-p): Handle missing space between keyword and parenthesis.
(vhdl-beginning-of-statement-1): Fix indentation for "else generate".
(vhdl-template-else, vhdl-template-elsif): Support generate statement.
(vhdl-re-search-forward, vhdl-re-search-backward): Save match data.

8 years agoTweak configure.ac syntax in recent module patch
Paul Eggert [Sun, 17 Apr 2016 02:49:15 +0000 (19:49 -0700)]
Tweak configure.ac syntax in recent module patch

* configure.ac: Use proper Autoconf parenthesization in
recent HAVE_MODULES patch.  Although this doesn’t fix any bugs,
the previous syntax was confusing.

8 years agoPort to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)
Paul Eggert [Sun, 17 Apr 2016 02:47:33 +0000 (19:47 -0700)]
Port to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)

* src/indent.c (Fvertical_motion): Pacify --enable-gcc-warnings
when using the April 6 Fedora patch to GCC.

8 years agoMake sh-electric-here-document-mode accessible in sh-mode-hook. (Bug#3226)
Mark Oteiza [Sat, 16 Apr 2016 18:40:17 +0000 (14:40 -0400)]
Make sh-electric-here-document-mode accessible in sh-mode-hook. (Bug#3226)

* lisp/progmodes/sh-script.el (sh-mode-hook): Add
sh-electric-here-document-mode as an option and the default value.
(sh-mode): Mention sh-mode-hook in docstring.
(sh-mode): Remove sh-electric-here-document-mode invocation.

8 years ago; Add entry to MAINTAINERS
Michael Albinus [Sat, 16 Apr 2016 18:46:06 +0000 (20:46 +0200)]
; Add entry to MAINTAINERS

8 years ago* configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from previous.
Glenn Morris [Sat, 16 Apr 2016 17:24:57 +0000 (10:24 -0700)]
* configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from previous.

8 years agoMake use of rectangle-preview custom variable.
Mark Oteiza [Sat, 16 Apr 2016 16:02:49 +0000 (12:02 -0400)]
Make use of rectangle-preview custom variable.

lisp/rect.el (rectangle--string-preview): Only create a preview if
rectangle-preview is non-nil (Bug#23248).

8 years agoMake use of rectangle-preview face.
Mark Oteiza [Sat, 16 Apr 2016 15:55:59 +0000 (11:55 -0400)]
Make use of rectangle-preview face.

* lisp/rect.el (rectangle--string-preview):
(rectangle--highlight-for-redisplay): Replace 'region with
'rectangle-preview (Bug#23248).

8 years agoUse 'grep-find-program' in check-declare.el
Eli Zaretskii [Sat, 16 Apr 2016 11:54:03 +0000 (14:54 +0300)]
Use 'grep-find-program' in check-declare.el

* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use
'grep-find-program', not 'find-program'.

8 years agoImprove "C-h S" for cl-lib symbols
Eli Zaretskii [Sat, 16 Apr 2016 11:20:34 +0000 (14:20 +0300)]
Improve "C-h S" for cl-lib symbols

* lisp/info-look.el: Add cl.info lookup to emacs-lisp-mode related
manuals.  (Bug#23289)

8 years agoFix minor issues with removing left or right fringes
Eli Zaretskii [Sat, 16 Apr 2016 10:53:17 +0000 (13:53 +0300)]
Fix minor issues with removing left or right fringes

* lisp/window.el (window-max-chars-per-line): Account for
'left-fringe-width' and 'right-fringe-width' variables.

* doc/lispref/windows.texi (Window Sizes): Document the effect on
window text width when setting the width of one or both fringes to
zero.
* doc/emacs/display.texi (Fringes): Document the effect on window
text width when setting the width of one or both fringes to zero.
(Bug#22891)

8 years agoSpeed up redisplay in ansi-term mode
Eli Zaretskii [Sat, 16 Apr 2016 10:08:30 +0000 (13:08 +0300)]
Speed up redisplay in ansi-term mode

* lisp/term.el (ansi-term): Force L2R 'bidi-paragraph-direction'.
(Bug#20611)

8 years agoSimplify 8-bit character handling by terminal for 'raw-text'
Philipp Stephani [Sat, 16 Apr 2016 09:55:17 +0000 (12:55 +0300)]
Simplify 8-bit character handling by terminal for 'raw-text'

* lisp/international/mule.el (set-keyboard-coding-system): Treat
'raw-text' as another coding type that requires 8-bit characters.
* lisp/xt-mouse.el (xterm-mouse--read-coordinate): Use 'no-conversion'
instead of 'latin-1'.

8 years ago* configure.ac (HAVE_MODULES): Treat gnu like gnu-linux. (Bug#22722)
Glenn Morris [Fri, 15 Apr 2016 23:19:47 +0000 (19:19 -0400)]
* configure.ac (HAVE_MODULES): Treat gnu like gnu-linux.  (Bug#22722)

8 years agoFix w32 memory-management problem when extending buffer text
Eli Zaretskii [Fri, 15 Apr 2016 14:26:37 +0000 (17:26 +0300)]
Fix w32 memory-management problem when extending buffer text

* src/w32heap.c (mmap_realloc): Only attempt extending a region if
the following region has the same allocation base.  Also, use the
original allocation base and enlarged size to commit reserved
memory, to ensure that the allocation base stays at its original
value.  This fixes several hard-to-debug problems whereby part of
buffer text was overwritten with binary nulls, because
mmap_realloc copied only part of buffer text when extending it.
See
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00325.html
and http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23223#55 for two
examples of the related problems.

8 years agoFix Bug#20637. Do not merge to master
Michael Albinus [Thu, 14 Apr 2016 18:28:18 +0000 (20:28 +0200)]
Fix Bug#20637.  Do not merge to master

* lisp/vc/vc-hooks.el (vc-state, vc-working-revision):
Use `vc-backend' instead of `vc-responsible-backend'.  (Bug#20637)

* test/automated/vc-tests.el (vc-test--state)
(vc-test--working-revision): Deactivate now failing checks.

8 years agosubstitute-command-keys keeps quotes’ text props
Paul Eggert [Thu, 14 Apr 2016 15:21:34 +0000 (08:21 -0700)]
substitute-command-keys keeps quotes’ text props

Problem reported by Clément Pit--Claudel (Bug#23254).
* src/doc.c: Include intervals.h.
(Fsubstitute_command_keys): If the only substitutions are for
quotes, copy the source string’s text properties too, since no
substring lengths have changed.

8 years ago* src/xwidget.c (x_draw_xwidget_glyph_string): More clipping fixes.
YAMAMOTO Mitsuharu [Wed, 13 Apr 2016 22:47:55 +0000 (07:47 +0900)]
* src/xwidget.c (x_draw_xwidget_glyph_string): More clipping fixes.

8 years agoAdd semantic-symref-filepattern-alist entry for lisp-interaction-mode
Dmitry Gutov [Tue, 12 Apr 2016 18:46:22 +0000 (21:46 +0300)]
Add semantic-symref-filepattern-alist entry for lisp-interaction-mode

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist):
Add entry for lisp-interaction-mode
(http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23223#47)

8 years agoPerform xref searches without visiting unopened files
Dmitry Gutov [Tue, 12 Apr 2016 18:08:22 +0000 (21:08 +0300)]
Perform xref searches without visiting unopened files

* lisp/progmodes/xref.el (xref-collect-references): Instead of
calling `semantic-symref-find-references-by-name', use
`semantic-symref-instantiate' and `semantic-symref-perform-search'
directly.  Ask for `line-and-text' results (bug#23223).
(xref-collect-matches): Include the line text in the "hit"
structure.
(xref--convert-hits): New function, split off from
`xref-collect-references' and `xref-collect-matches', to convert
"hits" to xref instance list.  Create a temporary buffer here, to
use it for post-processing all hit lines.
(xref--collect-matches): Use a different approach for non-visited
files.  Insert the line text into the temp buffer, apply the
file's major mode the best we can without reading its whole
contents, syntax-propertize, and search in the result.
(xref--collect-matches-1): Extract, to handle the common logic
between two cases.
(xref--find-buffer-visiting): New function, a wrapper around
`find-buffer-visiting' to amortize its cost.

* lisp/cedet/semantic/symref/idutils.el
(semantic-symref-idutils--line-re): New constant.
(semantic-symref-parse-tool-output-one-line): Support result type
`line-and-text'.

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-grep--line-re)
(semantic-symref-parse-tool-output-one-line): Same.

* lisp/cedet/semantic/symref/cscope.el
(semantic-symref-cscope--line-re)
(semantic-symref-parse-tool-output-one-line): Same.

* lisp/cedet/semantic/symref/global.el
(semantic-symref-global--line-re)
(semantic-symref-parse-tool-output-one-line): Same.

8 years agoRevert "Prevent bootstrap autoload backup files"
Phillip Lord [Tue, 12 Apr 2016 17:00:50 +0000 (18:00 +0100)]
Revert "Prevent bootstrap autoload backup files"

This reverts commit c23c965bb9d0a4bcc1b6158833ff99aa20fd53e9.

8 years agoImprove time zone documentation
Paul Eggert [Tue, 12 Apr 2016 15:47:15 +0000 (08:47 -0700)]
Improve time zone documentation

* doc/lispref/os.texi (Time Zone Rules):
New section, mostly with material moved here from other sections.
* doc/emacs/cmdargs.texi (General Variables):
* doc/lispref/os.texi (Time Conversion, Time Parsing):
Xref new section.
* etc/NEWS, etc/PROBLEMS:
* lisp/org/org.el (org-timestamp-format):
* src/editfns.c (Fformat_time_string, Fdecode_time)
(Fencode_time, Fcurrent_time_string, Fcurrent_time_zone)
(Fset_time_zone_rule):
When documenting time zone rule strings, mention the TZ
environment variable in preference to mentioning the
sort-of-internal function set-time-zone-rule.

8 years agoPrevent bootstrap autoload backup files
Phillip Lord [Fri, 8 Apr 2016 15:22:44 +0000 (16:22 +0100)]
Prevent bootstrap autoload backup files

 * lisp/emacs-lisp/autoload (autoload-find-generated-file): Suppress
   backups in newly created file.

  (autoload-ensure-default-file): Function split into two.
  (autoload-ensure-file-writeable): New function from split.

  (Bug#23203)

8 years agoDisable multicolor fonts on OS X since they are not supported on free systems
YAMAMOTO Mitsuharu [Mon, 11 Apr 2016 23:26:51 +0000 (08:26 +0900)]
Disable multicolor fonts on OS X since they are not supported on free systems

* src/macfont.m (macfont_list): Don't use color bitmap fonts.

8 years agoCapitalize “Universal Time” in documentation
Paul Eggert [Mon, 11 Apr 2016 22:15:23 +0000 (15:15 -0700)]
Capitalize “Universal Time” in documentation

It’s a proper noun.
* lisp/vc/add-log.el (add-log-time-zone-rule): Also, fix typo by
mentioning ‘format-time-string’ instead of ‘set-time-zone-rule’.

8 years agoDon't use 'find-program'
Eli Zaretskii [Mon, 11 Apr 2016 16:41:48 +0000 (19:41 +0300)]
Don't use 'find-program'

* lisp/progmodes/project.el (project-file-completion-table): Use
'grep-find-program', rather than the obsolete 'find-program'.

8 years agoSync with gnulib
Paul Eggert [Mon, 11 Apr 2016 16:02:00 +0000 (09:02 -0700)]
Sync with gnulib

This is for picky compilers whose stdint.h fails our C11 tests.
Problem reported for clang by Philipp Stephani (Bug#23261).
This incorporates:
2016-04-11 stdint: port to strict C11 left shift
* doc/misc/texinfo.tex, lib/stdint.in.h: Copy from gnulib.

8 years agoFix last change on 2016-01-02
Leo Liu [Mon, 11 Apr 2016 12:19:38 +0000 (20:19 +0800)]
Fix last change on 2016-01-02

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Move
  `cl-errs-re' before `lisp--el-match-keyword'; don't use `prepend'
  which highlights `cl-errs-re' even in comments or strings.

8 years ago; Spelling fixes
Paul Eggert [Mon, 11 Apr 2016 06:54:33 +0000 (23:54 -0700)]
; Spelling fixes

8 years agoPort run-prolog EMACS to SWI-Prolog 7.2.3
Paul Eggert [Mon, 11 Apr 2016 05:47:03 +0000 (22:47 -0700)]
Port run-prolog EMACS to SWI-Prolog 7.2.3

* lisp/progmodes/prolog.el (prolog-ensure-process):
Work around incompatibility of SWI-Prolog 7.2.3 and earlier
with the new way of dealing with the EMACS and INSIDE_EMACS
environment variables.

8 years agoAvoid crashes due to unreasonably large or small text scaling
Eli Zaretskii [Sun, 10 Apr 2016 16:50:39 +0000 (19:50 +0300)]
Avoid crashes due to unreasonably large or small text scaling

* lisp/face-remap.el (text-scale-min-amount)
(text-scale-max-amount): New functions.
(text-scale-set, text-scale-increase): Use them to limit the text
scaling to a reasonable range of values.  (Bug#23259)

8 years agoImprove documentation of 'with-eval-after-load'
Eli Zaretskii [Sun, 10 Apr 2016 16:15:13 +0000 (19:15 +0300)]
Improve documentation of 'with-eval-after-load'

* lisp/subr.el (with-eval-after-load): Doc fix.  (Bug#23258)

8 years agoImprove handling of non-ASCII characters in Git log messages
Eli Zaretskii [Sun, 10 Apr 2016 16:04:33 +0000 (19:04 +0300)]
Improve handling of non-ASCII characters in Git log messages

* lisp/vc/vc-git.el (vc-git-commits-coding-system): Now a defcustom.
(vc-git-log-output-coding-system): New defcustom.
(vc-git-print-log, vc-git-command, vc-git--call): Use
'vc-git-log-output-coding-system' for reading stuff from Git.
Don't override values of 'coding-system-for-read/write' if they
are bound by caller -- this allows the user to force an encoding
via "C-x RET c".
(vc-git-checkin): On MS-Windows, pass the log message via a
temporary file, to work around the limitations on passing
non-ASCII characters via command-line arguments.  Force using the
'locale-coding-system' for Git command-line arguments.  This fixes
problems with non-ASCII commit log messages on MS-Windows.
(Bug#23076)

* etc/NEWS: Mention the new vc-git related defcustoms.

8 years agoRemove undefined behavior in OS X dumper.
Philipp Stephani [Thu, 31 Mar 2016 21:10:40 +0000 (23:10 +0200)]
Remove undefined behavior in OS X dumper.

Found by Address Sanitizer.

* src/unexmacosx.c (unexec_write): Use Mach virtual memory API to
avoid undefined behavior when reading arbitrary memory.

8 years agoFix clipping of xwidgets
Joakim Verona [Sat, 9 Apr 2016 12:04:54 +0000 (15:04 +0300)]
Fix clipping of xwidgets

* src/xwidget.c (x_draw_xwidget_glyph_string): Use window_box
instead of calculating the clipping borders manually.  Suggested
by YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>.

8 years agoImprove Lisp-level documentation of tooltips
Eli Zaretskii [Sat, 9 Apr 2016 09:30:59 +0000 (12:30 +0300)]
Improve Lisp-level documentation of tooltips

* doc/lispref/display.texi (Tooltips): New section.  (Bug#23246)
(Display): Update the chapter menu.
* doc/lispref/text.texi (Special Properties): Make the "tooltip"
index entry more concrete.  Change the cross-reference to point to
"Tooltips" in the ELisp manual.
* doc/lispref/elisp.texi (Top): Update the master menu.
* doc/emacs/frames.texi (Tooltips): Include more customization
variables.  Add a cross-reference to the ELisp manual.

8 years agoFaces names should not end in "-face".
Glenn Morris [Sat, 9 Apr 2016 00:59:21 +0000 (20:59 -0400)]
Faces names should not end in "-face".

* lisp/rect.el (rectangle-preview): Rename from rectangle-preview-face.
* lisp/vc/vc-hooks.el (vc-state-base): Rename from vc-state-base-face.

8 years ago* src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings.
Paul Eggert [Fri, 8 Apr 2016 23:29:59 +0000 (16:29 -0700)]
* src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings.

8 years agoComint and compile no longer set EMACS
Paul Eggert [Fri, 8 Apr 2016 20:39:17 +0000 (13:39 -0700)]
Comint and compile no longer set EMACS

This mostly restores the change that I reverted on March 23,
fixing most of Bug#20202.  The only part of the change that is
still reverted is the change to M-x term, where compatibility with
current Bash constrains us from moving too quickly (Bug#20484).
Problem reported by Phillip Lord in: http://bugs.gnu.org/20484#108
* etc/NEWS: Document this.
* lisp/comint.el (comint-exec-1):
* lisp/net/tramp-sh.el (tramp-remote-process-environment):
* lisp/progmodes/compile.el (compilation-start):
Don’t set EMACS=t in the subsidiary process.

8 years ago* lisp/subr.el (read-key): Don't let the prompt linger (bug#22714)
Stefan Monnier [Fri, 8 Apr 2016 18:02:24 +0000 (14:02 -0400)]
* lisp/subr.el (read-key): Don't let the prompt linger (bug#22714)

8 years agoMerge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25
Eli Zaretskii [Fri, 8 Apr 2016 13:55:34 +0000 (16:55 +0300)]
Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25

8 years agoAllow to customize names of executables used by grep.el
Eli Zaretskii [Fri, 8 Apr 2016 13:54:18 +0000 (16:54 +0300)]
Allow to customize names of executables used by grep.el

* lisp/progmodes/grep.el (grep-find-program): Renamed from
'find-program', which was a variable.  All uses changed.
(grep-xargs-program): Renamed from 'xargs-program', which was a
variable.  All uses changed.
(grep-program): Now a defcustom rather than a simple variable.
(Bug#23219)

8 years agoSet locale encoding to UTF-8 when run from OS X GUI.
Alan Third [Fri, 8 Apr 2016 13:52:55 +0000 (15:52 +0200)]
Set locale encoding to UTF-8 when run from OS X GUI.

* src/nsterm.m (ns_init_locale): Append .UTF-8 when setting LANG.

8 years agoAvoid signaling errors in 'M-n' at the 'C-x C-f' prompt
Eli Zaretskii [Fri, 8 Apr 2016 08:05:20 +0000 (11:05 +0300)]
Avoid signaling errors in 'M-n' at the 'C-x C-f' prompt

* lisp/ffap.el (ffap-guess-file-name-at-point): Ignore errors
while 'ffap-guesser' runs.  (Bug#23218)

8 years agoAvoid infinite loop in 'studlify-word'
Marcin Borkowski [Fri, 8 Apr 2016 07:57:21 +0000 (10:57 +0300)]
Avoid infinite loop in 'studlify-word'

* lisp/play/studly.el (studlify-region): Call
'forward-word-strictly' and 'backward-word-strictly' instead of
'forward-word' and 'backward-word'.  (Bug#19940)

8 years agoDon’t recommend obsolete EMACS env var
Paul Eggert [Thu, 7 Apr 2016 23:52:01 +0000 (16:52 -0700)]
Don’t recommend obsolete EMACS env var

* doc/misc/efaq.texi (Escape sequences in shell output):
Remove long-obsolete (and now-confusing) notes about
the EMACS environment variable in Emacs 21.1 and earlier.
* doc/misc/efaq.texi (^M in the shell buffer):
* etc/PROBLEMS:
Remove obsolescent recommendation to consult the EMACS environment
variable.

8 years ago* lisp/emacs-lisp/package.el: Change from a few days ago needs seq.
Glenn Morris [Thu, 7 Apr 2016 20:26:55 +0000 (16:26 -0400)]
* lisp/emacs-lisp/package.el: Change from a few days ago needs seq.

; Warning 'foo' is not known to be defined is always a bug.

8 years ago* lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra.
Glenn Morris [Thu, 7 Apr 2016 20:24:25 +0000 (16:24 -0400)]
* lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra.

; The various components of cl-lib are an internal implementation detail.

8 years agoFix "Beginning of buffer" error in forward-page
Leo Liu [Thu, 7 Apr 2016 13:42:40 +0000 (21:42 +0800)]
Fix "Beginning of buffer" error in forward-page

* lisp/textmodes/page.el (forward-page): Check before move to prevent
  "Beginning of buffer" error.

8 years agoAdd a `transient' project type
Dmitry Gutov [Wed, 6 Apr 2016 23:02:13 +0000 (02:02 +0300)]
Add a `transient' project type

* lisp/progmodes/project.el (project-roots): Implement for the
`transient' project type (bug#23224).
(project-current): Instead of signaling an error, return a
transient project instance rooted in the chosen directory.

8 years agoRevert "Backport HTTPS proxy fix"
Lars Magne Ingebrigtsen [Wed, 6 Apr 2016 16:36:18 +0000 (18:36 +0200)]
Revert "Backport HTTPS proxy fix"

This reverts commit 2d1a6054b161bd1055d4feb11c8c5ac95543f5db.

It's too late in the Emacs 25 release cycle to add things like this to
Emacs 25.1.  It's border line new feature.

8 years agoBackport HTTPS proxy fix
Tao Fang [Mon, 4 Apr 2016 20:21:21 +0000 (22:21 +0200)]
Backport HTTPS proxy fix

Cherry-picked from 3c623c26ae7d695746e05d8a2e16a67a6256b024

Backport:

8 years agoFix stability confusion in sort-tests
Paul Eggert [Wed, 6 Apr 2016 08:22:00 +0000 (01:22 -0700)]
Fix stability confusion in sort-tests

Problem reported by Philipp Stephani (Bug#23205).
* test/automated/sort-tests.el:
(sort-tests--insert-words-sort-and-compare):
Don’t assume that reversing a sorted list is the same
as sorting with the reverse predicate.  This is not true
for stable sorts when items compare equal.

8 years agoAvoid describe-key error with lambdas
Paul Eggert [Tue, 5 Apr 2016 20:58:57 +0000 (13:58 -0700)]
Avoid describe-key error with lambdas

Problem reported by Sho Takemori (Bug#22716).
* lisp/cedet/mode-local.el (describe-mode-local-overload)
(xref-mode-local-overload): Use function-overload-p instead
of assuming the argument is a symbol.

8 years ago* lisp/emacs-lisp/package.el (package-install-selected-packages):
Artur Malabarba [Mon, 4 Apr 2016 14:58:49 +0000 (11:58 -0300)]
* lisp/emacs-lisp/package.el (package-install-selected-packages):

Skip unavailable packages.

8 years agoSync with gnulib
Paul Eggert [Mon, 4 Apr 2016 06:12:04 +0000 (23:12 -0700)]
Sync with gnulib

This incorporates:
2016-04-03 stdint: detect good enough pre-C++11 stdint.h in C++ mode
2016-04-01 stddef: support configuring with g++
* doc/misc/texinfo.tex, lib/stddef.in.h, m4/stdint.m4:
Copy from gnulib.

8 years agoFix doc for Universal Time
Paul Eggert [Sun, 3 Apr 2016 22:27:21 +0000 (15:27 -0700)]
Fix doc for Universal Time

* doc/lispref/os.texi (Time of Day, Time Conversion):
Be more careful about distinguishing UTC (which is not valid for
pre-1961 time stamps) and UT (which is).
(Time Parsing): Remove stray obsolete paragraph about a
UNIVERSAL argument for ‘format-time-string’.

8 years ago; * src/keyboard.c (read_char): Fix typos in a comment.
Eli Zaretskii [Sun, 3 Apr 2016 17:06:51 +0000 (20:06 +0300)]
; * src/keyboard.c (read_char): Fix typos in a comment.

8 years agoHandle Bug#23186
Michael Albinus [Sun, 3 Apr 2016 07:37:16 +0000 (09:37 +0200)]
Handle Bug#23186

* lisp/net/tramp.el (tramp-encoding-command-switch)
(tramp-encoding-command-interactive):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
`tramp-encoding-shell' could be nil.  (Bug#23186)

8 years agoMore format-time-string change fixups
Paul Eggert [Sun, 3 Apr 2016 06:43:44 +0000 (23:43 -0700)]
More format-time-string change fixups

* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/org/org.el (org-timestamp-format):
Fix doc to match new format-time-string behavior.
* lisp/org/ox-icalendar.el (org-icalendar-convert-timestamp):
Use (not (not X)) to treat non-nil values of utc arg as UTC.

8 years agomake-xwidget unused arg cleanup
Paul Eggert [Sun, 3 Apr 2016 00:50:03 +0000 (17:50 -0700)]
make-xwidget unused arg cleanup

* doc/lispref/display.texi (Xwidgets): Remove stray refs.
* src/xwidget.c (syms_of_xwidget): Qwebkit, not Qwebkit_osr.

8 years agoRemove unused arguments from make-xwidget
Joakim Verona [Sun, 3 Apr 2016 00:49:27 +0000 (17:49 -0700)]
Remove unused arguments from make-xwidget

The arguments BEG and END were unused, and are now removed.

* display.texi (Xwidgets): Document the change
* xwidget.el (make-xwidget, xwidget-insert)
(xwidget-webkit-new-session): Reflect changed arguments
* xwidget.c (Fmake_xwidget, syms_of_xwidget): Reflect changed arguments