]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years ago* build-aux/msys-to-w32: Prevent double slashes in w32 path list.
Dani Moncayo [Mon, 2 Nov 2015 10:48:47 +0000 (11:48 +0100)]
* build-aux/msys-to-w32: Prevent double slashes in w32 path list.

8 years ago* lisp/progmodes/f90.el (f90-no-block-limit):
Glenn Morris [Mon, 2 Nov 2015 02:25:42 +0000 (18:25 -0800)]
* lisp/progmodes/f90.el (f90-no-block-limit):

Add associate.  (Bug#21794)
* test/automated/f90.el (f90-test-bug21794): New test.

8 years agoFix incompatibility with TCC in test for bug#18745
Juanma Barranquero [Sat, 31 Oct 2015 23:22:13 +0000 (00:22 +0100)]
Fix incompatibility with TCC in test for bug#18745

* test/automated/process-tests.el (process-test-quoted-batfile):
Remove spaces unrelated to the bug being tested.

8 years ago; ChangeLog.2 fixes
Juanma Barranquero [Sun, 1 Nov 2015 18:05:30 +0000 (19:05 +0100)]
; ChangeLog.2 fixes

8 years agoImprove completion in tramp-gvfs.el
Michael Albinus [Sun, 1 Nov 2015 12:43:35 +0000 (13:43 +0100)]
Improve completion in tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-zeroconf-parse-device-names):
Renamed from `tramp-zeroconf-parse-service-device-names'.
(tramp-zeroconf-parse-webdav-device-names): Removed.  Code merged
with `tramp-zeroconf-parse-device-names'.
(tramp-gvfs-parse-device-names): New defun.
(top): Use it when `tramp-zeroconf-parse-device-names' is not
applicable.

* lisp/net/tramp.el (tramp-set-completion-function): The argument
could also be a zeroconf service type.

8 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 1 Nov 2015 11:34:54 +0000 (06:34 -0500)]
; Auto-commit of ChangeLog files.

8 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sun, 1 Nov 2015 11:34:43 +0000 (06:34 -0500)]
; Auto-commit of loaddefs files.

8 years ago; Fix ChangeLog.2 typos and style
Juanma Barranquero [Sun, 1 Nov 2015 04:27:48 +0000 (05:27 +0100)]
; Fix ChangeLog.2 typos and style

8 years agontlm.el: Change version to 2.0.0
Thomas Fitzsimmons [Sun, 1 Nov 2015 03:11:09 +0000 (23:11 -0400)]
ntlm.el: Change version to 2.0.0

8 years agoFix bug#21762
Juanma Barranquero [Sun, 1 Nov 2015 01:55:16 +0000 (02:55 +0100)]
Fix bug#21762

* lisp/progmodes/python.el (python-syntax-closing-paren-p): Check with
`eql' instead of `=' to accommodate the case that (syntax-after (point))
returns nil.

* test/automated/python-tests.el (python-indent-inside-paren-7):
New test.

8 years ago* test/automated/python-tests.el: Avoid warnings
Juanma Barranquero [Sun, 1 Nov 2015 00:17:16 +0000 (01:17 +0100)]
* test/automated/python-tests.el: Avoid warnings

(python-tests-with-temp-buffer, python-tests-with-temp-file):
Bind `python-indent-guess-indent-offset' to nil.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Your branch is up-to-date with 'origin/master'.
#
# Changes to be committed:
# modified:   test/automated/python-tests.el
#

8 years ago* src/alloc.c: Silence compiler warnings
Juanma Barranquero [Sat, 31 Oct 2015 21:34:35 +0000 (22:34 +0100)]
* src/alloc.c: Silence compiler warnings

(pointers_fit_in_lispobj_p, mmap_lisp_allowed_p): #ifdef DOUG_LEA_MALLOC.

8 years ago* etc/NEWS: Fix js-jsx-mode entry punctuation
Jackson Ray Hamilton [Sat, 31 Oct 2015 20:35:31 +0000 (13:35 -0700)]
* etc/NEWS: Fix js-jsx-mode entry punctuation

8 years agoAdd JSX indentation via js-jsx-mode. (Bug#21799)
Jackson Ray Hamilton [Sat, 31 Oct 2015 06:55:24 +0000 (23:55 -0700)]
Add JSX indentation via js-jsx-mode.  (Bug#21799)

* progmodes/js.el: Add JSX indentation support.
(js-jsx-indent-line)
(js-jsx-mode): New functions.

8 years agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Sat, 31 Oct 2015 13:42:28 +0000 (14:42 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

8 years agoMinor fix in filenotify.el
Michael Albinus [Sat, 31 Oct 2015 13:42:16 +0000 (14:42 +0100)]
Minor fix in filenotify.el

* lisp/filenotify.el (file-notify--event-file-name)
(file-notify--event-file1-name): Normalize result with
`directory-file-name'.

8 years agoAvoid errors in redisplay--pre-redisplay-functions
Eli Zaretskii [Sat, 31 Oct 2015 13:31:17 +0000 (15:31 +0200)]
Avoid errors in redisplay--pre-redisplay-functions

* lisp/emacs-lisp/cursor-sensor.el (cursor-sensor--detect): Don't
use 'bobp', instead compare window-point with 1.  (Bug#21730)

8 years agoMerge from gnulib.
Paul Eggert [Sat, 31 Oct 2015 02:21:29 +0000 (19:21 -0700)]
Merge from gnulib.

This incorporates:
2015-10-30 intprops: add WRAPV and const flavors for GCC 5
2015-10-25 stdalign: port to Sun C 5.9
* doc/misc/texinfo.tex, lib/intprops.h, lib/stdalign.in.h:
Copy from gnulib.

8 years agoFix a typo in a macro name
Eli Zaretskii [Fri, 30 Oct 2015 21:17:48 +0000 (23:17 +0200)]
Fix a typo in a macro name

* src/w32proc.c (_NLSCMPERROR): Fix a typo in the name of this macro.
(w32_compare_strings): Adjust for the correction.

8 years agoAdd result messages in vc-tests.el
Michael Albinus [Fri, 30 Oct 2015 17:35:58 +0000 (18:35 +0100)]
Add result messages in vc-tests.el

* test/automated/vc-tests.el (vc-test--state)
(vc-test--working-revision, vc-test--checkout-model): Add result messages.

8 years ago* test/automated/faces-tests.el: Add another test
Artur Malabarba [Fri, 30 Oct 2015 18:20:42 +0000 (18:20 +0000)]
* test/automated/faces-tests.el: Add another test

8 years ago* lisp/faces.el (faces--attribute-at-point): Fix bug
Artur Malabarba [Fri, 30 Oct 2015 18:19:26 +0000 (18:19 +0000)]
* lisp/faces.el (faces--attribute-at-point): Fix bug

introduced by previous commit.

8 years ago* test/automated/faces-tests.el: New file
Artur Malabarba [Fri, 30 Oct 2015 18:15:21 +0000 (18:15 +0000)]
* test/automated/faces-tests.el: New file

8 years ago* lisp/faces.el: Refactor common code and fix a bug
Artur Malabarba [Fri, 30 Oct 2015 15:00:37 +0000 (15:00 +0000)]
* lisp/faces.el: Refactor common code and fix a bug

(faces--attribute-at-point): New function.  Fix a bug when the
face at point is a list of faces and the desired attribute is not
on the first one.
(foreground-color-at-point, background-color-at-point): Use it.

8 years ago* etc/tutorials/TUTORIAL.translators: Fix PL names
Przemysław Wojnowski [Fri, 30 Oct 2015 13:49:12 +0000 (14:49 +0100)]
* etc/tutorials/TUTORIAL.translators: Fix PL names

8 years ago* lisp/character-fold.el: Provide `character-fold'
Juanma Barranquero [Fri, 30 Oct 2015 13:49:52 +0000 (14:49 +0100)]
* lisp/character-fold.el: Provide `character-fold'

8 years agoAdd more faces for Gnus and ivy
Tassilo Horn [Fri, 30 Oct 2015 12:39:43 +0000 (13:39 +0100)]
Add more faces for Gnus and ivy

* etc/themes/tsdh-dark-theme.el (tsdh-dark): add more faces for Gnus and
ivy.

8 years agoSome minor fixes for tramp-gvfs.el
Michael Albinus [Fri, 30 Oct 2015 12:11:35 +0000 (13:11 +0100)]
Some minor fixes for tramp-gvfs.el

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-attributes):
An attribute returned by gvfs-info might be empty.  In case of
undetermined uid or gid, return "UNKNOWN" or -1, respectively.
(tramp-zeroconf-parse-service-device-names): New defun.
Derived from `tramp-zeroconf-parse-workstation-device-names'.
(top): Add completion functions for "afp" and "smb" methods.

8 years ago* test/automated/character-fold-tests.el: New file
Artur Malabarba [Fri, 30 Oct 2015 12:18:46 +0000 (12:18 +0000)]
* test/automated/character-fold-tests.el: New file

8 years ago* test/automated/sort-tests.el: New file
Artur Malabarba [Thu, 29 Oct 2015 13:21:48 +0000 (13:21 +0000)]
* test/automated/sort-tests.el: New file

Tests in this file are randomly generated and then tested with
regular, reverse, and case-fold sorting.

8 years agoDescribe known problems with pinning Emacs to taskbar
Eli Zaretskii [Fri, 30 Oct 2015 10:28:00 +0000 (12:28 +0200)]
Describe known problems with pinning Emacs to taskbar

* etc/PROBLEMS: Describe the problem with pinning Emacs to taskbar
on Windows 10.  For the details, see the discussion starting at
http://lists.gnu.org/archive/html/help-emacs-windows/2015-09/msg00000.html.

8 years ago* lisp/isearch.el: Avoid an error that blocks isearch
Artur Malabarba [Fri, 30 Oct 2015 11:04:50 +0000 (11:04 +0000)]
* lisp/isearch.el: Avoid an error that blocks isearch

(isearch-update): Don't error if `isearch--current-buffer' has
been killed.

* test/automated/isearch-tests.el (isearch--test-update): New
file.

8 years agoFix documentation of 'beginning/end-of-buffer'
Phil Sainty [Fri, 30 Oct 2015 10:05:33 +0000 (12:05 +0200)]
Fix documentation of 'beginning/end-of-buffer'

* lisp/simple.el (beginning-of-buffer, end-of-buffer): Clarify
conditions under which the mark will be pushed at the previous
position.  (Bug#21748)

8 years agoAdd RefTeX feature idea: editing RefTeX TOC buffers
Tassilo Horn [Fri, 30 Oct 2015 07:06:31 +0000 (08:06 +0100)]
Add RefTeX feature idea: editing RefTeX TOC buffers

8 years agoMore face defs for ivy, swiper, ace-window, eshell
Tassilo Horn [Fri, 30 Oct 2015 06:51:52 +0000 (07:51 +0100)]
More face defs for ivy, swiper, ace-window, eshell

8 years ago* lisp/gnus/auth-source.el: Silence lexical-binding warnings
Stefan Monnier [Fri, 30 Oct 2015 03:18:34 +0000 (23:18 -0400)]
* lisp/gnus/auth-source.el: Silence lexical-binding warnings

(auth-source-netrc-use-gpg-tokens): Simplify (symbol-value 'VAR) to
just VAR.
(auth-source-backend-parse): Use make-instance.
(auth-source-search): Remove unused key args.
Remove unused vars `accessor-key' and `backend'.  Avoid `eval'.
(auth-source-search-backends): Use slot names rather than their initarg.
(auth-source-netrc-create):
(auth-source-delete):
(auth-source-secrets-create, auth-source-plstore-search)
(auth-source-macos-keychain-create, auth-source-macos-keychain-search)
(auth-source-plstore-create, auth-source-netrc-search)
(auth-source-netrc-parse): Remove unused key args.
(auth-source-forget+): Simplify the arglist.
(auth-source-macos-keychain-search-items)
(auth-source-token-passphrase-callback-function): Mark unused args.
(auth-source-epa-extract-gpg-token): Remove unused var `plain'.
(pp-escape-newlines): Declare.
(auto-source--symbol-keyword): New function.
(auth-source-plstore-create, auth-source-netrc-create)
(auth-source-netrc-normalize): Use it.
(auth-source-netrc-search): Don't pass :delete to
auth-source-netrc-parse since it doesn't use it.
(auth-source-plstore-create, auth-source-netrc-create): Use plist-get
symbol-value to index in keyword args.
(auth-source-macos-keychain-result-append): Avoid setq.
(auth-source-netrc-create): Remove unused vars `file' and `add'.
(auth-source-user-or-password): Remove unused var `cname'.

8 years ago; lisp/help-fns.el: Fix typos in comments
Juanma Barranquero [Fri, 30 Oct 2015 02:23:40 +0000 (03:23 +0100)]
; lisp/help-fns.el: Fix typos in comments

8 years ago* lisp/dired.el (dired-unmark-all-files-query): Declare.
Juri Linkov [Fri, 30 Oct 2015 00:57:38 +0000 (02:57 +0200)]
* lisp/dired.el (dired-unmark-all-files-query): Declare.

(dired-unmark-all-files): Let-bind it and use instead of ‘query’.
(Bug#21746)

8 years ago* lisp/ielm.el (ielm-indent-line): Use non-nil arg of comint-bol
Juri Linkov [Fri, 30 Oct 2015 00:04:42 +0000 (02:04 +0200)]
* lisp/ielm.el (ielm-indent-line): Use non-nil arg of comint-bol

to go to the beginning of text line instead of command line.
http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02360.html

8 years ago; * src/lread.c (syms_of_lread) <load-path>: Improve the doc string.
Eli Zaretskii [Thu, 29 Oct 2015 18:47:09 +0000 (20:47 +0200)]
; * src/lread.c (syms_of_lread) <load-path>: Improve the doc string.

8 years ago; Improve documentation of 'unhandled-file-name-directory'
Eli Zaretskii [Thu, 29 Oct 2015 17:48:18 +0000 (19:48 +0200)]
; Improve documentation of 'unhandled-file-name-directory'

* doc/lispref/files.texi (Magic File Names): Better wording for the
last change in the documentation of 'unhandled-file-name-directory'.

8 years agoFix encoding of saving *Help* buffers
Eli Zaretskii [Thu, 29 Oct 2015 17:37:24 +0000 (19:37 +0200)]
Fix encoding of saving *Help* buffers

* lisp/help-fns.el (describe-function-1): If we use curved quotes,
set help buffer's buffer-file-coding-system to UTF-8.  (Bug#21780)

8 years ago* lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) context
Stefan Monnier [Thu, 29 Oct 2015 15:06:31 +0000 (11:06 -0400)]
* lisp/emacs-lisp/cl-generic.el: Add (major-mode MODE) context

(cl--generic-derived-specializers): New function.
(cl--generic-derived-generalizer): New generalizer.
(cl-generic-generalizers): New specializer (derived-mode MODE).
(cl--generic-split-args): Apply the rewriter, if any.
(cl-generic-define-context-rewriter): New macro.
(major-mode): Use it to define a new context-rewriter, so we can write
`(major-mode MODE)' instead of `(major-mode (derived-mode MODE))'.

* lisp/frame.el (window-system): New context-rewriter so we can write
`(window-system VAL)' instead of (window-system (eql VAL)).
(cl--generic-split-args): Apply the rewriter, if any.
(frame-creation-function): Use the new syntax.

* lisp/term/x-win.el (window-system-initialization)
(handle-args-function, frame-creation-function)
(gui-backend-set-selection, gui-backend-selection-owner-p)
(gui-backend-selection-exists-p, gui-backend-get-selection):
* lisp/term/w32-win.el (window-system-initialization)
(handle-args-function, frame-creation-function)
(gui-backend-set-selection, gui-backend-get-selection)
(gui-backend-selection-owner-p, gui-backend-selection-exists-p):
* lisp/term/pc-win.el (gui-backend-get-selection)
(gui-backend-selection-exists-p, gui-backend-selection-owner-p)
(gui-backend-set-selection, window-system-initialization)
(frame-creation-function, handle-args-function):
* lisp/term/ns-win.el (window-system-initialization)
(handle-args-function, frame-creation-function)
(gui-backend-set-selection, gui-backend-selection-exists-p)
(gui-backend-get-selection):
* lisp/startup.el (handle-args-function):
* lisp/term/xterm.el (gui-backend-get-selection)
(gui-backend-set-selection): Use the new syntax.

8 years ago* test/indent/css-mode.css: Add tests for url(...) syntax.
Stefan Monnier [Thu, 29 Oct 2015 14:36:52 +0000 (10:36 -0400)]
* test/indent/css-mode.css: Add tests for url(...) syntax.

8 years ago* lisp/emacs-lisp/smie.el: Use `declare' for `pure'
Stefan Monnier [Thu, 29 Oct 2015 14:35:08 +0000 (10:35 -0400)]
* lisp/emacs-lisp/smie.el: Use `declare' for `pure'

(smie-precs->prec2, smie-merge-prec2s, smie-bnf->prec2, smie-prec2->grammar):
Use `declare'.

8 years ago* lisp/emacs-lisp/cl-generic.el: Accomodate future changes
Stefan Monnier [Thu, 29 Oct 2015 14:33:36 +0000 (10:33 -0400)]
* lisp/emacs-lisp/cl-generic.el: Accomodate future changes

(cl--generic-generalizer): Add `name' field.
(cl-generic-make-generalizer): Add corresponding `name' argument.
(cl-generic-define-generalizer): New macro.
(cl--generic-head-generalizer, cl--generic-eql-generalizer)
(cl--generic-struct-generalizer, cl--generic-typeof-generalizer)
(cl--generic-t-generalizer): Use it.
(cl-generic-ensure-function): Add `noerror' argument.
(cl-generic-define): Use it so we don't follow aliases.
(cl-generic-define-method): Preserve pre-existing ordering of methods.
(cl--generic-arg-specializer): New function.
(cl--generic-cache-miss): Use it.
(cl-generic-generalizers): Only fset a temporary definition
during bootstrap.
(cl--generic-struct-tag, cl--generic-struct-specializers):
Allow extra arguments.

* lisp/emacs-lisp/eieio-compat.el (eieio--generic-static-symbol-generalizer)
(eieio--generic-static-object-generalizer): Use cl-generic-define-generalizer.
(eieio--generic-static-symbol-specializers): Allow extra arguments.

* lisp/emacs-lisp/eieio-core.el (eieio--generic-generalizer)
(eieio--generic-subclass-generalizer): Use cl-generic-define-generalizer.
(eieio--generic-subclass-specializers): Allow extra arguments.

8 years ago* lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.
Stefan Monnier [Thu, 29 Oct 2015 13:25:18 +0000 (09:25 -0400)]
* lisp/emacs-lisp/bytecomp.el (compile-defun): Add defvars in scope.

8 years agoAdd "afp" method to Tramp
Michael Albinus [Thu, 29 Oct 2015 13:05:55 +0000 (14:05 +0100)]
Add "afp" method to Tramp

* doc/misc/tramp.texi (GVFS based methods): Describe `afp' method.

* lisp/net/tramp-gvfs.el (tramp-gvfs-methods): Add "afp" method.
(tramp-gvfs-handle-expand-file-name)
(tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-connection-mounted-p, tramp-gvfs-mount-spec)
(tramp-gvfs-maybe-open-connection): Support also "afp".
(tramp-gvfs-handle-file-attributes): Handle the case of empty
"owner::user" and "owner::group" entries.

8 years agoHandle negative coordinates in ‘x_calc_absolute_position’
Andy Moreton [Thu, 29 Oct 2015 07:46:43 +0000 (08:46 +0100)]
Handle negative coordinates in ‘x_calc_absolute_position’

* src/w32term.c (x_calc_absolute_position): Find display origin to
allow for negative coordinates.

8 years ago(internal--syntax-propertize): Save match-data here (bug#21766)
Stefan Monnier [Thu, 29 Oct 2015 02:18:47 +0000 (22:18 -0400)]
(internal--syntax-propertize): Save match-data here (bug#21766)

* lisp/emacs-lisp/syntax.el (internal--syntax-propertize): Save match-data.
* lisp/simple.el (delete-trailing-whitespace): Undo last change.

8 years agoDon't require default-directory to end with a slash
Dmitry Gutov [Thu, 29 Oct 2015 01:00:50 +0000 (03:00 +0200)]
Don't require default-directory to end with a slash

* doc/lispref/files.texi (Magic File Names): Document the change
in unhandled-file-name-directory.

* lisp/url/url-handlers.el
(url-handler-unhandled-file-name-directory): Update accordingly.

* src/buffer.c (default-directory): Update the docsting.

* src/fileio.c (unhandled-file-name-directory): Default to calling
`file-name-as-directory'
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02294.html).

8 years ago* lisp/isearch.el: Delete some outdated comments
Artur Malabarba [Thu, 29 Oct 2015 00:22:50 +0000 (00:22 +0000)]
* lisp/isearch.el: Delete some outdated comments

8 years agoFix eshell/clear not working if the output has a small line count
Vibhav Pant [Wed, 28 Oct 2015 17:07:34 +0000 (22:37 +0530)]
Fix eshell/clear not working if the output has a small line count

* lisp/eshell/esh-mode.el: (eshell/clear): Use (window-size) as the
number of newlines to be inserted. This fixes the issue where
eshell/clear wouldn't work if the prompt was not at the bottom of the
window, and the output wasn't too long.

8 years ago; * etc/NEWS: Document `search-default-regexp-mode'
Artur Malabarba [Wed, 28 Oct 2015 21:12:47 +0000 (21:12 +0000)]
; * etc/NEWS: Document `search-default-regexp-mode'

8 years ago* lisp/files.el (write-file): Use vc-refresh-state.
Stefan Monnier [Wed, 28 Oct 2015 18:01:18 +0000 (14:01 -0400)]
* lisp/files.el (write-file): Use vc-refresh-state.

8 years ago* lisp/autorevert.el (auto-revert-handler): Use vc-refresh-state.
Stefan Monnier [Wed, 28 Oct 2015 18:00:59 +0000 (14:00 -0400)]
* lisp/autorevert.el (auto-revert-handler): Use vc-refresh-state.

8 years ago* lisp/vc/pcvs.el (cvs-revert-if-needed): Use vc-refresh-state.
Stefan Monnier [Wed, 28 Oct 2015 18:00:24 +0000 (14:00 -0400)]
* lisp/vc/pcvs.el (cvs-revert-if-needed): Use vc-refresh-state.

8 years ago* lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations
Stefan Monnier [Wed, 28 Oct 2015 17:59:42 +0000 (13:59 -0400)]
* lisp/emacs-lisp/macroexp.el: Tweak macroexp-if optimizations

(macroexp-unprogn): Make sure we never return an empty list.
(macroexp-if): Remove unused (and unsafe) optimization.
Optimize (if A T (if B T E)) into (if (or A B) T E) instead, which does
occur occasionally.

8 years agoFix bug#21766 and add test
Juanma Barranquero [Wed, 28 Oct 2015 08:55:25 +0000 (09:55 +0100)]
Fix bug#21766 and add test

* lisp/simple.el (delete-trailing-whitespace): Save match data when
calling `skip-syntax-backward'.
* test/automated/simple-test.el (simple-delete-trailing-whitespace):
New test.

8 years ago* doc/lispref/sequences.texi (Sequence Functions): Fix typo
Artur Malabarba [Wed, 28 Oct 2015 17:06:27 +0000 (17:06 +0000)]
* doc/lispref/sequences.texi (Sequence Functions): Fix typo

8 years ago* src/dispnew.c (init_display): Simplify overflow checking.
Paul Eggert [Wed, 28 Oct 2015 16:10:17 +0000 (09:10 -0700)]
* src/dispnew.c (init_display): Simplify overflow checking.

8 years ago* lisp/character-fold.el (character-fold-to-regexp): Fix case
Artur Malabarba [Wed, 28 Oct 2015 15:50:17 +0000 (15:50 +0000)]
* lisp/character-fold.el (character-fold-to-regexp): Fix case

where string ends in space

8 years ago* lisp/emacs-lisp/seq.el (seq-mapn): New function
Artur Malabarba [Wed, 28 Oct 2015 14:27:39 +0000 (14:27 +0000)]
* lisp/emacs-lisp/seq.el (seq-mapn): New function

* doc/lispref/sequences.texi (Sequence Functions): Document seq-mapn

8 years ago* lisp/character-fold.el: Make compatible with lax-whitespace
Artur Malabarba [Wed, 28 Oct 2015 15:03:47 +0000 (15:03 +0000)]
* lisp/character-fold.el: Make compatible with lax-whitespace

(character-fold-to-regexp): Rework internals to play nice with
lax-whitespacing.

When the user types a space, we want to match the table entry for
?\s, which is generally a regexp like "[ ...]".  However, the
`search-spaces-regexp' variable doesn't "see" spaces inside these
regexp constructs, so we need to use "\\( \\|[ ...]\\)" instead (to
manually expose a space).

Furthermore, the lax search engine acts on a bunch of spaces, not
on individual spaces, so if the string contains sequential spaces
like "  ", we need to keep them grouped together like this:
"\\(  \\|[ ...][ ...]\\)".

8 years ago* lisp/isearch.el: Refactor momentary messages
Artur Malabarba [Wed, 28 Oct 2015 12:01:39 +0000 (12:01 +0000)]
* lisp/isearch.el: Refactor momentary messages

(isearch--momentary-message): New function.
(isearch-toggle-lax-whitespace, isearch-toggle-case-fold)
(isearch-toggle-invisible): Use it.

8 years ago* lisp/isearch.el: Define all toggles with `isearch-define-mode-toggle'
Artur Malabarba [Wed, 28 Oct 2015 11:43:52 +0000 (11:43 +0000)]
* lisp/isearch.el: Define all toggles with `isearch-define-mode-toggle'

(isearch-define-mode-toggle): New macro.
(isearch-toggle-invisible): Renamed to
`isearch-define-mode-toggle'.
(isearch-toggle-case-fold, isearch-toggle-invisible)
(isearch-toggle-regexp, isearch-toggle-lax-whitespace): Define
with `isearch-define-mode-toggle'.

8 years agoAvoid using `add-to-list' on a let-local var in tramp-smb.el
Michael Albinus [Wed, 28 Oct 2015 14:31:40 +0000 (15:31 +0100)]
Avoid using `add-to-list' on a let-local var in tramp-smb.el

* lisp/net/tramp-compat.el (tramp-compat-delete-dups): New defun.
* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use it.

8 years agoMerge branch 'master' of /Volumes/HD2/build/emacs-git-ssh
Anders Lindgren [Wed, 28 Oct 2015 11:22:44 +0000 (12:22 +0100)]
Merge branch 'master' of /Volumes/HD2/build/emacs-git-ssh

8 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs
Anders Lindgren [Wed, 28 Oct 2015 11:17:33 +0000 (12:17 +0100)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs

8 years agoMerge branch 'master' of /Volumes/HD2/build/emacs-git-ssh
Anders Lindgren [Wed, 28 Oct 2015 11:13:18 +0000 (12:13 +0100)]
Merge branch 'master' of /Volumes/HD2/build/emacs-git-ssh

8 years agoRevert 692bce5b9eccfae19ae2a5a23a9ccd8d6bf86076
Michael Albinus [Wed, 28 Oct 2015 11:12:51 +0000 (12:12 +0100)]
Revert 692bce5b9eccfae19ae2a5a23a9ccd8d6bf86076

* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files):
Revert 692bce5b9eccfae19ae2a5a23a9ccd8d6bf86076, `delete-dups'
does not exist in XEmacs 21.4.

8 years agoFixed OS X startup crash.
Anders Lindgren [Wed, 28 Oct 2015 11:11:46 +0000 (12:11 +0100)]
Fixed OS X startup crash.

Input events started to arrive before ns_term_init() was finished.
Solved by blocking input. This also seems to correct the "You
can't open the application "Emacs" because it may be damaged or
incomplete" error issued when double-clicking on the Emacs
application.

* nsterm.m (ns_constrain_all_frames, ns_init_term): Block input.
* nsterm.m (ns_send_appdefined, EmacsApp): Trace output.

8 years agoMerge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs
Anders Lindgren [Wed, 28 Oct 2015 11:09:51 +0000 (12:09 +0100)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/emacs

8 years ago* src/process.c (Fget_buffer_process): Improve docstring
Artur Malabarba [Wed, 28 Oct 2015 11:07:41 +0000 (11:07 +0000)]
* src/process.c (Fget_buffer_process): Improve docstring

Document the fact that it doesn't return dead processes.

8 years agoFix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.
Anders Lindgren [Wed, 28 Oct 2015 11:06:39 +0000 (12:06 +0100)]
Fix incorrect NextStep tool-bar-mode -- wrong number of rows in frame.

* nsterm.h (struct ns_output): New flag, in_animation.
* nsfns.m (Fx_create_frame): Initialize in_animation flag.
* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): Set
in_animation flag around call to "setVisible". Set new tool bar
height before call to setVisible.
* nsterm.m (x_set_window_size): Don't call [view setRow:
andColumns:] as this fools the subsequent call to updateFrameSize
from performing the real resize.
(windowDidResize): Don't update anything when in_animation is
non-zero.

Trace output.

* nsmenu.m (free_frame_tool_bar, update_frame_tool_bar)
(EmacsToolbar):
* nsterm.m (x_set_window_size, updateFrameSize)
([EmacsView setRows: andColumns:])

8 years ago* lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro.
Nicolas Petton [Wed, 28 Oct 2015 08:54:00 +0000 (09:54 +0100)]
* lisp/emacs-lisp/thunk.el (thunk-delay): Fix the macro.

8 years agoPrettify TeX macros not ending in a word char
Tassilo Horn [Wed, 28 Oct 2015 07:47:26 +0000 (08:47 +0100)]
Prettify TeX macros not ending in a word char

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-compose-p): Prettify
macros which don't end in a word character.

8 years ago; Revert "Don't declare vc-exec-after anymore"
Dmitry Gutov [Wed, 28 Oct 2015 00:43:14 +0000 (02:43 +0200)]
; Revert "Don't declare vc-exec-after anymore"

This reverts commit 5e4395544c184d9a8702cf05c7aee9329b0b9482.

(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02009.html)

8 years agoPipe Hg commit descriptions through 'tabindent'
Dmitry Gutov [Wed, 28 Oct 2015 00:42:51 +0000 (02:42 +0200)]
Pipe Hg commit descriptions through 'tabindent'

* lisp/vc/vc-hg.el (vc-hg-log-format): Pipe commit description
through 'tabindent'.
(vc-hg-log-view-mode): Set tab-width to 2 locally.
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02259.html)

8 years ago* lisp/net/tramp-smb.el: Avoid using `add-to-list' on a let-local var
Stefan Monnier [Wed, 28 Oct 2015 00:25:55 +0000 (20:25 -0400)]
* lisp/net/tramp-smb.el: Avoid using `add-to-list' on a let-local var

* lisp/net/tramp-smb.el (tramp-smb-handle-directory-files): Use `delete-dups'.
* lisp/net/tramp.el (auto-save-file-name-transforms): Declare.

8 years ago* lisp/international/ccl.el: Use lexical-binding
Stefan Monnier [Wed, 28 Oct 2015 00:23:32 +0000 (20:23 -0400)]
* lisp/international/ccl.el: Use lexical-binding

(ccl-compile-if): Remove unused var `false-ic'.
(ccl-compile-write-repeat): Remove unused var `i'.
(ccl-compile-map-single): Remove unused var `id'.
(ccl-dump, ccl-dump-binary): Use explicit let-binding to bind the
dynamic var `ccl-code'.

8 years ago* lisp/json.el (json-new-object): Optimize trivial `list' call
Stefan Monnier [Wed, 28 Oct 2015 00:19:51 +0000 (20:19 -0400)]
* lisp/json.el (json-new-object): Optimize trivial `list' call

8 years ago* lisp/help.el: Fix bug with incorrect arglist string
Stefan Monnier [Wed, 28 Oct 2015 00:18:45 +0000 (20:18 -0400)]
* lisp/help.el: Fix bug with incorrect arglist string

(help-add-fundoc-usage): Don't mistake a mis-formatted string for a list.

8 years ago* lisp/gnus/gnus-topic.el: Silence some warnings
Stefan Monnier [Wed, 28 Oct 2015 00:15:31 +0000 (20:15 -0400)]
* lisp/gnus/gnus-topic.el: Silence some warnings

(gnus-topic-prepare-topic): Remove unused var `topic'.
(gnus-topic-remove-topic): Mark unused arg `hide'.
(gnus-tmp-header): Declare.
(gnus-topic-goto-missing-group): Remove unused var `entry'.
(gnus-topic-unmark-topic): Mark unused arg `dummy'.
(gnus-topic-copy-matching): Mark unused arg `copyp'.
Move initialization of `topic' into its declaration.

8 years agoMinor CEDET fixes
Stephen Leake [Tue, 27 Oct 2015 15:35:15 +0000 (10:35 -0500)]
Minor CEDET fixes

* lisp/cedet/cedet-global.el (cedet-gnu-global-gtags-call): Handle
warnings from gtags about invalid options.
(cedet-gnu-global-create/update-database): Do incremental update
properly.

* lisp/cedet/ede/generic.el (ede-enable-generic-projects): Get monotone
root right.

8 years ago; Fix comments in file-notify-tests.el
Michael Albinus [Tue, 27 Oct 2015 15:06:33 +0000 (16:06 +0100)]
; Fix comments in file-notify-tests.el

8 years agoFall back to polling in autorevert when needed
Michael Albinus [Tue, 27 Oct 2015 15:02:26 +0000 (16:02 +0100)]
Fall back to polling in autorevert when needed

* lisp/autorevert.el (auto-revert-notify-handler): When a
`stopped' event arrives from file notification, fall back to polling.

* test/automated/file-notify-tests.el
(file-notify-test03-autorevert): Extend test for polling when file
notification ceases to work.

8 years agoShow full commit messages in 'hg log' when appropriate
Dmitry Gutov [Tue, 27 Oct 2015 12:55:06 +0000 (14:55 +0200)]
Show full commit messages in 'hg log' when appropriate

* lisp/vc/vc-hg.el (vc-hg-log-format): New variable.
(vc-hg-print-log, vc-hg-expanded-log-entry): Use it.
(http://lists.gnu.org/archive/html/emacs-devel/2015-10/msg02191.html)

8 years agoUse a plain svg file for the icon
Nicolas Petton [Tue, 27 Oct 2015 12:41:32 +0000 (13:41 +0100)]
Use a plain svg file for the icon

* etc/images/icons/hicolor/scalable/apps/emacs.svg: Use a plain SVG
  format instead of the Inkscape SVG format.

8 years agoFix subtle bug in auto-revert-tests.el
Michael Albinus [Tue, 27 Oct 2015 09:01:13 +0000 (10:01 +0100)]
Fix subtle bug in auto-revert-tests.el

* test/automated/auto-revert-tests.el
(auto-revert-test02-auto-revert-mode-dired): Narrow *Messages*
buffer where it belongs to.  (Bug#21668)

8 years ago* lisp/emacs-lisp/map.el: Better docstrings.
Nicolas Petton [Mon, 26 Oct 2015 21:23:02 +0000 (22:23 +0100)]
* lisp/emacs-lisp/map.el: Better docstrings.

8 years ago* lisp/emacs-lisp/seq.el: Better docstrings.
Nicolas Petton [Mon, 26 Oct 2015 21:16:27 +0000 (22:16 +0100)]
* lisp/emacs-lisp/seq.el: Better docstrings.

8 years ago* lisp/emacs-lisp/seq.el: Rename all seq argumentss to sequence.
Nicolas Petton [Mon, 26 Oct 2015 20:51:30 +0000 (21:51 +0100)]
* lisp/emacs-lisp/seq.el: Rename all seq argumentss to sequence.

8 years ago* lisp/emacs-lisp/ert.el: Print results without newline escaping
Phillip Lord [Mon, 26 Oct 2015 20:27:16 +0000 (20:27 +0000)]
* lisp/emacs-lisp/ert.el: Print results without newline escaping

8 years agoClarify that load-path contents should be directory file names
Stephen Leake [Mon, 26 Oct 2015 19:38:59 +0000 (14:38 -0500)]
Clarify that load-path contents should be directory file names

* doc/lispref/files.texi (Directory Names): Define and use "directory
file name". Recommend `expand-file-name'.

* src/lread.c (load-path): Fix doc string; elements are directory file
names.

8 years agoFix simple-test.el test
Eli Zaretskii [Mon, 26 Oct 2015 19:25:10 +0000 (21:25 +0200)]
Fix simple-test.el test

* test/automated/simple-test.el (simple-test--dummy-buffer): Make
sure indentation doesn't use TABs, otherwise the 6th test might
fail.

8 years ago* lisp/net/eww.el (eww-bookmark-prepare): Use truncate-string-to-width.
Mark Oteiza [Sun, 11 Oct 2015 02:43:44 +0000 (22:43 -0400)]
* lisp/net/eww.el (eww-bookmark-prepare): Use truncate-string-to-width.

`substring' does not account for full width characters.

8 years agoFurther work on `stopped' events in filenotify.el
Michael Albinus [Mon, 26 Oct 2015 15:46:48 +0000 (16:46 +0100)]
Further work on `stopped' events in filenotify.el

* doc/lispref/os.texi (File Notifications): Rework examples.

* lisp/filenotify.el (file-notify--rm-descriptor): Optional parameter.
(file-notify--rm-descriptor, file-notify-callback): Improve check
for sending `stopped' event.
(file-notify-add-watch): Check for more events for `inotify'.

* test/automated/file-notify-tests.el
(file-notify--test-expected-events): New defvar.
(file-notify--test-with-events): Use it.
(file-notify--test-cleanup): Make it more robust when deleting
directories.
(file-notify--test-event-test): Check also for watched directories.
(file-notify--test-event-handler): Suppress temporary .#files.
(file-notify-test02-events, file-notify-test04-file-validity):
Rework `stopped' events.
(file-notify-test05-dir-validity): Wait for events when appropriate.

8 years ago* src/keyboard.c (post-command-hook): Shorten docstring
Artur Malabarba [Mon, 26 Oct 2015 10:05:09 +0000 (10:05 +0000)]
* src/keyboard.c (post-command-hook): Shorten docstring

8 years agoFix infinite loop in sh-script's SMIE code
Tassilo Horn [Mon, 26 Oct 2015 07:01:18 +0000 (08:01 +0100)]
Fix infinite loop in sh-script's SMIE code

* lisp/progmodes/sh-script.el (sh-smie-sh-forward-token): Fix infinite
loop (bug#21747).