]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years ago* lisp/subr.el (when): Use `macroexp-progn'
Artur Malabarba [Wed, 4 Nov 2015 12:54:53 +0000 (12:54 +0000)]
* lisp/subr.el (when): Use `macroexp-progn'

* test/automated/subr-tests.el (subr-test-when): New test

9 years ago* lisp/progmodes/xref.el: Doc fixes
Juanma Barranquero [Wed, 4 Nov 2015 09:07:25 +0000 (10:07 +0100)]
* lisp/progmodes/xref.el: Doc fixes

(xref-make-file-location, xref-make-buffer-location, xref-make)
(xref-make-bogus-location, xref-make-match): Add cross-references.
(xref--insert-xrefs): Fix typo in docstring.

9 years agoRender fringe bitmaps correctly on NextStep (bug#21301).
Anders Lindgren [Wed, 4 Nov 2015 05:50:19 +0000 (06:50 +0100)]
Render fringe bitmaps correctly on NextStep (bug#21301).

The fringe bitmaps were inverted, the background was not transparent,
the image data was horizontally mirrored, and periodic fringe bitmaps
were not supported.

* nsimage.m ([EmacsImage initFromXBM:width:height:fg:bg:]): When
both background and foreground colors are 0, set the background
alpha channel to 0 (making the background transparent).  When
copying the image data, do this from the most significant bit
(leftmost) to the least (rightmost), to avoid mirroring.
* nsterm.m (ns_draw_fringe_bitmap): Don't invert the image bits. Add
support for periodic images (e.g. the empty line indicator).

9 years ago* lisp/emacs-lisp/pcase.el (pcase): Tweak docstring.
Michael Heerdegen [Tue, 3 Nov 2015 22:42:24 +0000 (23:42 +0100)]
* lisp/emacs-lisp/pcase.el (pcase): Tweak docstring.

9 years ago* admin/MAINTAINERS: Add seq-tests.el, map-tests.el, and thunk-tests.el.
Nicolas Petton [Tue, 3 Nov 2015 22:22:39 +0000 (23:22 +0100)]
* admin/MAINTAINERS: Add seq-tests.el, map-tests.el, and thunk-tests.el.

9 years ago* admin/MAINTAINERS: Add thunk.el.
Nicolas Petton [Tue, 3 Nov 2015 22:20:56 +0000 (23:20 +0100)]
* admin/MAINTAINERS: Add thunk.el.

9 years agoChange maintainer address.
Jay Belanger [Tue, 3 Nov 2015 22:16:54 +0000 (16:16 -0600)]
Change maintainer address.

* lisp/calc/calc (calc-bug-address): Change address.

9 years ago; Shorten TODO list in file-notify-tests.el
Michael Albinus [Tue, 3 Nov 2015 17:33:25 +0000 (18:33 +0100)]
; Shorten TODO list in file-notify-tests.el

9 years agoFix a stupid error in gfilenotify.c.
Michael Albinus [Tue, 3 Nov 2015 17:17:53 +0000 (18:17 +0100)]
Fix a stupid error in gfilenotify.c.

* src/gfilenotify.c (dir_monitor_callback): Cancel monitor only,
if we've got a `deleted' signal AND the file name is the watched one.

9 years agoFix Bug#21816; case insensitive file system in elisp-mode-tests.el
Stephen Leake [Tue, 3 Nov 2015 14:37:53 +0000 (08:37 -0600)]
Fix Bug#21816; case insensitive file system in elisp-mode-tests.el

* test/automated/elisp-mode-tests.el (xref-elisp-test-run): Use
case-insensitive string compare for file names.
(emacs-test-dir): Add 'downcase' to cause case differences (at least on
my system).

9 years agoFix ChangeLog.2 entry for js-jsx-mode
Jackson Ray Hamilton [Tue, 3 Nov 2015 05:14:05 +0000 (21:14 -0800)]
Fix ChangeLog.2 entry for js-jsx-mode

9 years agoflymake-tests.el (warning-predicate-rx-gcc): Fix check.
Juanma Barranquero [Mon, 2 Nov 2015 17:08:52 +0000 (18:08 +0100)]
flymake-tests.el (warning-predicate-rx-gcc): Fix check.

* test/automated/flymake-tests.el (warning-predicate-rx-gcc):
Also check that "make" is available, not just "gcc".

9 years agoDocument behavior of collation on Cygwin
Ken Brown [Mon, 2 Nov 2015 16:22:51 +0000 (11:22 -0500)]
Document behavior of collation on Cygwin

* test/automated/fns-tests.el (fns-tests-collate-sort): Mark as
expected failure on Cygwin.
* doc/lispref/strings.texi (Text Comparison): Document that
punctuation and whitespace are not ignored for sorting on Cygwin.

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

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

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

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

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

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

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

9 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

9 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

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

9 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
#

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

9 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

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

9 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

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

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

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

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

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

9 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

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

9 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

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

9 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

9 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'

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

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

9 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

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

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

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

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

9 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

9 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

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

9 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

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

9 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

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

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

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

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

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

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

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

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

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

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

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

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

9 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

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

9 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'

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

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

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

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

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

9 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

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

9 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

9 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

9 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:
"\\(  \\|[ ...][ ...]\\)".

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

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

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

9 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

9 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

9 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

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

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

9 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

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

9 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:])

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

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

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

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

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

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

9 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

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

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

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

9 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

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