]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoFile-name completion of non-ASCII characters on OS X (bug#22169)
Anders Lindgren [Wed, 23 Dec 2015 06:15:45 +0000 (07:15 +0100)]
File-name completion of non-ASCII characters on OS X (bug#22169)

The coding system `utf-8-nfd', locally defined in ns-win.el,
didn't provide a :pre-write-conversion method, causing file name
completion of non-ASCII characters to fail.  Solved by using the
`utf-8-hfs' coding system provided by `ucs-normalize'.

* lisp/loadup.el: Load international/ucs-normalize (when building
for ns).

* lisp/term/ns-win.el (utf-8-nfd): Made `utf-8-nfd' as alias for
`utf-8-hfs' and removed the old implementation.  Set `utf-8-hfs'
as the file name coding system.

* src/nsfns.c (ns-convert-utf8-nfd-to-nfc): Removed.

9 years agoFix bug #18588 by making bug-reference-bug-regexp more lenient
Tom Tromey [Wed, 23 Dec 2015 00:02:59 +0000 (17:02 -0700)]
Fix bug #18588 by making bug-reference-bug-regexp more lenient

* lisp/progmodes/bug-reference.el (bug-reference-bug-regexp): Accept
"bug NNNN".  (Bug #18588)

9 years agoadd some cl-* aliases to lisp-mode imenu
Tom Tromey [Tue, 22 Dec 2015 23:53:05 +0000 (16:53 -0700)]
add some cl-* aliases to lisp-mode imenu

* (lisp-imenu-generic-expression): Add cl-define-compiler-macro,
cl-defgeneric, and cl-defmethod.

9 years agoMake a variable buffer-local
Tom Tromey [Sun, 20 Dec 2015 03:11:49 +0000 (20:11 -0700)]
Make a variable buffer-local

* lisp/generic-x.el (generic-rul-mode-setup-function): Make
font-lock-syntax-table buffer-local.  (Bug #21627)

9 years agoFix decoding of text in URLs retrieved by EWW
Eli Zaretskii [Tue, 22 Dec 2015 16:57:51 +0000 (18:57 +0200)]
Fix decoding of text in URLs retrieved by EWW

* lisp/net/eww.el (eww-render): Pass 'charset' to
'eww-display-raw'.  Use the value of 'last-coding-system-used', if
non-nil, to set 'buffer-file-coding-system' of the buffer where we
show the URL.
(eww-display-html, eww-display-raw): Decode the text correctly,
using the charset found in the headers, and defaulting to UTF-8.
If the user told us to use a specific encoding, override the
charset from the headers.  (Bug#22222)

9 years agoFix a coding error in c-forward-<>-arglist-recur. Fixes bug#22156
Alan Mackenzie [Tue, 22 Dec 2015 16:10:35 +0000 (16:10 +0000)]
Fix a coding error in c-forward-<>-arglist-recur.  Fixes bug#22156

* lisp/progmodes/cc-engine.el (c-forward-<>-arglist-recur): Remove unused
variable `tmp'.
After a failed search for a matching ">", restore point before continuing.

9 years agoInstrument Tramp tests
Michael Albinus [Tue, 22 Dec 2015 11:02:58 +0000 (12:02 +0100)]
Instrument Tramp tests

* test/automated/tramp-tests.el (tramp-test29-vc-registered)
(tramp--test-utf8): Instrument tests.

9 years agoFix `display-buffer' call in `display-message-or-buffer' (Bug#22221)
Martin Rudalics [Tue, 22 Dec 2015 08:19:21 +0000 (09:19 +0100)]
Fix `display-buffer' call in `display-message-or-buffer' (Bug#22221)

* lisp/simple.el (display-message-or-buffer): Call
`display-buffer' with ACTION instead of NOT-THIS-WINDOW
(Bug#22221).

9 years ago* lisp/saveplace.el (toggle-save-place, save-place-to-alist)
Juri Linkov [Tue, 22 Dec 2015 00:14:47 +0000 (02:14 +0200)]
* lisp/saveplace.el (toggle-save-place, save-place-to-alist)

(save-places-to-alist, save-place-dired-hook):
Check for dired-subdir-alist.  (Bug#19851)

9 years ago; Clarify comment added in previous commit.
Eli Zaretskii [Mon, 21 Dec 2015 18:07:55 +0000 (20:07 +0200)]
; Clarify comment added in previous commit.

9 years agoAdd FIXME comment re stack overflow and modules
Paul Eggert [Mon, 21 Dec 2015 10:54:51 +0000 (02:54 -0800)]
Add FIXME comment re stack overflow and modules

9 years agoRevert some recent emacs-module commentary
Paul Eggert [Mon, 21 Dec 2015 01:43:42 +0000 (17:43 -0800)]
Revert some recent emacs-module commentary

Most of the recently-added commentary was incorrect, due to the
possibility of stack overflow.

9 years agoSpelling fix: prefer "cooperate" to "co-operate"
Paul Eggert [Mon, 21 Dec 2015 01:31:52 +0000 (17:31 -0800)]
Spelling fix: prefer "cooperate" to "co-operate"

9 years agoPort undo fixes to -fno-common
Paul Eggert [Mon, 21 Dec 2015 01:27:28 +0000 (17:27 -0800)]
Port undo fixes to -fno-common

Port recent fix for Bug#21968 to platforms like 'gcc -fno-common'.
* src/keyboard.c, src/keyboard.h (point_before_last_command_or_undo)
(buffer_before_last_command_or_undo):
Declare in keyboard.h, and define in keyboard.c,
instead of assuming the traditional Unix relaxed ref-def linkage.

9 years agoImprove commentary for emacs-module.c
Philipp Stephani [Sun, 20 Dec 2015 19:10:03 +0000 (21:10 +0200)]
Improve commentary for emacs-module.c

* src/lisp.h: Document emacs-module.c assumptions about EQ and NILP.
* src/emacs-module.c (module_non_local_exit_get): Document that we
cannot use the current implementation.
(module_is_not_nil, module_eq): Document assumptions about EQ and
NILP.

9 years agoSuppress test on Mac OS X
Michael Albinus [Sun, 20 Dec 2015 17:51:24 +0000 (18:51 +0100)]
Suppress test on Mac OS X

* test/automated/tramp-tests.el (tramp--test-darwin-p): New defun.
(tramp--test-utf8): Use it.

9 years agoMerge branch 'scratch/follow' into emacs-25
Alan Mackenzie [Sun, 20 Dec 2015 12:33:30 +0000 (12:33 +0000)]
Merge branch 'scratch/follow' into emacs-25

This allows Isearch, etc., to work well when Follow Mode is active.

9 years ago* tramp-sh.el (tramp-get-ls-command-with-w-option): Improve check.
Michael Albinus [Sat, 19 Dec 2015 19:36:07 +0000 (20:36 +0100)]
* tramp-sh.el (tramp-get-ls-command-with-w-option): Improve check.

9 years agoFix last commit
Eli Zaretskii [Sat, 19 Dec 2015 16:05:44 +0000 (18:05 +0200)]
Fix last commit

* doc/emacs/rmail.texi (Rmail Deletion): Document new behavior of 'u'
with numeric argument.

9 years agoDocument new features of Rmail
Eli Zaretskii [Sat, 19 Dec 2015 15:43:11 +0000 (17:43 +0200)]
Document new features of Rmail

* doc/emacs/rmail.texi (Rmail Summary Edit, Rmail Deletion):
Document new behavior of 'd' and 'C-d' with numeric argument.
(Rmail Display): Document the rendering of HTML MIME parts.

9 years ago; * etc/NEWS: More Info-related copyedits
Eli Zaretskii [Sat, 19 Dec 2015 15:21:05 +0000 (17:21 +0200)]
; * etc/NEWS: More Info-related copyedits

9 years ago; * etc/NEWS: Rearrange Info-related entries
Eli Zaretskii [Sat, 19 Dec 2015 15:20:02 +0000 (17:20 +0200)]
; * etc/NEWS: Rearrange Info-related entries

9 years agoImprove documentation of new cl-lib functions
Eli Zaretskii [Sat, 19 Dec 2015 15:17:40 +0000 (17:17 +0200)]
Improve documentation of new cl-lib functions

* doc/misc/cl.texi (Predicates on Numbers, Numerical Functions):
Fix wording.

9 years ago; * etc/NEWS: Copyedits and rearrangements. Add entry about Info-quoted.
Eli Zaretskii [Sat, 19 Dec 2015 14:58:31 +0000 (16:58 +0200)]
; * etc/NEWS: Copyedits and rearrangements.  Add entry about Info-quoted.

9 years agoDocument the new feature of 'minibuffer-with-setup-hook'
Eli Zaretskii [Sat, 19 Dec 2015 14:35:42 +0000 (16:35 +0200)]
Document the new feature of 'minibuffer-with-setup-hook'

* lisp/files.el (minibuffer-with-setup-hook): Clarify how FUN is
added to `minibuffer-setup-hook'.

9 years agoDocument new features of Font Lock
Eli Zaretskii [Sat, 19 Dec 2015 14:14:11 +0000 (16:14 +0200)]
Document new features of Font Lock

* doc/lispref/modes.texi (Other Font Lock Variables): Document
'font-lock-flush-function' and 'font-lock-ensure-function'.
(Font Lock Basics): Document the basic fontification functions
referenced in "Other Font Lock Variables".

* lisp/font-lock.el (font-lock-flush, font-lock-ensure): Doc fix.

9 years agoDocument new features of Rectangle mode
Eli Zaretskii [Sat, 19 Dec 2015 12:40:19 +0000 (14:40 +0200)]
Document new features of Rectangle mode

* doc/emacs/killing.texi (Rectangles): Document "C-x C-x" in
rectangle-mark-mode.

9 years agoManual followup to last change
Eli Zaretskii [Sat, 19 Dec 2015 12:19:12 +0000 (14:19 +0200)]
Manual followup to last change

* doc/lispref/display.texi (Displaying Messages): Sync with the
doc string.  (Bug#22210)

9 years agoClarify doc string of 'display-message-or-buffer'
Eli Zaretskii [Sat, 19 Dec 2015 11:34:34 +0000 (13:34 +0200)]
Clarify doc string of 'display-message-or-buffer'

* lisp/simple.el (display-message-or-buffer): Doc fix.  Suggested
by Sebastian Wiesner <swiesner@lunaryorn.com>.  (Bug#22210)

9 years ago* doc/emacs/emacs.texi (Top): Update top-level menus.
Eli Zaretskii [Sat, 19 Dec 2015 11:22:26 +0000 (13:22 +0200)]
* doc/emacs/emacs.texi (Top): Update top-level menus.

9 years ago* doc/lispref/elisp.texi (Top): Update top-level menus.
Eli Zaretskii [Sat, 19 Dec 2015 11:04:36 +0000 (13:04 +0200)]
* doc/lispref/elisp.texi (Top): Update top-level menus.

9 years agoDocument how to avoid file-local variables that aren't
Eli Zaretskii [Sat, 19 Dec 2015 10:37:49 +0000 (12:37 +0200)]
Document how to avoid file-local variables that aren't

* doc/emacs/custom.texi (Specifying File Variables): Describe how
to prevent Emacs from interpreting unrelated text as file-local
variables.  (Bug#22166)

9 years agoFix a typo in eterm-color's termcap entry
Dave Thomas [Sat, 19 Dec 2015 10:17:10 +0000 (12:17 +0200)]
Fix a typo in eterm-color's termcap entry

* lisp/term.el (term-termcap-format): Fix a typo in the "ue="
entry.  (Bug#22184)

Copyright-paperwork-exempt: yes

9 years agoAllow 'browse-url-emacs' visit non-existent URLs
Eli Zaretskii [Sat, 19 Dec 2015 09:54:18 +0000 (11:54 +0200)]
Allow 'browse-url-emacs' visit non-existent URLs

* lisp/url/url-handlers.el (url-insert-file-contents): Don't
signal an error if VISIT is non-nil, to more faithfully emulate
the behavior of 'insert-file-contents'.  (Bug#22160)

9 years agoRemove SunOS 4.x cruft
Paul Eggert [Sat, 19 Dec 2015 01:10:50 +0000 (17:10 -0800)]
Remove SunOS 4.x cruft

Support for SunOS 4.x was removed in Emacs 23 but some cruft was left behind.
* lib-src/pop.c [sun]: Remove no-longer-needed include.
* lwlib/xlwmenu.c (SUNSO41): Remove.

9 years agoMerge from gnulib
Paul Eggert [Fri, 18 Dec 2015 23:41:45 +0000 (15:41 -0800)]
Merge from gnulib

This mostly commentary fixes.
* doc/misc/texinfo.tex, lib/intprops.h: Copy from gnulib.
* lib/gnulib.mk: Regenerate with new gnulib-tool.

9 years agoMinor fixes in Tramp
Michael Albinus [Fri, 18 Dec 2015 16:45:24 +0000 (17:45 +0100)]
Minor fixes in Tramp

* lisp/net/tramp-sh.el (tramp-do-file-attributes-with-ls):
Reorder ls arguments.

* lisp/net/tramp.el (tramp-dissect-file-name): Fix docstring.

9 years agoMake tramp a built-in package
Michael Albinus [Fri, 18 Dec 2015 16:32:52 +0000 (17:32 +0100)]
Make tramp a built-in package

* lisp/finder.el (finder-compile-keywords): Update
`package--builtins' also when Version: keyword is available.

* lisp/net/trampver.el: Add Version: keyword.
(tramp-version): Change it to "2.2.13.25.1", in order to be
compatible with `version-to-list'.

9 years ago* etc/tutorials/TUTORIAL.it: Update and fix typos.
Lele Gaifax [Fri, 18 Dec 2015 11:05:29 +0000 (13:05 +0200)]
* etc/tutorials/TUTORIAL.it: Update and fix typos.

9 years agoRename `recenter-group' to `recenter-window-group' scratch/follow
Alan Mackenzie [Fri, 18 Dec 2015 10:40:49 +0000 (10:40 +0000)]
Rename `recenter-group' to `recenter-window-group'

* doc/lispref/windows.texi (Textual Scrolling)
* lisp/window.el (top level, recenter-group)
* lisp/follow.el (follow-mode)
* lisp/isearch.el (isearch-back-into-window): Rename `recenter-group' to
`recenter-window-group' and `recenter-group-function' to
`recenter-window-group-function'.

9 years agoFix vertical-motion in tabulated-list mode
Eli Zaretskii [Fri, 18 Dec 2015 10:26:17 +0000 (12:26 +0200)]
Fix vertical-motion in tabulated-list mode

* src/indent.c (Fvertical_motion): When moving from line beginning
to point under line truncation, assume overshoot by one line only
if point actually lies beyond the window's right margin.
(Bug#22194)

9 years agoDon't have help functions call x-display-pixel-width/-height on ttys
Martin Rudalics [Fri, 18 Dec 2015 10:03:03 +0000 (11:03 +0100)]
Don't have help functions call x-display-pixel-width/-height on ttys

* lisp/help.el (temp-buffer-max-height, temp-buffer-max-width):
Don't call x-display-pixel-width/-height on ttys.

9 years agoUse 'hg id' in vc-hg-previous-revision
Dmitry Gutov [Fri, 18 Dec 2015 04:58:49 +0000 (06:58 +0200)]
Use 'hg id' in vc-hg-previous-revision

* lisp/vc/vc-hg.el (vc-hg-previous-revision):
Use 'hg id' to retrieve it (bug#22032).

9 years ago* lisp/follow.el (follow-sit-for): Remove (it's redundant).
Alan Mackenzie [Thu, 17 Dec 2015 21:06:39 +0000 (21:06 +0000)]
* lisp/follow.el (follow-sit-for): Remove (it's redundant).

9 years agoFix a typo in the Emacs manual
Eli Zaretskii [Thu, 17 Dec 2015 19:06:11 +0000 (21:06 +0200)]
Fix a typo in the Emacs manual

* doc/emacs/trouble.texi (Sending Patches): Fix a typo.  Reported
by Lele Gaifax <lele@metapensiero.it>.  (Bug#22193)

9 years agoFix parsing netrc entries with ports
Eli Zaretskii [Thu, 17 Dec 2015 18:31:25 +0000 (20:31 +0200)]
Fix parsing netrc entries with ports

* lisp/gnus/auth-source.el (auth-source-ensure-strings): Don't
make a list out of 't'.  (Bug#22188)

* test/automated/auth-source-tests.el
(auth-source-test-netrc-parse-entry): New test.

9 years agoFix typo in Doug Lea malloc configure log
Paul Eggert [Thu, 17 Dec 2015 18:09:02 +0000 (10:09 -0800)]
Fix typo in Doug Lea malloc configure log

* configure.ac (emacs_cv_var_doug_lea_malloc):
Fix typo that confused the log output of 'configure'.

9 years ago* etc/NEWS: Mention the new pcase patterns `seq' and `map'.
Nicolas Petton [Wed, 16 Dec 2015 17:40:07 +0000 (18:40 +0100)]
* etc/NEWS: Mention the new pcase patterns `seq' and `map'.

9 years ago; * etc/NEWS: Fix last commit.
Eli Zaretskii [Wed, 16 Dec 2015 15:54:55 +0000 (17:54 +0200)]
; * etc/NEWS: Fix last commit.

9 years ago* etc/NEWS: Move entry on pcase to correct section
Alan Mackenzie [Wed, 16 Dec 2015 15:29:13 +0000 (15:29 +0000)]
* etc/NEWS: Move entry on pcase to correct section

(Accidentally omitted from previous commit)

9 years ago; * doc/emacs/programs.texi (Lisp Doc): Clarofy last change.
Eli Zaretskii [Wed, 16 Dec 2015 15:24:43 +0000 (17:24 +0200)]
; * doc/emacs/programs.texi (Lisp Doc): Clarofy last change.

9 years ago; * doc/emacs/programs.texi (Lisp Doc): Clarify last change.
Eli Zaretskii [Wed, 16 Dec 2015 15:18:45 +0000 (17:18 +0200)]
; * doc/emacs/programs.texi (Lisp Doc): Clarify last change.

9 years agoAdd documentation for changes to Show Paren mode.
Alan Mackenzie [Wed, 16 Dec 2015 15:09:55 +0000 (15:09 +0000)]
Add documentation for changes to Show Paren mode.

* lisp/paren.el (show-paren-highlight-openparen): Enhance doc string.

* doc/emacs/programs.texi (Matching): Add descriptions of some pertinent user
options, including the new show-paren-when-point-inside-paren and
show-paren-when-point-in-periphery.

* etc/NEWS (.. Specialized Modes ...): Add an entry for Show Paren mode.
Move an entry on pcase to the Lisp Changes section.

9 years ago; * etc/NEWS: Mark message-mode entry as not requiring documentation.
Eli Zaretskii [Wed, 16 Dec 2015 14:52:52 +0000 (16:52 +0200)]
; * etc/NEWS: Mark message-mode entry as not requiring documentation.

9 years agoDocument Eldoc changes
Eli Zaretskii [Wed, 16 Dec 2015 14:38:06 +0000 (16:38 +0200)]
Document Eldoc changes

* doc/emacs/programs.texi (Lisp Doc): Document Global Eldoc mode.

9 years agoFix invocation of Python and Guile interpreters from gdb-mi
Eli Zaretskii [Wed, 16 Dec 2015 10:40:33 +0000 (12:40 +0200)]
Fix invocation of Python and Guile interpreters from gdb-mi

* lisp/progmodes/gdb-mi.el (gdb-control-commands-regexp): Add
commands for interactive Python and Guile interpreters.
(gdb-send): Recognize various ways of exiting from Python and
Guile interpreters and returning to GDB.  For details, see
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00693.html
and http://stackoverflow.com/questions/31514741.

9 years agoRemove attempt to use C11 threads
Paul Eggert [Wed, 16 Dec 2015 07:10:12 +0000 (23:10 -0800)]
Remove attempt to use C11 threads

C11 threads are not needed for Emacs now, and their use is causing
hassles on FreeBSD 10.x.  Problem reported by Ashish SHUKLA in:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00648.html
* configure.ac: Do not check for C11 threads. Remove unnecessary
fiddling with CPPFLAGS when configuring pthreads.
* src/emacs-module.c (main_thread, check_main_thread)
(module_init): Do not worry about C11 threads.

9 years agoSet utf8 encoding with stty in Tramp
Michael Albinus [Tue, 15 Dec 2015 22:54:11 +0000 (23:54 +0100)]
Set utf8 encoding with stty in Tramp

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Move up uname check.  Handle Mac OS X eol encoding.  Set utf8
encoding with stty.

9 years agoTidy up documentation associated with window groups.
Alan Mackenzie [Tue, 15 Dec 2015 11:41:54 +0000 (11:41 +0000)]
Tidy up documentation associated with window groups.

* doc/lispref/windows.texi (Basic Windows): Add an @anchor for "Window
Groups".  Correct example function to `window-group-start'.
(Window Start and End, Textual scrolling): Point to the new anchor.  State
that (most of) the args in window group functions have the same meaning as for
the corresponding window primitives.

* doc/lispref/positions.texi (Screen Lines).  Same as above.

9 years agoComplete last commit
Michael Albinus [Tue, 15 Dec 2015 11:18:16 +0000 (12:18 +0100)]
Complete last commit

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Move uname check up.  Handle Mac OS X eol encoding.

9 years agoHandle Mac OS X eol encoding in Tramp
Michael Albinus [Tue, 15 Dec 2015 11:05:37 +0000 (12:05 +0100)]
Handle Mac OS X eol encoding in Tramp

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Handle Mac OS X eol encoding.

9 years agoFix variable name typo in compute_tip_xy
YAMAMOTO Mitsuharu [Tue, 15 Dec 2015 08:53:44 +0000 (17:53 +0900)]
Fix variable name typo in compute_tip_xy

* src/w32fns.c (compute_tip_xy):
* src/xfns.c (compute_tip_xy): Modify *root_x instead of *root_y
when `right' is integer.

9 years ago* lisp/ibuffer.el: Add ability to (un-)mark or delete buffers in the region.
foudfou [Sat, 12 Dec 2015 21:06:03 +0000 (22:06 +0100)]
* lisp/ibuffer.el: Add ability to (un-)mark or delete buffers in the region.

9 years agoRevert "Fix rx matcher overflow without limiting"
Tassilo Horn [Mon, 14 Dec 2015 17:46:47 +0000 (18:46 +0100)]
Revert "Fix rx matcher overflow without limiting"

This reverts commit fe27e037663d36be3e5741c2ce86ab4ee8017db1.

9 years agoIspell: Bind isearch-regexp-function to nil around call to isearch..-new-loop
Alan Mackenzie [Mon, 14 Dec 2015 17:29:45 +0000 (17:29 +0000)]
Ispell: Bind isearch-regexp-function to nil around call to isearch..-new-loop

* lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay): bind
isearch-regexp-function to nil around call to isearch-lazy-highligh-new-loop.

9 years agoFix rx matcher overflow without limiting
Tassilo Horn [Mon, 14 Dec 2015 17:23:31 +0000 (18:23 +0100)]
Fix rx matcher overflow without limiting

* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Improve last
change to the regexp without imposing a limit on the length of the
options.

9 years agoEnhance ispell-skip-region-alist by generating part of it at runtime.
Alan Mackenzie [Mon, 14 Dec 2015 17:17:31 +0000 (17:17 +0000)]
Enhance ispell-skip-region-alist by generating part of it at runtime.

* lisp/textmodes/ispell.el (ispell--\\w-filter, ispell--make-\\w-expression)
(ispell--make-filename-or-URL-re): New functions which generate a regexp.
(ispell-skip-region-alist): Remove the bit that matches a filename/URL, etc.
(ispell-begin-skip-region-regexp, ispell-skip-region-list, ispell-message):
Include the result of ispell--make-filename-or-URL-re in regexps.

9 years ago* build-aux/gitlog-to-emacslog: Ignore more pointless merge commits.
Glenn Morris [Mon, 14 Dec 2015 16:46:27 +0000 (08:46 -0800)]
* build-aux/gitlog-to-emacslog: Ignore more pointless merge commits.

9 years agoReplace GROUP argument in six window primitives by new functions.
Alan Mackenzie [Mon, 14 Dec 2015 16:38:07 +0000 (16:38 +0000)]
Replace GROUP argument in six window primitives by new functions.

* doc/lispref/windows.texi (Window Start and End, Textual Scrolling)
* doc/lispref/positions.texi (Screen Lines): Remove optional GROUP argument
from description of six window functions.  Add in description of new functions
window-group-start, window-group-end, set-window-group-start,
pos-visible-in-window-group-p, recenter-group and move-to-window-group-line,
together with the six variables indirecting to the pertinent group
functions.

* src/window.c
* src/keyboard.c: Revert the commit from 2015-11-11 12:02:48, in so far as it
applies to these two files, which added the GROUP argument to six window
primitives.

* lisp/follow.el (follow-mode): Use updated variable names for the indirected
functions.

* lisp/isearch.el (isearch-update, isearch-done, isearch-string-out-of-window)
(isearch-back-into-window, isearch-lazy-highlight-new-loop)
(isearch-lazy-highlight-search, isearch-lazy-highlight-update): Replace calls
to window primitives (e.g. window-start) with a GROUP argument by calls to
new functions (e.g. window-group-start).

* lisp/ispell.el (ispell-command-loop): Replace call to
pos-visible-in-window-p with pos-visible-in-window-group-p.

* lisp/window.el (window-group-start, window-group-end)
(set-window-group-start, recenter-group, pos-visible-in-window-group-p)
(selected-window-group, move-to-window-group-line): New functions.
(window-group-start-function, window-group-end-function)
(set-window-group-start-function, recenter-group-function)
(pos-visible-in-window-group-p-function, selected-window-group-function)
(move-to-window-group-line-function): New variables.

9 years ago* etc/tutorials/TUTORIAL.pt_BR: Fix a typo. (Bug#22165)
Vitorio Miguel [Mon, 14 Dec 2015 16:08:29 +0000 (18:08 +0200)]
* etc/tutorials/TUTORIAL.pt_BR: Fix a typo.  (Bug#22165)

Copyright-paperwork-exempt: yes

9 years ago; * src/fileio.c (Finsert_file_contents): Avoid compiler warning.
Eli Zaretskii [Mon, 14 Dec 2015 15:55:02 +0000 (17:55 +0200)]
; * src/fileio.c (Finsert_file_contents): Avoid compiler warning.

9 years agoMerge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25
Eli Zaretskii [Sun, 13 Dec 2015 19:52:03 +0000 (21:52 +0200)]
Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25

9 years agoImprove regex to not trigger stack overflow
Tassilo Horn [Sun, 13 Dec 2015 18:41:58 +0000 (19:41 +0100)]
Improve regex to not trigger stack overflow

* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Improve regex in
order not to trigger a stack overflow in regex matcher with unbalanced
brackets (bug#22146).

9 years agoFix visiting files with raw-text
Eli Zaretskii [Sun, 13 Dec 2015 17:56:27 +0000 (19:56 +0200)]
Fix visiting files with raw-text

* src/fileio.c (Finsert_file_contents): Fix setting buffer unibyte
when some stuff was actually read.  (Bug#22162)

9 years agoFix regex matching keyval labels
Tassilo Horn [Sun, 13 Dec 2015 16:35:40 +0000 (17:35 +0100)]
Fix regex matching keyval labels

* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Fix regexp
matching keyval labels.

9 years ago* lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error
Michael Albinus [Sun, 13 Dec 2015 12:47:40 +0000 (13:47 +0100)]
* lisp/ido.el (ido-file-name-all-completions-1): Do not raise an error

... in case of Tramp.  (Bug#20821)

9 years agoFix performance regression with gcc -O0
Paul Eggert [Sun, 13 Dec 2015 03:27:51 +0000 (19:27 -0800)]
Fix performance regression with gcc -O0

This fixes the smaller performance hit that I noted in:
https://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00357.html
* src/alloc.c (macro_XPNTR_OR_SYMBOL_OFFSET, macro_XPNTR):
* src/puresize.h (puresize_h_PURE_P)
(puresize_h_CHECK_IMPURE):
New macros, with the old contents of the functions.
* src/alloc.c (XPNTR_OR_SYMBOL_OFFSET, XPNTR):
* src/puresize.h (PURE_P, CHECK_IMPURE):
Use the new macros.  Also macros, if DEFINE_KEY_OPS_AS_MACROS.
* src/conf_post.h (ATTRIBUTE_UNUSED):
* src/lisp.h (DEFINE_KEY_OPS_AS_MACROS): New macros.

9 years ago* lisp/emacs-lisp/package.el (package-unpack): Security check
Artur Malabarba [Sat, 12 Dec 2015 21:43:34 +0000 (21:43 +0000)]
* lisp/emacs-lisp/package.el (package-unpack): Security check

Check that we received the package we were offered.

9 years ago* lisp/emacs-lisp/package.el (package--compile): Don't activate
Artur Malabarba [Sat, 12 Dec 2015 21:39:19 +0000 (21:39 +0000)]
* lisp/emacs-lisp/package.el (package--compile): Don't activate

`package-unpack' takes care of all activations now (other than
`package-initialize).  `package--compile' now only compiles.

9 years agoDocument the new bindings of <UP> and <DOWN> in the minibuffer
Eli Zaretskii [Sat, 12 Dec 2015 14:49:47 +0000 (16:49 +0200)]
Document the new bindings of <UP> and <DOWN> in the minibuffer

* doc/emacs/mini.texi (Minibuffer History): Describe the new
bindings of <UP> and <DOWN> in the minibuffer.

9 years agoDocument new features of Ido
Eli Zaretskii [Sat, 12 Dec 2015 14:26:29 +0000 (16:26 +0200)]
Document new features of Ido

* doc/misc/ido.texi (Misc): Document 'C-S-b'.

9 years agoFix frame height calculations with added menu bar on Windows (Bug#22105)
Martin Rudalics [Sat, 12 Dec 2015 13:38:11 +0000 (14:38 +0100)]
Fix frame height calculations with added menu bar on Windows (Bug#22105)

* doc/lispref/frames.texi (Parameter Access): Mention pitfalls
when simultaneously specifying multiple parameters for
`modify-frame-parameters' that all may change the frame's size.
* src/w32fns.c (x_set_menu_bar_lines): Don't set
windows_or_buffers_changed here.
(my_create_tip_window, Fx_show_tip): Call AdjustWindowRect
with third argument false.
* src/w32menu.c (set_frame_menubar): Set
windows_or_buffers_changed here.
* src/w32term.c (x_set_window_size): Determine third argument of
AdjustWindowRect from whether the frame has a menu bar and not
from whether it wants one.

9 years agoDocument the change in interactive shell mode
Eli Zaretskii [Sat, 12 Dec 2015 13:26:53 +0000 (15:26 +0200)]
Document the change in interactive shell mode

* doc/emacs/misc.texi (Interactive Shell): Document that the
'*shell*' buffer by default displays in a new window.

9 years agoDocument new features of package.el
Eli Zaretskii [Sat, 12 Dec 2015 13:17:14 +0000 (15:17 +0200)]
Document new features of package.el

* doc/emacs/package.texi (Package Menu): Document the 'external'
status and the new menu commands.
(Package Installation): Document archive priorities.

* lisp/emacs-lisp/package.el (package-archive-priorities): Doc fix.
(package-menu-hide-low-priority): Doc fix.

9 years agoUpdate and document new features of xterm support
Eli Zaretskii [Sat, 12 Dec 2015 12:18:41 +0000 (14:18 +0200)]
Update and document new features of xterm support

* doc/emacs/frames.texi (Text-Only Mouse): Document that
track-mouse is supported by newer xterm versions.

9 years ago; * etc/NEWS: Update and fix the entry for ERC.
Eli Zaretskii [Sat, 12 Dec 2015 12:07:09 +0000 (14:07 +0200)]
; * etc/NEWS: Update and fix the entry for ERC.

9 years ago; * etc/NEWS: Update the entry for 'save-place-mode'.
Eli Zaretskii [Sat, 12 Dec 2015 12:04:13 +0000 (14:04 +0200)]
; * etc/NEWS: Update the entry for 'save-place-mode'.

9 years ago; * etc/NEWS: Update and fix entry for 'xterm-screen-extra-capabilities'.
Eli Zaretskii [Sat, 12 Dec 2015 11:59:54 +0000 (13:59 +0200)]
; * etc/NEWS: Update and fix entry for 'xterm-screen-extra-capabilities'.

9 years agoDocument new features of Prettify Mode
Eli Zaretskii [Sat, 12 Dec 2015 11:51:21 +0000 (13:51 +0200)]
Document new features of Prettify Mode

* doc/emacs/programs.texi (Misc for Programs): Document
'prettify-symbols-compose-predicate' and
'prettify-symbols-unprettify-at-point'.

* lisp/progmodes/prog-mode.el (prettify-symbols-alist)
(prettify-symbols-default-compose-p)
(prettify-symbols-compose-predicate)
(prettify-symbols--compose-symbol): Doc fixes.

9 years agoDocument multi-mode indentation facilities
Eli Zaretskii [Sat, 12 Dec 2015 10:53:35 +0000 (12:53 +0200)]
Document multi-mode indentation facilities

* doc/lispref/text.texi (Mode-Specific Indent): Document
'prog-indentation-context', 'prog-first-column', and 'prog-widen'.

* lisp/progmodes/prog-mode.el (prog-indentation-context)
(prog-widen): Doc fixes.

9 years agoDocument 'vc-refresh-state'
Eli Zaretskii [Sat, 12 Dec 2015 09:17:25 +0000 (11:17 +0200)]
Document 'vc-refresh-state'

* doc/emacs/maintaining.texi (Version Control): Document
'vc-refresh-state'.

* lisp/vc/vc-hooks.el (vc-refresh-state): Doc fix.

9 years agoFix echo for "C-u"
Eli Zaretskii [Sat, 12 Dec 2015 08:05:26 +0000 (10:05 +0200)]
Fix echo for "C-u"

* src/keyboard.c (command_loop_1): Undo last change.  It caused
duplicate echo of C-u.  (Bug#22107)

9 years agoAvoid errors when creating files under SVN in new directory
Eli Zaretskii [Fri, 11 Dec 2015 10:50:53 +0000 (12:50 +0200)]
Avoid errors when creating files under SVN in new directory

* lisp/vc/vc-svn.el (vc-svn-registered): Use
file-accessible-directory-p, to avoid cd'ing to a non-existing
directory, which signals an error on some systems.  (Bug#21984)
(vc-svn-checkin): Call log-edit-extract-headers with 2 arguments.
Use declare-function to avoid byte-compiler warnings.

9 years agoImprove Lua support in etags
Eli Zaretskii [Fri, 11 Dec 2015 10:07:26 +0000 (12:07 +0200)]
Improve Lua support in etags

* lib-src/etags.c (Lua_functions): Skip spaces before looking for
"function".

* etc/NEWS: Mention improved Lua support by 'etags'.

* test/etags/lua-src/test.lua (test): Add tests for indented
function definitions.
* 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 modified Lua tests.

9 years agoFix 'this-command-keys' wrt prefix argument
Eli Zaretskii [Fri, 11 Dec 2015 09:53:53 +0000 (11:53 +0200)]
Fix 'this-command-keys' wrt prefix argument

* src/keyboard.c (command_loop_1): Restore the feature whereby C-u
was part of this-command-keys, but not of this-single-command-keys.
(Bug#22107)

* lisp/simple.el (internal-echo-keystrokes-prefix): Add
commentary about the function's return value.

9 years ago* lisp/files.el (load-library): Doc fix. (Bug#22140)
Eli Zaretskii [Fri, 11 Dec 2015 09:30:18 +0000 (11:30 +0200)]
* lisp/files.el (load-library): Doc fix.  (Bug#22140)

9 years agoImprove and document Ruby support in 'etags'
Eli Zaretskii [Fri, 11 Dec 2015 09:17:31 +0000 (11:17 +0200)]
Improve and document Ruby support in 'etags'

* lib-src/etags.c (Ruby_suffixes): Add ".ruby".
(Ruby_functions): Support "module" and overloaded operators.
(Ruby_help): Mention "module".

* test/etags/ruby-src/test.rb:
* test/etags/ruby-src/test1.ruby: New files.
* test/etags/Makefile (RBSRC): New tests.
(SRCS): Add ${RBSRC}.
* 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 new Ruby tests.

* doc/man/etags.1: Mention Ruby support.
* etc/NEWS: Mention Ruby support.

9 years agoInitial support for Ruby in 'etags'
Xi Lu [Fri, 11 Dec 2015 08:52:08 +0000 (10:52 +0200)]
Initial support for Ruby in 'etags'

* lib-src/etags.c <Ruby_suffixes>: New variable.
(lang_names): Add an entry for Ruby.
(Ruby_functions): New function.  (Bug#22116)

9 years agoClarify documentation of 'modify-frame-parameters'
Eli Zaretskii [Fri, 11 Dec 2015 08:46:18 +0000 (10:46 +0200)]
Clarify documentation of 'modify-frame-parameters'

* doc/lispref/frames.texi (Parameter Access): Clarify what "ignored
PARMs" mean for 'modify-frame-parameters'.

* src/frame.c (Fmodify_frame_parameters): Clarify what "ignored
PARMs" mean for this function.  (Bug#22104)

9 years agoFix setting buffer unibyte when reading from a device
Eli Zaretskii [Fri, 11 Dec 2015 08:25:37 +0000 (10:25 +0200)]
Fix setting buffer unibyte when reading from a device

* src/fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
to make a (possibly non-empty) buffer unibyte.  (Bug#22096)