]> code.delx.au - gnu-emacs/log
gnu-emacs
8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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

8 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.

8 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

8 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).

8 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)

8 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.

8 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)

8 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.

8 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.

8 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.

8 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.

8 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'.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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'.

8 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'.

8 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.

8 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.

8 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.

8 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)

8 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.

8 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.

8 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.

8 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)

8 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.

8 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)

8 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)

8 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)

8 years agoClarify documentation of 'values'
Eli Zaretskii [Fri, 11 Dec 2015 08:20:16 +0000 (10:20 +0200)]
Clarify documentation of 'values'

* doc/lispref/eval.texi (Eval): Clarify that 'values' are not
updated by any evaluation commands in 'lisp-interaction-mode'.
(Bug#22056)

8 years agoFixed subversion vc error when opening file in new directory (bug#21984).
Anders Lindgren [Fri, 11 Dec 2015 06:16:02 +0000 (07:16 +0100)]
Fixed subversion vc error when opening file in new directory (bug#21984).

* lisp/vc/vc-svn.el (vc-svn-registered): Check if directory exists.

8 years ago; Restore selector `member' accidentally drooped in ert rewrite.
Anders Lindgren [Fri, 11 Dec 2015 05:46:19 +0000 (06:46 +0100)]
; Restore selector `member' accidentally drooped in ert rewrite.

; `test/automated/ert.el' and `test/automated/ert-x.el' now run
; without errors.

* lisp/emacs-lisp/ert.el (ert--insert-human-readable-selector): Add
the `member' selector. This was accidentally dropped when code was
converted from `cl-typecase' (where `member' has a special meaning)
and `cl-ecase' (where it doesn't) to `pcase'.

8 years agoYet another fix for when point ends up in invisible text
Eli Zaretskii [Wed, 9 Dec 2015 18:03:54 +0000 (20:03 +0200)]
Yet another fix for when point ends up in invisible text

* src/xdisp.c (redisplay_window): When someone forced
window-start, and honoring that failed to show the cursor, try
moving out of invisible text, before falling back to the middle of
the window.  (Bug#22098)

8 years agoFix error in Tramp perl script for cygwin
Michael Albinus [Wed, 9 Dec 2015 11:17:15 +0000 (12:17 +0100)]
Fix error in Tramp perl script for cygwin

* lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not raise an
error if file doesn't exist.

8 years agoRemove font workaround for limited outdated versions
YAMAMOTO Mitsuharu [Wed, 9 Dec 2015 09:16:09 +0000 (18:16 +0900)]
Remove font workaround for limited outdated versions

* src/macfont.m (mac_font_descriptor_get_adjusted_weight): Remove
workaround for HiraginoSans-W7 on OS X 10.11 and 10.11.1.

8 years agoDon't add "." to load path (bug#21104)
Anders Lindgren [Wed, 9 Dec 2015 05:35:12 +0000 (06:35 +0100)]
Don't add "." to load path (bug#21104)

When configured with --enable-locallisppath=no, which is the
default for OS X, the load-path incorrectly was populated with ".".

* src/lread.c (init_lread): Don't call `decode_env_path' when
PATH_SITELOADSEARCH is empty.

8 years ago* lisp/emacs-lisp/package.el (package--with-response-buffer):
Artur Malabarba [Tue, 8 Dec 2015 12:49:20 +0000 (12:49 +0000)]
* lisp/emacs-lisp/package.el (package--with-response-buffer):

Search for the blank-line in the right buffer.

8 years ago* test/automated/simple-test.el (undo-auto-boundary-timer): Update
Glenn Morris [Tue, 8 Dec 2015 08:01:31 +0000 (00:01 -0800)]
* test/automated/simple-test.el (undo-auto-boundary-timer): Update
for recent change.

8 years agoFix some display-warning usage.
Glenn Morris [Tue, 8 Dec 2015 07:28:18 +0000 (23:28 -0800)]
Fix some display-warning usage.

* lisp/files.el (hack-local-variables, hack-dir-local-variables):
* lisp/calendar/diary-lib.el (diary-include-files, diary-sexp-entry):
* lisp/calendar/holidays.el (calendar-holiday-list):
* lisp/mail/rmailout.el (rmail-output-read-file-name):
Fix display-warning usage.

8 years ago* lisp/calendar/cal-html.el: Require diary-lib.
Glenn Morris [Tue, 8 Dec 2015 02:05:35 +0000 (21:05 -0500)]
* lisp/calendar/cal-html.el: Require diary-lib.

(cal-html-list-diary-entries): Handle no diary.  (Bug#21994)

8 years agoAdd Obsolete-since header to eudcb-ph.el
Thomas Fitzsimmons [Mon, 7 Dec 2015 23:57:04 +0000 (18:57 -0500)]
Add Obsolete-since header to eudcb-ph.el

* eudcb-ph.el: Add Obsolete-since header.

8 years agoSpelling fixes
Paul Eggert [Mon, 7 Dec 2015 16:35:53 +0000 (08:35 -0800)]
Spelling fixes

* doc/misc/calc.texi (Predefined Units): Use the bland modern
scientific style for spelling the units “ampere” and
“angstrom” rather than the older style “Ampere” and
“Ångstrom”.  The latter spelling was wrong anyway (it should
have been “Ångström”).
* lisp/emacs-lisp/ert.el (ert--explain-equal-rec):
Fix misspelling of ‘atom’ in code.

8 years ago; * etc/DEBUG: Improve newbie instructions. Fix a typo.
Eli Zaretskii [Mon, 7 Dec 2015 16:32:00 +0000 (18:32 +0200)]
; * etc/DEBUG: Improve newbie instructions.  Fix a typo.

8 years agoImprove documentation of kill commands
Eli Zaretskii [Mon, 7 Dec 2015 16:20:43 +0000 (18:20 +0200)]
Improve documentation of kill commands

* lisp/simple.el (region-extract-function, delete-backward-char)
(delete-forward-char, kill-region, copy-region-as-kill)
(kill-ring-save): Better document the optional argument REGION in
the doc strings.  Mention in the doc strings that text put in the
kill-ring can be filtered by 'filter-buffer-substring'.

* doc/lispref/text.texi (Kill Functions): Mention that functions
described in this subsection can filter text they put in the
kill-ring.  Add a cross-reference to "Buffer Contents" and an
index entry.  Document the optional argument 'region' and its
effect.
(Bug#21315)

8 years agoFurther progress making Isearch, Ispell, Replace work with Follow Mode.
Alan Mackenzie [Mon, 7 Dec 2015 15:12:15 +0000 (15:12 +0000)]
Further progress making Isearch, Ispell, Replace work with Follow Mode.

* lisp/follow.el: (follow-mode): Remove references to sit*-for-function, which
no longer exists.  Add follow-post-command-hook to  three special purpose
hooks at setup, and remove them at tear down.

* lisp/isearch.el: (isearch-update): invoke isearch-update-post-hook before
isearch-lazy-highlight-new-loop.
(isearch-lazy-highlight-new-loop): Restore this function to what it previously
was, merging the functionality of isearch-lazy-highlight-maybe-new-loop into
it.
(isearch-lazy-highlight-maybe-new-loop): function removed.

* lisp/replace.el: (replace-update-post-hook): New hook variable.
(perform-replace): Add second (nil) argument to looking-back.  Invoke
replace-update-post-hook before calling replace-highlight.

* lisp/textmodes/ispell.el: (ispell-update-post-hook): New hook variable.
(ispell-command-loop): invoke ispell-update-post-hook.  Add GROUP argument to
call of pos-visible-in-window-p.
(ispell-display-buffer): Place *Choices* window at the top of the last window
in a window group.

8 years agoAmend doc of `mapconcat': it can take sequences, not merely strings.
Alan Mackenzie [Mon, 7 Dec 2015 10:39:07 +0000 (10:39 +0000)]
Amend doc of `mapconcat': it can take sequences, not merely strings.

* doc/lispref/functions.texi (Mapping Functions): Amend the doc of `mapconcat'
to say that SEPARATOR and the results from FUNCTION may be any character
sequences, not just strings.  Add an @xref to "Sequences Arrays Vectors".

8 years agoFix an utf8 problem for Tramp on BSD
Michael Albinus [Mon, 7 Dec 2015 08:15:27 +0000 (08:15 +0000)]
Fix an utf8 problem for Tramp on BSD

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Make lax check for utf8.
(tramp-get-remote-locale): Add "en_US.UTF-8" as candidate.

8 years agoMake eudcb-ph.el obsolete
Thomas Fitzsimmons [Mon, 7 Dec 2015 00:33:24 +0000 (19:33 -0500)]
Make eudcb-ph.el obsolete

* doc/misc/eudc.texi: Bump version to 1.40.0.
Remove PH/QI sections and mentions.
* lisp/obsolete/eudcb-ph.el: Make obsolete.
* lisp/net/eudc-vars.el (eudc-known-protocols): Remove ph.
(eudc-ph-bbdb-conversion-alist): Make obsolete.
* etc/NEWS: Mention this.  (Bug#21191)

8 years agoRemove overenthusiastic eassert
Paul Eggert [Sun, 6 Dec 2015 23:07:19 +0000 (15:07 -0800)]
Remove overenthusiastic eassert

* src/lisp.h (XSYMBOL): Remove eassert incorrectly added in
previous change.  It breaks on MS-Windows --with-wide-int.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-12/msg00275.html

8 years agoPacify gcc -Wparentheses
Paul Eggert [Sun, 6 Dec 2015 22:58:24 +0000 (14:58 -0800)]
Pacify gcc -Wparentheses

* src/xdisp.c (row_containing_pos): Reparenthesize.

8 years agoPort mod-test to 32-bit Emacs --without-wide-int
Paul Eggert [Sun, 6 Dec 2015 22:54:29 +0000 (14:54 -0800)]
Port mod-test to 32-bit Emacs --without-wide-int

* modules/mod-test/test.el (mod-test-sum-test):
Bring back the 2**29 tests, but port them to 32-bit Emacs
--without-wide-int.

8 years agoFix minor Tramp problems found on BSD
Michael Albinus [Sun, 6 Dec 2015 17:55:50 +0000 (18:55 +0100)]
Fix minor Tramp problems found on BSD

* lisp/net/tramp-sh.el (tramp-perl-file-truename): Do not append
trailing slash.  Quote apostrophes.
(tramp-sh-handle-file-truename): Do not append trailing slash in
the "ls" case.
(tramp-get-ls-command-with-w-option): New defun.
(tramp-do-file-attributes-with-ls)
(tramp-do-directory-files-and-attributes-with-stat): Use it.

* test/automated/tramp-tests.el
(tramp-test31-special-characters-with-perl)
(tramp-test31-special-characters-with-ls)
(tramp-test32-utf8-with-perl, tramp-test32-utf8-with-ls):
Suppress also readlink.

8 years agoFix cursor display when invisible text is at line beginning
Eli Zaretskii [Sun, 6 Dec 2015 17:27:12 +0000 (19:27 +0200)]
Fix cursor display when invisible text is at line beginning

* src/xdisp.c (redisplay_window): When scrolling fails to show
point, prefer using the desired matrix if possible for finding the
fallback glyph row for displaying the cursor.  (Bug#22098)
(row_containing_pos): Exit the loop as soon as we hit the first
disabled glyph row.  Otherwise we risk accessing garbled data and
departing to the no-no land.

8 years agoImprove module interface when WIDE_EMACS_INT
Paul Eggert [Sun, 6 Dec 2015 17:09:07 +0000 (09:09 -0800)]
Improve module interface when WIDE_EMACS_INT

* src/emacs-module.c (plain_values): New constant.
(module_nil): Now a constant.
(Finternal_module_call, value_to_lisp_bits, lisp_to_value_bits)
(syms_of_module): Use if, not #ifdef, so that both sides are
checked at compile-time, and so that GCC doesn’t complain
about an unused var in the typical case.  Also, depend on
plain_values, not on WIDE_EMACS_INT; the code shouldn’t assume
that WIDE_EMACS_INT implies !USE_LSB_TAG.
(value_to_lisp_bits, lisp_to_value_bits): New functions.
Sign-extend integers rather than zero-extending them, as small
negative integers are more likely.
(value_to_lisp, lisp_to_value): Rewrite in terms of the new *_bits
functions.
(HAVE_STRUCT_ATTRIBUTE_ALIGNED): Define to 0 if not already defined.
(mark_modules): Remove.  All uses removed.
(lisp_to_value): Don’t assume Fcons returns a pointer aligned
to GCALIGNMENT.
(syms_of_module): Check that module_nil converts to Qnil.
* src/lisp.h (lisp_h_XSYMBOL, XSYMBOL): Use signed conversion, since
we prefer signed to unsigned when either will do.
(TAG_PTR): Sign-extend pointers when USE_LSB_TAG, as this is
a bit better for emacs-module.c.

8 years agoPort mod-test to x86-64 GNU/Linux running 32-bit
Paul Eggert [Sun, 6 Dec 2015 16:55:30 +0000 (08:55 -0800)]
Port mod-test to x86-64 GNU/Linux running 32-bit

* modules/mod-test/test.el (mod-test-sum-test):
Don’t attempt to match descriptions to operating systems.
It didn’t work on Fedora x86-64 running a 32-bit executable,
and it’s not worth the trouble anyway.
Port to 32-bit platforms by removing an assumption about
fixnum widths.

8 years agoFix auto-revert-tests.el when filenotify isn't used
Michael Albinus [Sun, 6 Dec 2015 09:40:23 +0000 (09:40 +0000)]
Fix auto-revert-tests.el when filenotify isn't used

* test/automated/auto-revert-tests.el (auto-revert--wait-for-revert):
Make it working also when filenotify isn't used.

8 years ago* lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay):
Juri Linkov [Sun, 6 Dec 2015 00:20:12 +0000 (02:20 +0200)]
* lisp/textmodes/ispell.el (ispell-highlight-spelling-error-overlay):

Let-bind isearch-regexp-function to nil.  (Bug#22097)

8 years ago* lisp/emacs-lisp/package.el: Don't install bad signatures (bug#22089)
Artur Malabarba [Sat, 5 Dec 2015 16:37:01 +0000 (16:37 +0000)]
* lisp/emacs-lisp/package.el: Don't install bad signatures (bug#22089)

(package--with-response-buffer): NOERROR and ERROR-FORM only
handle connection errors.
(bad-signature): New error type.
(package--check-signature-content): Use it.
(package--check-signature): Properly distinguish connection errors
from bad-signature errors.  Do the check for
`package-check-signature' `allow-unsigned' here instead of forcing
the callbacks to do it.  Add a new argument, UNWIND.
(package--download-one-archive, package-install-from-archive):
Update usage of `package--check-signature'.

8 years agoFix Bug#22092.
Ulf Jasper [Sat, 5 Dec 2015 15:55:49 +0000 (16:55 +0100)]
Fix Bug#22092.

* lisp/calendar/icalendar.el (icalendar--get-unfolded-buffer):
  Clean up inconsistent line endings. (Bug#22092)
  (icalendar--clean-up-line-endings): New.
* test/automated/icalendar-tests.el (icalendar-real-world): Add test
  for Bug#22092.

8 years ago; * etc/NEWS: Fix whitespace.
Eli Zaretskii [Sat, 5 Dec 2015 12:23:43 +0000 (14:23 +0200)]
; * etc/NEWS: Fix whitespace.

8 years agoDocument 'bookmark-set-no-overwrite'
Eli Zaretskii [Sat, 5 Dec 2015 12:21:00 +0000 (14:21 +0200)]
Document 'bookmark-set-no-overwrite'

* doc/emacs/regs.texi (Bookmarks): Document the new command
'bookmark-set-no-overwrite' and its keybinding.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 5 Dec 2015 12:17:55 +0000 (07:17 -0500)]
; Auto-commit of loaddefs files.

8 years agoDocument new binding of 'mouse-buffer-menu'
Eli Zaretskii [Sat, 5 Dec 2015 12:09:40 +0000 (14:09 +0200)]
Document new binding of 'mouse-buffer-menu'

* doc/emacs/buffers.texi (Buffer Menus): 'mouse-buffer-menu' is
now also on C-F10.

8 years ago; Minor changes in etc/NEWS
Eli Zaretskii [Sat, 5 Dec 2015 12:04:03 +0000 (14:04 +0200)]
; Minor changes in etc/NEWS

* etc/NEWS: Mark several entries as already documented or as not
requiring documentation.

8 years ago; * etc/NEWS: 'tamil-dvorak' input method doesn't need to be documented.
Eli Zaretskii [Sat, 5 Dec 2015 11:52:52 +0000 (13:52 +0200)]
; * etc/NEWS: 'tamil-dvorak' input method doesn't need to be documented.

8 years agoInitial documentation of dynamic modules
Eli Zaretskii [Sat, 5 Dec 2015 11:51:09 +0000 (13:51 +0200)]
Initial documentation of dynamic modules

* doc/lispref/loading.texi (Dynamic Modules): New section with
initial documentation for dynamic modules.
* doc/lispref/elisp.texi (Top): Add "Dynamic Modules" to the
detailed menu

* etc/NEWS: Fix typos in dynamic modules' entry.

8 years agoRemove copyright statements from trivial test files
Artur Malabarba [Sat, 5 Dec 2015 11:31:23 +0000 (11:31 +0000)]
Remove copyright statements from trivial test files

8 years agoAdd "Preliminaries" section to etc/DEBUG
Eli Zaretskii [Sat, 5 Dec 2015 10:52:54 +0000 (12:52 +0200)]
Add "Preliminaries" section to etc/DEBUG

* etc/DEBUG: Add the "Preliminaries" section for GDB beginners.
Most of the content was suggested by Phillip Lord
<phillip.lord@russet.org.uk>.  Remove the section about debugging
with the Visual Studio, as building Emacs with the Microsoft
compilers is no longer supported.  Minor fixes in some other
sections.

8 years agoImprove parsing of version strings
Alex Dunn [Sat, 5 Dec 2015 09:32:01 +0000 (11:32 +0200)]
Improve parsing of version strings

* lisp/subr.el (version-regexp-alist): Allow "." as priority separator
(version-to-list): More helpful error messages.
(version-to-list): ".5" is valid (update docstring).  Make
"22.8X3" invalid, as the doc string says.

* test/automated/subr-tests.el (ert-test-version-parsing): New
tests for version string processing.

Copyright-paperwork-exempt: yes

8 years agoFix documentation of 'undo' changes
Eli Zaretskii [Sat, 5 Dec 2015 09:12:38 +0000 (11:12 +0200)]
Fix documentation of 'undo' changes

* doc/lispref/text.texi (Undo): Minor wording changes.  Use US
English conventions for spelling and whitespace between sentences.

* etc/NEWS: Fix wording and spelling of undo-related entries.
Mark them as documented.

8 years ago; * lisp/net/net-utils.el: Fix comment typo in previous.
Glenn Morris [Sat, 5 Dec 2015 00:56:32 +0000 (19:56 -0500)]
; * lisp/net/net-utils.el: Fix comment typo in previous.

8 years ago* lisp/net/net-utils.el: Small improvements.
Glenn Morris [Sat, 5 Dec 2015 00:49:07 +0000 (19:49 -0500)]
* lisp/net/net-utils.el: Small improvements.

(net-utils--executable-find-sbin): New function.
(ifconfig-program): Check sbin directories.
Fallback to "ip".  (Bug#22091)
(ifconfig-program-options): Check the actual program in use.
(arp-program): Check sbin directories.

8 years agoFix wrong-type-argument integer-or-marker-p nil error
(tiny change) Arash Esbati [Fri, 4 Dec 2015 20:13:11 +0000 (21:13 +0100)]
Fix wrong-type-argument integer-or-marker-p nil error

* lisp/textmodes/reftex-auc.el (reftex-what-index-tag):
Fix (wrong-type-argument integer-or-marker-p nil) error (bug#22077).

Copyright-paperwork-exempt: yes

8 years agoMerge branch 'scratch/follow' of /home/acm/emacs/emacs.git/emacs-25 into scratch...
Alan Mackenzie [Fri, 4 Dec 2015 19:06:27 +0000 (19:06 +0000)]
Merge branch 'scratch/follow' of /home/acm/emacs/emacs.git/emacs-25 into scratch/follow

Merge necessitated by a rebase operation.

8 years agolisp/isearch.el: Eliminate macro isearch-call-message, replacing with funcall.
Alan Mackenzie [Wed, 18 Nov 2015 21:14:30 +0000 (21:14 +0000)]
lisp/isearch.el: Eliminate macro isearch-call-message, replacing with funcall.

8 years agoFirst commit to scratch/follow. Make Isearch work with Follow Mode, etc.
Alan Mackenzie [Wed, 11 Nov 2015 12:02:48 +0000 (12:02 +0000)]
First commit to scratch/follow.  Make Isearch work with Follow Mode, etc.

doc/lispref/window.texi (Basic Windows): Add paragraph defining "Group of
Windows" and new @defun selected-window-group.
(Window Start and End): Describe new &optional parameter GROUP and
...-group-function for window-start, window-end, set-window-start, and
pos-visible-in-window-p.
(Textual Scrolling) Describe the same for recenter.
doc/lispref/positions.texi (Screen Lines): Describe the same for
move-to-window-line.

src/window.c (Fwindow_start, Fwindow_end, Fset_window_start)
(Fpos_visible_in_window_p, Frecenter, Fmove_to_window_line): To each, add ar
new optional parameter "group".  At the beginning of each, check whether the
corresponding ...-group-function is set to a function, and if so execute this
function in place of the normal processing.
(syms_of_window): Define symbols for the six new variables below.
(window-start-group-function, window-end-group-function)
(set-window-start-group-function, recenter-group-function)
(pos-visible-in-window-p-group-function, move-to-window-line-group-function):
New permanent local buffer local variables.
src/keyboard.c (Fposn_at_point): Add extra parameter in call to
Fpos_visible_in_window_p.

lisp/window.el (selected-window-group-function): New permanent local buffer
local variable.
(selected-window-group): New function.

lisp/follow.el (follow-mode): Set the ...-group-function variables at mode
enable, kill them at mode disable.  Add/remove follow-after-change to/from
after-change-functions.
(follow-start-end-invalid): New variable.
(follow-redisplay): Manipulate follow-start-end-invalid.
(follow-after-change, follow-window-start, follow-window-end)
(follow-set-window-start, follow-pos-visible-in-window-p)
(follow-move-to-window-line, follow-sit-for): New functions.

lisp/isearch.el (isearch-call-message): New macro.
(isearch-update, with-isearch-suspended, isearch-del-char)
(isearch-search-and-update, isearch-ring-adjust): Invoke above new macro.
(with-isearch-suspended): Rearrange code such that isearch-call-message is
invoked before point is moved.
(isearch-message): Add comment about where point must be at function call.
(isearch-search): Remove call to isearch-message.
(isearch-lazy-highlight-window-group): New variable.
(isearch-lazy-highlight-new-loop): Unconditionally start idle timer.  Move
the battery of tests to ...
(isearch-lazy-highlight-maybe-new-loop): New function, started by idle timer.
Note: (sit-for 0) is still called.
(isearch-lazy-highlight-update): Check membership of
isearch-lazy-highlight-window-group.  Don't set the `window' overlay
property.
(isearch-update, isearch-done, isearch-string-out-of-window)
(isearch-back-into-window, isearch-lazy-highlight-maybe-new-loop)
(isearch-lazy-highlight-search, isearch-lazy-highlight-update)
(isearch-lazy-highlight-update): Call the six amended primitives (see
src/window.c above) with the new `group' argument set to t, to cooperate
with Follow Mode.

8 years ago* lisp/emacs-lisp/ert.el: Prefer pcase over cl-typecase
Stefan Monnier [Fri, 4 Dec 2015 17:59:21 +0000 (12:59 -0500)]
* lisp/emacs-lisp/ert.el: Prefer pcase over cl-typecase

* lisp/emacs-lisp/ert.el (ert--should-error-handle-error)
(ert--explain-format-atom, ert--explain-equal-rec)
(ert--print-backtrace, ert-test-result-type-p, ert-select-tests)
(ert--insert-human-readable-selector): Prefer pcase over cl-typecase.

8 years ago* lisp/character-fold.el: Remove special case-folding support
Artur Malabarba [Fri, 4 Dec 2015 15:12:10 +0000 (15:12 +0000)]
* lisp/character-fold.el: Remove special case-folding support

(character-fold-to-regexp): Remove special code for
case-folding.  Char-fold search still respects the
`case-fold-search' variable (i.e., f matches F).  This only
removes the code that was added to ensure that f also matched
all chars that F matched.  For instance, after this commit, f
no longer matches 𝔽.

This was necessary because the logic created a regexp with
2^(length of the string) redundant paths.  So, when a very
long string "almost" matched, Emacs took a very long time to
figure out that it didn't.  This became particularly relevant
because isearch's lazy-highlight does a search bounded by (1-
match-end) (which, in most circumstances, is a search that
almost matches).  A recipe for this can be found in bug#22090.

8 years ago* lisp/emacs-lisp/cl-macs.el (character): Can't be negative
Stefan Monnier [Fri, 4 Dec 2015 13:28:39 +0000 (08:28 -0500)]
* lisp/emacs-lisp/cl-macs.el (character): Can't be negative

Fixes (bug#21701)