]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years ago* admin/release-process: Rename from admin/FOR-RELEASE.
Xue Fuqiao [Sun, 15 Nov 2015 01:32:12 +0000 (09:32 +0800)]
* admin/release-process: Rename from admin/FOR-RELEASE.

9 years agoFixed NextStep fullscreen problem (bug#21770).
Anders Lindgren [Fri, 6 Nov 2015 21:39:02 +0000 (22:39 +0100)]
Fixed NextStep fullscreen problem (bug#21770).

* nsterm.m (ns_constrain_all_frames): Don't constrain fullscreen
frames.

9 years agoEnsure redisplay after evaluation
Eli Zaretskii [Fri, 6 Nov 2015 19:21:52 +0000 (21:21 +0200)]
Ensure redisplay after evaluation

* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Revert
last change.
* lisp/frame.el (redisplay--variables): Populate the
redisplay--variables list.
* src/xdisp.c (maybe_set_redisplay): New function.
(syms_of_xdisp) <redisplay--variables>: New variable.
* src/window.h (maybe_set_redisplay): Declare prototype.
* src/data.c (set_internal): Call maybe_set_redisplay.  (Bug#21835)

9 years ago* test/automated/subr-tests.el (subr-test-when): Fix again
Artur Malabarba [Fri, 6 Nov 2015 15:53:23 +0000 (15:53 +0000)]
* test/automated/subr-tests.el (subr-test-when): Fix again

9 years agoDon't invoke overlay modification hooks in wrong buffer
Eli Zaretskii [Fri, 6 Nov 2015 15:19:39 +0000 (17:19 +0200)]
Don't invoke overlay modification hooks in wrong buffer

* src/buffer.c (report_overlay_modification): When called with
AFTER non-zero, don't invoke overlay modification hooks if the
buffer recorded in last_overlay_modification_hooks is different
from the current buffer.  (Bug#21824)

9 years ago* admin/notes/repo: Fix a few obsolete references to Bazaar
Juanma Barranquero [Fri, 6 Nov 2015 13:06:29 +0000 (14:06 +0100)]
* admin/notes/repo: Fix a few obsolete references to Bazaar

9 years ago* test/automated/subr-tests.el (subr-test-when): Fix test
Artur Malabarba [Fri, 6 Nov 2015 11:18:23 +0000 (11:18 +0000)]
* test/automated/subr-tests.el (subr-test-when): Fix test

9 years agoAvoid division by zero crash observed by Yuan MEI.
Martin Rudalics [Fri, 6 Nov 2015 11:15:18 +0000 (12:15 +0100)]
Avoid division by zero crash observed by Yuan MEI.

See http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg00194.html.

* src/dispnew.c (required_matrix_height, required_matrix_width):
Avoid division by zero.
* src/xterm.c (x_term_init): Init dpyinfo->smallest_font_height and
dpyinfo->smallest_char_width to 1.

9 years agoEnsure redisplay after "C-x C-e"
Eli Zaretskii [Fri, 6 Nov 2015 09:28:46 +0000 (11:28 +0200)]
Ensure redisplay after "C-x C-e"

* lisp/progmodes/elisp-mode.el (elisp--eval-last-sexp): Make sure
redisplay happens to account for any side effects of the evaluated
sexp.  (Bug#21835)

9 years ago; * CONTRIBUTE: Add section about the bug tracker
Eli Zaretskii [Fri, 6 Nov 2015 08:56:59 +0000 (10:56 +0200)]
; * CONTRIBUTE: Add section about the bug tracker

* CONTRIBUTE: Move less important sections after the more
important ones.  Add section about the bug tracker.

9 years agoSkip some file notification tests for cygwin
Michael Albinus [Fri, 6 Nov 2015 06:33:50 +0000 (07:33 +0100)]
Skip some file notification tests for cygwin

* test/automated/file-notify-tests.el (file-notify--test-with-events):
Remove argument TIMEOUT.  Adapt all callees.
(file-notify-test02-events, file-notify-test04-file-validity):
Skip for cygwin.  (Bug#21804)

9 years ago* lisp/progmodes/xref.el: require semantic/symref during compilation.
Stephen Leake [Fri, 6 Nov 2015 03:14:45 +0000 (05:14 +0200)]
* lisp/progmodes/xref.el: require semantic/symref during compilation.

9 years agoSuppress redundant Pinentry startup messages
Daiki Ueno [Fri, 6 Nov 2015 01:28:36 +0000 (10:28 +0900)]
Suppress redundant Pinentry startup messages

* lisp/net/pinentry.el (pinentry-start): Add optional QUIET
argument.
* lisp/epg.el: Declare `pinentry-start'.
(epg--start): Call `pinentry-start' with QUIET argument set.

9 years ago* doc/emacs/ack.texi (Acknowledgments): Updates.
Xue Fuqiao [Thu, 5 Nov 2015 23:30:32 +0000 (07:30 +0800)]
* doc/emacs/ack.texi (Acknowledgments): Updates.

9 years ago* test/automated/elisp-mode-test.el: Silence some run-time warnings
Juanma Barranquero [Thu, 5 Nov 2015 21:47:52 +0000 (22:47 +0100)]
* test/automated/elisp-mode-test.el: Silence some run-time warnings

(xref-elisp-deftest): Bind `find-file-suppress-same-file-warnings' to t.

9 years agoAdd prettify symbol for \times
Tassilo Horn [Thu, 5 Nov 2015 20:12:37 +0000 (21:12 +0100)]
Add prettify symbol for \times

* lisp/textmodes/tex-mode.el (tex--prettify-symbols-alist): Add
prettification support for \times.

9 years ago* test/automated/process-tests.el: Skip tests when bash is not available
Juanma Barranquero [Thu, 5 Nov 2015 18:40:42 +0000 (19:40 +0100)]
* test/automated/process-tests.el: Skip tests when bash is not available

(process-test-sentinel-accept-process-output)
(process-test-sentinel-sit-for): skip-unless bash executable found.

9 years agoAdd test for bug #21831
Eli Zaretskii [Thu, 5 Nov 2015 18:12:19 +0000 (20:12 +0200)]
Add test for bug #21831

* test/automated/process-tests.el
(start-process-should-not-modify-arguments): New test.  (Bug#21831)
Suggested by Nicolas Richard <youngfrog@members.fsf.org>

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Thu, 5 Nov 2015 11:17:56 +0000 (06:17 -0500)]
; Auto-commit of loaddefs files.

9 years ago; * test/automated/elisp-mode-tests.el: Fix typo.
Juanma Barranquero [Thu, 5 Nov 2015 11:01:25 +0000 (12:01 +0100)]
; * test/automated/elisp-mode-tests.el: Fix typo.

9 years ago* lisp/emacs-lisp/eieio-compat.el: Typo caught by tests
Stefan Monnier [Wed, 4 Nov 2015 14:42:20 +0000 (09:42 -0500)]
* lisp/emacs-lisp/eieio-compat.el: Typo caught by tests

(eieio--generic-static-object-generalizer): Fix typo.
* test/automated/eieio-tests.el: Byte-compile it again.
It looks like the underlying cause of bug#17852 was fixed in the mean time.

9 years agoRevert "* lisp/subr.el (when): Use `macroexp-progn'"
Artur Malabarba [Wed, 4 Nov 2015 14:22:27 +0000 (14:22 +0000)]
Revert "* lisp/subr.el (when): Use `macroexp-progn'"

This reverts commit 8e843831eaf271801836b7a3e4dd3b4fb0bb72b8.
It breaks bootstrapping (duh).

9 years ago* lisp/files.el (report-errors): Obsolete
Artur Malabarba [Wed, 4 Nov 2015 13:00:04 +0000 (13:00 +0000)]
* lisp/files.el (report-errors): Obsolete

(normal-mode, hack-local-variables, dir-locals-find-file): Use
`with-demoted-errors' instead.

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