]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years ago* lisp/emacs-lisp/stream.el: require 'seq stream
Nicolas Petton [Fri, 14 Aug 2015 13:58:54 +0000 (15:58 +0200)]
* lisp/emacs-lisp/stream.el: require 'seq

9 years ago* lisp/emacs-lisp/stream.el: Define macros early
Nicolas Petton [Fri, 14 Aug 2015 13:58:07 +0000 (15:58 +0200)]
* lisp/emacs-lisp/stream.el: Define macros early

9 years agoUse a generic function for creating streams from different sources
Nicolas Petton [Fri, 14 Aug 2015 13:53:24 +0000 (15:53 +0200)]
Use a generic function for creating streams from different sources

* lisp/emacs-lisp/stream.el (stream): New generic function.
* test/automated/stream-tests.el (stream-list-test): Fix a reference to
  the old `stream-list' function

9 years ago* lisp/emacs-lisp/stream.el: Fix stream-buffer initial position
Nicolas Petton [Fri, 14 Aug 2015 13:43:48 +0000 (15:43 +0200)]
* lisp/emacs-lisp/stream.el: Fix stream-buffer initial position

9 years agoAllow negative steps in stream-range
Nicolas Petton [Mon, 10 Aug 2015 12:53:10 +0000 (14:53 +0200)]
Allow negative steps in stream-range

* lisp/emacs-lisp/stream.el (stream-range): Do not signal an error if
the step is negative.
* test/automated/stream-tests.el (stream-range-test): Add a regression
test for negative steps in stream-range.

9 years agoAdd a new streaming library stream.el
Nicolas Petton [Fri, 31 Jul 2015 09:42:34 +0000 (11:42 +0200)]
Add a new streaming library stream.el

stream.el provides an implementation of streams.  Streams are
implemented as delayed evaluation of cons cells.

The implementation is close to the one in the SICP
book (https://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html).

Streams could be created from any sequencial input data, including
sequences, , making operation on them lazy, a set of 2 forms (first and
rest), making it easy to represent infinite sequences, buffers (by
character), buffers (by line), buffers (by page), IO streams, orgmode
table cells, etc.

* lisp/emacs-lisp/stream.el: New file.
* test/automated/stream-tests.el: New file.

9 years agoMinor cleanup in tramp-tests.el
Michael Albinus [Fri, 24 Jul 2015 18:02:59 +0000 (20:02 +0200)]
Minor cleanup in tramp-tests.el

* test/automated/tramp-tests.el (tramp-test31-*, tramp-test32-*):
Implement using the documented interface
`tramp-connection-properties', rather than with internal functions.

9 years agoPass lambdas to `skeleton-read'
Harald Hanche-Olsen [Thu, 23 Jul 2015 16:09:44 +0000 (18:09 +0200)]
Pass lambdas to `skeleton-read'

* lisp/skeleton.el (skeleton-read): Allow PROMPT to be a function.

* lisp/textmodes/sgml-mode.el (sgml-attributes, sgml-value): Pass
lambdas to `skeleton-read' (bug#20386).

Copyright-paperwork-exempt: yes

9 years ago* INSTALL (DETAILED BUILDING AND INSTALLATION): Mention --without-imagemagick.
Eli Zaretskii [Fri, 24 Jul 2015 13:42:08 +0000 (16:42 +0300)]
* INSTALL (DETAILED BUILDING AND INSTALLATION): Mention --without-imagemagick.

9 years agoDon't require GUI frames and mouse for Flyspell menus
Eli Zaretskii [Fri, 24 Jul 2015 07:47:05 +0000 (10:47 +0300)]
Don't require GUI frames and mouse for Flyspell menus

* lisp/textmodes/flyspell.el (flyspell-correct-word-before-point)
(flyspell-emacs-popup): Require neither a GUI frame nor mouse
support, since pop-up menus work with text terminals and can be
controlled via the keyboard.

9 years agoImprove documentation of Flyspell commands
Eli Zaretskii [Fri, 24 Jul 2015 07:29:16 +0000 (10:29 +0300)]
Improve documentation of Flyspell commands

* doc/emacs/fixit.texi (Spelling): Mention Flyspell commands that
can be invoked via the keyboard.  Mention those commands by name
and add them to the fn index.  (Bug#21125)

9 years agoFix some Tramp problems with HP-UX
Michael Albinus [Thu, 23 Jul 2015 19:49:40 +0000 (21:49 +0200)]
Fix some Tramp problems with HP-UX

* lisp/net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Add "tab0" to stty call.

* test/automated/tramp-tests.el (tramp-persistency-file-name):
Set to nil.
(tramp--test-hpux-p): New defun.
(tramp--test-utf8): Use it.

9 years ago* build-aux/update-subdirs: Put "no-update-autoloads: t" in output.
Glenn Morris [Wed, 22 Jul 2015 23:22:49 +0000 (19:22 -0400)]
* build-aux/update-subdirs: Put "no-update-autoloads: t" in output.

9 years ago; xref-find-regexp: (require 'grep), for grep-read-files
Dmitry Gutov [Wed, 22 Jul 2015 20:08:50 +0000 (23:08 +0300)]
; xref-find-regexp: (require 'grep), for grep-read-files

9 years agoFix point positioning in ffap-next-guess
Eli Zaretskii [Wed, 22 Jul 2015 15:35:16 +0000 (18:35 +0300)]
Fix point positioning in ffap-next-guess

* lisp/ffap.el (ffap-url-at-point): Set ffap-string-at-point-region,
as our callers expect.  This was clobbered as part of fixing
bug#5673.  (Bug#21107)
(ffap-gopher-at-point): Set ffap-string-at-point-region.

9 years agoFix customization type of `even-window-sizes'.
Martin Rudalics [Wed, 22 Jul 2015 10:34:41 +0000 (12:34 +0200)]
Fix customization type of `even-window-sizes'.

* lisp/window.el (even-window-sizes): Fix customization type.

9 years ago2015-07-22 Martin Rudalics <rudalics@gmx.at>
Martin Rudalics [Wed, 22 Jul 2015 10:20:13 +0000 (12:20 +0200)]
2015-07-22  Martin Rudalics  <rudalics@gmx.at>

Optionally even widths of `display-buffer' windows.  (Bug#21100)

* lisp/window.el (quit-restore-window): Restore width if
requested.
(display-buffer-record-window): Record width when window is
reused and horizontally combined.
(even-window-sizes): New option to allow evening window widths.
(even-window-heights): Defalias to `even-window-sizes'.
(window--even-window-heights): Rename to
`window--even-window-sizes'.  Handle side-by-side windows.
(display-buffer-use-some-window): Call `window--even-window-sizes'
instead of `window--even-window-heights'.
* lisp/help.el (resize-temp-buffer-window): Fix indentation.

* doc/lispref/windows.texi (Choosing Window Options): Describe
`even-window-sizes'.
(Coordinates and Windows): Fix typo.

9 years agoadd file name to autoload error messages.
Stephen Leake [Wed, 22 Jul 2015 09:29:38 +0000 (04:29 -0500)]
add file name to autoload error messages.

* lisp/emacs-lisp/autoload.el (autoload-save-buffers): add condition-case
  to add file name to error message.

9 years agoUse 0.0.0.1 as test host in Tramp
Michael Albinus [Wed, 22 Jul 2015 05:54:48 +0000 (07:54 +0200)]
Use 0.0.0.1 as test host in Tramp

* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Use 0.0.0.1 as test host.

9 years ago(advice--called-interactively-skip): Fix inf-loop (bug#21083)
Stefan Monnier [Tue, 21 Jul 2015 23:09:12 +0000 (19:09 -0400)]
(advice--called-interactively-skip): Fix inf-loop (bug#21083)

* lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip):
Fix inf-loop (bug#21083).

9 years ago* test/automated/package-test.el (package-test-signed):
Glenn Morris [Tue, 21 Jul 2015 16:03:46 +0000 (09:03 -0700)]
* test/automated/package-test.el (package-test-signed):

Update for recent changes.

9 years ago* test/automated/elisp-mode-tests.el
Glenn Morris [Tue, 21 Jul 2015 15:54:17 +0000 (08:54 -0700)]
* test/automated/elisp-mode-tests.el

(elisp-xref-finds-both-function-and-variable)
(elisp-xref-finds-only-function-for-minor-mode):
Update for recent xref name changes.

9 years agoMake eldoc timer non-repeatable
Dmitry Gutov [Tue, 21 Jul 2015 13:57:58 +0000 (16:57 +0300)]
Make eldoc timer non-repeatable

* lisp/emacs-lisp/eldoc.el (eldoc-schedule-timer): Make the timer
non-repeatable.  Since it's on post-command hook, that just wasted
CPU cycles.

9 years agoMention `tramp-connection-properties' in NEWS
Michael Albinus [Tue, 21 Jul 2015 13:23:08 +0000 (15:23 +0200)]
Mention `tramp-connection-properties' in NEWS

9 years agoSync with Tramp repository
Michael Albinus [Tue, 21 Jul 2015 12:59:18 +0000 (14:59 +0200)]
Sync with Tramp repository

* doc/misc/tramp.texi (Configuration): Note, that Tramp must be
required prior changing its configuration.
(Connection caching, Predefined connection information)
(Remote shell setup): Fix typos.
(Predefined connection information): Describe, how to overwrite
parameters of `tramp-methods'.
(Remote programs, Remote processes, Traces and Profiles):
Simplify example.
(Remote programs): Remove superfluous comment.

* doc/misc/trampver.texi: Update release number.

* lisp/net/tramp-cache.el (tramp-connection-properties): Adapt docstring.

* lisp/net/tramp-gvfs.el (tramp-gvfs-do-copy-or-rename-file): New defun.
(tramp-gvfs-handle-copy-file, tramp-gvfs-handle-rename-file): Use it.
(tramp-gvfs-handle-make-directory): Reimplement PARENTS handling,
"gvfs-mkdir -p ..." does not work robust.
(tramp-gvfs-maybe-open-connection): Adapt `tramp-get-method-parameter' call.

* lisp/net/tramp-sh.el (tramp-methods):
Add `tramp-remote-shell-login' parameter where it fits.
(tramp-get-remote-path): Use it.
(tramp-make-copy-program-file-name): Fix quoting for "psftp" method.
(all): Adapt `tramp-get-method-parameter' calls.

* lisp/net/tramp.el (tramp-methods): Adapt docstring.
(tramp-get-method-parameter): Replace argument METHOD by VEC.
Check also for hits in `tramp-connection-properties'.  Adapt docstring.
(tramp-get-remote-tmpdir): Cache only the local name of tmpdir.
(all): Adapt `tramp-get-method-parameter' calls.

* lisp/net/trampver.el Update release number.

* test/automated/tramp-tests.el (tramp--instrument-test-case):
Add "^make-symbolic-link not supported$" to `debug-ignored-errors'.
(tramp-test13-make-directory, tramp--test-adb-p)
(tramp--test-smb-or-windows-nt-p): Simplify.
(tramp--test-ftp-p, tramp--test-gvfs-p): New defuns.
(tramp--test-special-characters): Fix docstring.  Add gvfs and ftp tests.
(tramp--test-utf8): Fix docstring.

9 years agoAdd new xref-query-replace command
Dmitry Gutov [Tue, 21 Jul 2015 00:25:24 +0000 (03:25 +0300)]
Add new xref-query-replace command

* lisp/progmodes/xref.el (xref--match-buffer-bounds): New
function, extracted from xref-pulse-momentarily.
(xref-query-replace): New command.
(xref--query-replace-1): New helper function.
(xref--xref-buffer-mode-map): Add `r' binding.

9 years ago; Fix a typo
Dmitry Gutov [Mon, 20 Jul 2015 21:44:41 +0000 (00:44 +0300)]
; Fix a typo

9 years agoSimplify icalendar decoding of Z dates
Paul Eggert [Mon, 20 Jul 2015 16:47:39 +0000 (09:47 -0700)]
Simplify icalendar decoding of Z dates

* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
Simplify calculation of time strings with trailing "Z".

9 years agoDo not corrupt grep-find-ignored-files
Dmitry Gutov [Mon, 20 Jul 2015 01:42:53 +0000 (04:42 +0300)]
Do not corrupt grep-find-ignored-files

* lisp/progmodes/project.el (project-ignores): Change the order of
the arguments to nconc, in order not to corrupt grep-find-ignored-files.

9 years agoAdd xref-match-item, and use it
Dmitry Gutov [Mon, 20 Jul 2015 01:32:58 +0000 (04:32 +0300)]
Add xref-match-item, and use it

* lisp/progmodes/xref.el (xref-match-bounds): New generic function.
(xref-file-location): Add reader for the column slot.
(xref-match-item): New class.
(xref-match-bounds): A method implementation for it.
(xref-make-match): New constructor function.
(xref--current-item): New private variable.
(xref-pulse-momentarily): Use it.
(xref--pop-to-location): Change the first argument to an xref
item, instead of location, bind xref--current-item.
Update all callers.
(xref-next-line, xref-prev-line, xref--next-error-function)
(xref--mouse-2): Look for the property `xref-item',
instead of `xref-location'.
(xref--item-at-point): Likewise.  This function replaces
`xref-location-at-point'.  Update all callers.
(xref--insert-xrefs): Add the `xref-item' text property, instead
of `xref-location'.
(xref--collect-match): Use xref-make-match.

9 years agoRename xref--xref to xref-item
Dmitry Gutov [Mon, 20 Jul 2015 00:26:01 +0000 (03:26 +0300)]
Rename xref--xref to xref-item

* lisp/progmodes/xref.el (xref-item): Rename from `xref--xref'.
Update all references.

9 years agoRename xref description slot to summary
Dmitry Gutov [Mon, 20 Jul 2015 00:12:32 +0000 (03:12 +0300)]
Rename xref description slot to summary

* lisp/progmodes/xref.el (xref--xref): Rename the `description'
slot to `summary'.

9 years agovc-hg: Perform the print-log call asynchronously
Dmitry Gutov [Sun, 19 Jul 2015 17:49:59 +0000 (20:49 +0300)]
vc-hg: Perform the print-log call asynchronously

* lisp/vc/vc-hg.el (vc-hg-print-log): Perform the call
asynchronously (bug#21067).

9 years agoAdd xref-after-jump-hook and xref-after-return-hook
Dmitry Gutov [Sun, 19 Jul 2015 17:40:18 +0000 (20:40 +0300)]
Add xref-after-jump-hook and xref-after-return-hook

* lisp/progmodes/xref.el (xref-after-jump-hook)
(xref-after-return-hook): New hooks.
(xref-pulse-on-jump): Remove, in favor of the above.
(xref-pulse-momentarily): Rename from xref--maybe-pulse.
(xref--pop-to-location, xref--display-position)
(xref-pop-marker-stack): Use the new hooks, as requested in
http://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00213.html

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 19 Jul 2015 10:23:59 +0000 (06:23 -0400)]
; Auto-commit of ChangeLog files.

9 years agoCorrect js-mode's lighter
Bozhidar Batsov [Sun, 19 Jul 2015 05:18:56 +0000 (08:18 +0300)]
Correct js-mode's lighter

* lisp/progmodes/js.el (js-mode): Correct the lighter.

9 years agoFix a bug in cfengine3-mode
Leo Liu [Sun, 19 Jul 2015 04:39:37 +0000 (12:39 +0800)]
Fix a bug in cfengine3-mode

* progmodes/cfengine.el (cfengine3-mode): Handle nil
  eldoc-documentation-function.

9 years agosieve-mode: support "body" test command
Julien Danjou [Sun, 19 Jul 2015 00:11:02 +0000 (00:11 +0000)]
sieve-mode: support "body" test command

* lisp/gnus/sieve-mode.el (sieve-font-lock-keywords):
Add missing "body" test command.

9 years agoFix info-apropos when the default encoding is Latin-N
Eli Zaretskii [Sat, 18 Jul 2015 18:43:21 +0000 (21:43 +0300)]
Fix info-apropos when the default encoding is Latin-N

* lisp/info.el (Info-find-node-2): Reset the buffer's encoding to
'undecided', so that it is set to the encoding of the Info file we
are about to insert.  Otherwise, 'info-apropos' will fail to find
some index nodes in some UTF-8 encoded files, if the buffer's
previous encoding is Latin-N or some such.

9 years ago* epg.el (epg--start): Check that gpgconf can be found before calling it.
Ivan Andrus [Thu, 16 Jul 2015 21:44:20 +0000 (15:44 -0600)]
* epg.el (epg--start): Check that gpgconf can be found before calling it.

9 years agoExpose more file types to OS X that Emacs understands.
Ivan Andrus [Fri, 12 Dec 2014 05:18:20 +0000 (22:18 -0700)]
Expose more file types to OS X that Emacs understands.

* Cocoa/Emacs.base/Contents/Info.plist: Add editor role for sty, dtx,
json, and org files.  Export UTIs for el, elc, and org files.

9 years agoFix visual-order cursor movement when lines are truncated
Eli Zaretskii [Sat, 18 Jul 2015 12:17:26 +0000 (15:17 +0300)]
Fix visual-order cursor movement when lines are truncated

* src/xdisp.c (Fmove_point_visually): When lines are truncated,
simulate display in a window of infinite width, to allow move_it_*
functions reach positions outside of normal window dimensions.
Remove code that tried to handle a subset of these situations by
manual iteration of buffer text.  (Bug#17777)

9 years agoFix following Info cross-references to anchors
Eli Zaretskii [Sat, 18 Jul 2015 10:23:22 +0000 (13:23 +0300)]
Fix following Info cross-references to anchors

* lisp/info.el (Info-read-subfile): Add to the returned value the
length of subfile preamble, after converting it to file's byte
offset, as expected by the caller.  Use bufferpos-to-filepos.
(Info-find-node-2): If searching for a node with a
1000-character slop fails, try again with a 10000-character slop,
to account for known bugs in Texinfo 5.0 and 5.1.  (Bug#21055)

* lisp/international/mule-util.el (bufferpos-to-filepos): New
function.
* etc/NEWS: Mention bufferpos-to-filepos.

9 years agoFix scrolling backwards on TTY frames under scroll-conservatively
Eli Zaretskii [Sat, 18 Jul 2015 10:02:06 +0000 (13:02 +0300)]
Fix scrolling backwards on TTY frames under scroll-conservatively

* src/xdisp.c (move_it_vertically_backward): Fix off-by-one error
in moving backwards on TTY frames.  (Bug#21080)

9 years agoConsider a jsdoc tag to be a beginning of a paragraph as well
Dmitry Gutov [Sat, 18 Jul 2015 01:01:01 +0000 (04:01 +0300)]
Consider a jsdoc tag to be a beginning of a paragraph as well

* lisp/progmodes/js.el (js-mode): Change c-paragraph-start to
consider a jsdoc tag to be a beginning of a paragraph as well.

9 years ago* lisp/emacs-lisp/package.el: Fix warnings
Artur Malabarba [Fri, 17 Jul 2015 22:51:32 +0000 (23:51 +0100)]
* lisp/emacs-lisp/package.el: Fix warnings

9 years ago* lisp/emacs-lisp/package.el (package-buffer-info):
Artur Malabarba [Fri, 17 Jul 2015 18:24:15 +0000 (19:24 +0100)]
* lisp/emacs-lisp/package.el (package-buffer-info):

Add author and maintainers to `package-buffer-info'.

9 years ago* lisp/emacs-lisp/package.el: Many small changes
Artur Malabarba [Fri, 17 Jul 2015 18:25:39 +0000 (19:25 +0100)]
* lisp/emacs-lisp/package.el: Many small changes

Replace all instances of 'face with 'font-lock-face.
(describe-package-1): Improve some strings and move the summary up the
list.
(package-install-file): Update docstring.
(package-menu-hide-package): Bind to `H'.

9 years ago* lisp/emacs-lisp/package.el (package--with-work-buffer-async):
Artur Malabarba [Fri, 17 Jul 2015 22:00:24 +0000 (23:00 +0100)]
* lisp/emacs-lisp/package.el (package--with-work-buffer-async):

Fix error handling.

9 years agoFix hang with large yanks This should fix the bug fixed by Mike
Paul Eggert [Fri, 17 Jul 2015 18:54:24 +0000 (11:54 -0700)]
Fix hang with large yanks This should fix the bug fixed by Mike

Crowe's patch in:
https://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00106.html
A problem in this area has been reported by several users; see
Bug#16737, Bug#17101, Bug#17026, Bug#17172, Bug#19320, Bug#20283.
This fix differs from Mike Crowe's patch in that it should avoid a
race condition that could lose SIGIO signals.  ignore_sigio dates
back to the 1980s when some platforms couldn't block signals, and
could only ignore them, which led to races when signals arrived
while being ignored.  We shouldn't have to worry about those old
platforms now.
* src/dispextern.h, src/sysdep.c (ignore_sigio): Remove.
* src/emacs.c (shut_down_emacs):
Don't call ignore_sigio; unrequest_sigio should suffice.
* src/keyboard.c (kbd_buffer_store_buffered_event):
Use unrequest_sigio, not ignore_sigio.
(kbd_buffer_get_event):
Call request_sigio when getting the ball rolling again.

9 years ago* lisp/obsolete/longlines.el (longlines-search-function):
Artur Malabarba [Fri, 17 Jul 2015 11:22:24 +0000 (12:22 +0100)]
* lisp/obsolete/longlines.el (longlines-search-function):

Fallback on `isearch-search-fun-default'.

9 years agoSupport @-mentions
Tassilo Horn [Fri, 17 Jul 2015 11:18:38 +0000 (13:18 +0200)]
Support @-mentions

* rcirc.el (rcirc-completion-at-point): Support completion of
mentions/messages with @nick instead of just nick.

9 years agoFix Bug#20943.
Michael Albinus [Thu, 16 Jul 2015 18:04:07 +0000 (20:04 +0200)]
Fix Bug#20943.

* lisp/autorevert.el (auto-revert-handler): Do not check for
`buffer-modified-p'.

* lisp/files.el (buffer-stale--default-function): Check for
`buffer-modified-p'.

* test/automated/auto-revert-tests.el
(auto-revert-test02-auto-revert-mode-dired): Adapt test.

9 years agoFix delete-dups bug on long lists
Ari Roponen [Thu, 16 Jul 2015 14:52:30 +0000 (07:52 -0700)]
Fix delete-dups bug on long lists

* lisp/subr.el (delete-dups):
Don't mistakenly keep some dups when applied to long lists.

9 years agoBetter heuristic for C stack overflow
Paul Eggert [Thu, 16 Jul 2015 07:48:40 +0000 (00:48 -0700)]
Better heuristic for C stack overflow

Improve the heuristic for distinguishing stack overflows from
other SIGSEGV causes (Bug#21004).  Corinna Vinschen explained that
the getrlimit method wasn't portable to Cygwin; see:
https://www.cygwin.com/ml/cygwin/2015-07/msg00092.html
Corinna suggested pthread_getattr_np but this also has problems.
Instead, replace the low-level system stuff with a simple
heuristic based on known good stack addresses.
* src/eval.c, src/lisp.h (near_C_stack_top): New function.
* src/sysdep.c: Don't include <sys/resource.h>.
(stack_direction): Remove.  All uses removed.
(stack_overflow): New function.
(handle_sigsegv): Use it instead of incorrect getrlimit heuristic.
Make SEGV fatal in non-main threads.

9 years agoepg: Automatically start pinentry server
Daiki Ueno [Thu, 16 Jul 2015 06:43:03 +0000 (15:43 +0900)]
epg: Automatically start pinentry server

* epg-config.el (epg-gpgconf-program): New variable.
* epg.el (epg--start): Call `pinentry-start' if
allow-emacs-pinentry is set in ~/.gnupg/gpg-agent.conf.

9 years ago* lisp/gnus/nnimap.el: Fix my last bogus change
Katsumi Yamaoka [Wed, 15 Jul 2015 23:06:57 +0000 (23:06 +0000)]
* lisp/gnus/nnimap.el: Fix my last bogus change

Reinstall Stefan Monnier's change that was made in
<83d824bc4041332f338ad7e5e830f443535aa300>.

9 years agoMerge from gnulib
Paul Eggert [Wed, 15 Jul 2015 05:29:16 +0000 (22:29 -0700)]
Merge from gnulib

This incorporates:
2015-07-05 acl-permissions: Document FreeBSD ACL_TYPE_NFS4 acls
2015-07-05 acl-permissions: Fix on FreeBSD
2015-07-05 file-has-acl, acl-permissions: fix some more HP-UX typos
* lib/acl-internal.c, lib/acl-internal.h, lib/get-permissions.c:
* lib/set-permissions.c: Copy from gnulib.

9 years agoPort to stricter C99
Paul Eggert [Wed, 15 Jul 2015 05:19:45 +0000 (22:19 -0700)]
Port to stricter C99

* src/keyboard.h (kbd_buffer_store_event_hold):
Don't return a void expression.

9 years ago* doc/emacs/frames.texi (Creating Frames): Fix the command `C-x 5 m' runs.
Xue Fuqiao [Wed, 15 Jul 2015 04:08:29 +0000 (12:08 +0800)]
* doc/emacs/frames.texi (Creating Frames): Fix the command `C-x 5 m' runs.

9 years agoNew autorevert tests.
Michael Albinus [Tue, 14 Jul 2015 16:23:39 +0000 (18:23 +0200)]
New autorevert tests.

* test/automated/auto-revert-tests.el: New file.

9 years agoClear gcprolist etc. after stack overflow
Paul Eggert [Tue, 14 Jul 2015 13:59:26 +0000 (06:59 -0700)]
Clear gcprolist etc. after stack overflow

After stack overflow, command_loop calls init_eval, and this needs to
clear gcprolist and byte_stack_list (Bug#20996).
* src/alloc.c (init_alloc):
Move gcprolist and byte_stack_list initialization from here ...
* src/eval.c (init_eval): ... to here.

9 years ago* doc/emacs/windows.texi (Pop Up Window): Fix the description of `C-x 4 m'.
Xue Fuqiao [Mon, 13 Jul 2015 11:05:32 +0000 (19:05 +0800)]
* doc/emacs/windows.texi (Pop Up Window): Fix the description of `C-x 4 m'.

9 years agoAvoid deprecated enums in mac-ct font backend driver
YAMAMOTO Mitsuharu [Mon, 13 Jul 2015 10:14:25 +0000 (19:14 +0900)]
Avoid deprecated enums in mac-ct font backend driver

* src/macfont.m (mac_font_copy_default_descriptors_for_language)
(mac_ctfont_get_advance_width_for_glyph)
(mac_ctfont_get_bounding_rect_for_glyph): Avoid deprecated enums.

9 years agoCache font family in mac-ct font backend driver
YAMAMOTO Mitsuharu [Mon, 13 Jul 2015 09:55:47 +0000 (18:55 +0900)]
Cache font family in mac-ct font backend driver

* src/macfont.m (macfont_family_cache): New variable.
(syms_of_macfont): Initialize it.
(macfont_available_families_cache): New variable.
(macfont_invalidate_family_cache, macfont_get_family_cache_if_present)
(macfont_set_family_cache, macfont_invalidate_available_families_cache)
(macfont_handle_font_change_notification)
(macfont_init_font_change_handler)
(macfont_copy_available_families_cache): New functions.
(macfont_create_family_with_symbol): Use font family caches.
(macfont_list, macfont_list_family): Use
macfont_copy_available_families_cache instead of
mac_font_create_available_families.

9 years ago; Minor doc fix
Xue Fuqiao [Mon, 13 Jul 2015 06:53:21 +0000 (14:53 +0800)]
; Minor doc fix

9 years agoShow the default value in the prompt
Dmitry Gutov [Mon, 13 Jul 2015 01:27:32 +0000 (04:27 +0300)]
Show the default value in the prompt

* lisp/progmodes/xref.el: Add `M-?' binding for
xref-find-references.  Declare functions `grep-read-files' and
`grep-expand-template'.
(xref--read-identifier): Show the default value in the prompt.

9 years agoWhen called with prefix argument, ask for file patterns to search as well
Dmitry Gutov [Sun, 12 Jul 2015 15:35:08 +0000 (18:35 +0300)]
When called with prefix argument, ask for file patterns to search as well

* lisp/progmodes/xref.el (xref-find-regexp): When called with
prefix argument, ask for file patterns to search as well.  When
prompting for the directory, require an existing one.
(xref-collect-matches): Add a new argument, FILES.  Use it in the
above function.

9 years agoAdd `project-ignores'
Dmitry Gutov [Sun, 12 Jul 2015 14:18:09 +0000 (17:18 +0300)]
Add `project-ignores'

* lisp/progmodes/project.el (project-ignores): New generic
function, and an implementation for the VC project type.

* lisp/progmodes/xref.el (xref--rgrep-command): Split, as a
variant of rgrep-default-command that handles a generic list of
ignores.
(xref-collect-matches): Use it, and pass through to it the value
of the newly added argument.
(xref-find-regexp): Handle ignored paths within the project.
Remove outdated comment.

* lisp/vc/vc.el (vc-default-ignore-completion-table):
Skip the comments and the empty lines.

9 years ago* doc/emacs/buffers.texi (Misc Buffer): Add a cross reference.
Xue Fuqiao [Sun, 12 Jul 2015 12:53:46 +0000 (20:53 +0800)]
* doc/emacs/buffers.texi (Misc Buffer): Add a cross reference.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 12 Jul 2015 10:23:58 +0000 (06:23 -0400)]
; Auto-commit of ChangeLog files.

9 years agognus-registry.el: Correct function argument order
Eric Abrahamsen [Sat, 11 Jul 2015 23:48:09 +0000 (23:48 +0000)]
gnus-registry.el: Correct function argument order

* lisp/gnus/gnus-registry.el (gnus-registry--set/remove-mark):
Reverse the order of function arguments.

9 years agoBind grep-highlight-matches to nil
Dmitry Gutov [Sat, 11 Jul 2015 15:56:42 +0000 (18:56 +0300)]
Bind grep-highlight-matches to nil

* lisp/progmodes/xref.el (xref-collect-matches):
Bind grep-highlight-matches to nil (bug#20728).

9 years agonnimap.el: Fix IMAP message size parsing
Nikolaus Rath [Sat, 11 Jul 2015 06:01:43 +0000 (06:01 +0000)]
nnimap.el: Fix IMAP message size parsing

* lisp/gnus/nnimap.el (nnimap-transform-headers):
Don't assume that UID comes before RFC822.SIZE.

9 years ago* lisp/gnus/nnimap.el: Clean up "unused var" warnings
Stefan Monnier [Fri, 10 Jul 2015 20:17:13 +0000 (16:17 -0400)]
* lisp/gnus/nnimap.el: Clean up "unused var" warnings

(auth-source-creation-prompts): Declare.
(nnimap-retrieve-headers, nnimap-status-message)
(nnimap-request-create-group, nnimap-request-delete-group)
(nnimap-close-group, nnimap-request-move-article)
(nnimap-request-accept-article, nnimap-request-newgroups)
(nnimap-request-post, nnimap-dummy-active-number)
(nnimap-save-mail-spec, nnimap-get-groups): Add _ to unused vars.
(nnimap-parse-flags): Remove unused var `p'.
(nnimap-retrieve-group-data-early): Remove unused var `groups'.
(nnimap-flags-to-marks): Remove unused var `totalp'.

9 years ago* src/w32heap.c (DUMPED_HEAP_SIZE): Bump to 20MB.
Andy Moreton [Fri, 10 Jul 2015 12:48:11 +0000 (15:48 +0300)]
* src/w32heap.c (DUMPED_HEAP_SIZE): Bump to 20MB.

Copyright-paperwork-exempt: yes

9 years ago* src/macfont.m (macfont_list): Ignore font families lacking font descriptors.
YAMAMOTO Mitsuharu [Fri, 10 Jul 2015 09:04:34 +0000 (18:04 +0900)]
* src/macfont.m (macfont_list): Ignore font families lacking font descriptors.

9 years agoDon't check the exit status, it can be misleading
Dmitry Gutov [Fri, 10 Jul 2015 01:38:16 +0000 (04:38 +0300)]
Don't check the exit status, it can be misleading

* lisp/progmodes/xref.el (xref-collect-matches): Don't check the
exit status, it can be misleading.

9 years agoIntroduce a Project API
Dmitry Gutov [Fri, 10 Jul 2015 01:34:41 +0000 (04:34 +0300)]
Introduce a Project API

* lisp/progmodes/project.el: New file.

* lisp/cedet/ede.el: (project-try-ede): New function.
(project-root): New implementation.

* lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
Set project-search-path-function.
(elisp--xref-find-references): Delegate some logic to
project-search-path.
(elisp-search-path): New function.
(elisp-xref-find): Don't implement `matches' anymore.

* lisp/progmodes/etags.el: Don't implement `matches'.
Delegate some logic to project-search-path.
(etags-search-path): New function.

* lisp/progmodes/xref.el (xref-find-function):
Remove `matches' from the API.
(xref-find-regexp): Move whatever common logic was in elisp and
etags implementations, and search the directories returned by
project-directories and project-search-path.

9 years ago* test/automated/map-tests.el (test-map-delete-return-value): Uncomment test.
Nicolas Petton [Thu, 9 Jul 2015 17:49:24 +0000 (19:49 +0200)]
* test/automated/map-tests.el (test-map-delete-return-value): Uncomment test.

9 years agoAdd support for gv.el in map.el
Nicolas Petton [Thu, 9 Jul 2015 17:43:41 +0000 (19:43 +0200)]
Add support for gv.el in map.el

* lisp/emacs-lisp/map.el (map-elt, map-delete): Declare a gv-expander.
* lisp/emacs-lisp/map.el (map-put): Refactor using `setf' and `map-elt'.
* test/automated/map-tests.el: Update tests to work with the new
implementations of map-elt and map-put.

9 years ago* lisp/emacs-lisp/debug.el (debug-help-follow): Use describe-symbol.
Glenn Morris [Thu, 9 Jul 2015 17:18:57 +0000 (13:18 -0400)]
* lisp/emacs-lisp/debug.el (debug-help-follow): Use describe-symbol.

9 years agoSyntax-propertize until the end of the line first
Dmitry Gutov [Thu, 9 Jul 2015 12:28:04 +0000 (15:28 +0300)]
Syntax-propertize until the end of the line first

* lisp/progmodes/xref.el (xref--collect-match): Syntax-propertize
until the end of the line first.

9 years ago; Improve documentation of image-goto-frame
Xue Fuqiao [Thu, 9 Jul 2015 12:24:53 +0000 (20:24 +0800)]
; Improve documentation of image-goto-frame

9 years ago* doc/emacs/files.texi (File Archives): Add a cross reference.
Xue Fuqiao [Thu, 9 Jul 2015 11:40:41 +0000 (19:40 +0800)]
* doc/emacs/files.texi (File Archives): Add a cross reference.

9 years agonnimap.el: Handle plain value for nnimap-stream
Nikolaus Rath [Thu, 9 Jul 2015 03:54:03 +0000 (03:54 +0000)]
nnimap.el: Handle plain value for nnimap-stream

* lisp/gnus/nnimap.el (nnimap-open-connection-1): Always query
capabilities, so that a 'plain value for the `nnimap-stream' server
variable is handled correctly.

* doc/misc/gnus.texi (Customizing the IMAP Connection):
Document the 'plain option.

9 years agoFix bug in thing-at-point--bounds-of-well-formed-url
Leo Liu [Thu, 9 Jul 2015 02:18:00 +0000 (10:18 +0800)]
Fix bug in thing-at-point--bounds-of-well-formed-url

* lisp/thingatpt.el (thing-at-point--bounds-of-well-formed-url): Make
  sure boundary contains current point.

9 years ago* lisp/progmodes/xref.el (xref-collect-matches): Use `nreverse' in the end.
Dmitry Gutov [Thu, 9 Jul 2015 02:15:50 +0000 (05:15 +0300)]
* lisp/progmodes/xref.el (xref-collect-matches): Use `nreverse' in the end.

9 years agoDeclare whitespace-line-column a safe file-local
Dmitry Gutov [Wed, 8 Jul 2015 22:38:29 +0000 (01:38 +0300)]
Declare whitespace-line-column a safe file-local

* lisp/whitespace.el (whitespace-line-column): Declare to be a
safe file-local when the value is an integer.

9 years agognus-group.el: Check if group names are already strings
Eric Abrahamsen [Wed, 8 Jul 2015 22:28:50 +0000 (22:28 +0000)]
gnus-group.el: Check if group names are already strings

* lisp/gnus/gnus-group.el (gnus-group-group-name):
The group name may already be a string.
Specifically, in the group list reached from the *Server* buffer,
the 'gnus-group text property returns a string.  Everywhere else
it returns a symbol.

9 years agonnimap.el: Remove unused let variables
Eric Abrahamsen [Wed, 8 Jul 2015 22:28:24 +0000 (22:28 +0000)]
nnimap.el: Remove unused let variables

* lisp/gnus/nnimap.el (nnimap-request-group): Variables are not used.

9 years agoSupport "maximized" property of runemacs's shortcut
Eli Zaretskii [Wed, 8 Jul 2015 16:16:49 +0000 (19:16 +0300)]
Support "maximized" property of runemacs's shortcut

* nt/runemacs.c (WinMain): If runemacs is invoked "maximized", pass
the '--maximized' switch to Emacs.

9 years agoSupport "minimized" property of runemacs's shortcut
Eli Zaretskii [Wed, 8 Jul 2015 14:22:15 +0000 (17:22 +0300)]
Support "minimized" property of runemacs's shortcut

* nt/runemacs.c (WinMain): If runemacs is invoked "minimized",
pass the '--iconic' switch to Emacs.  (Bug#20991)

9 years agoDoc fixes
Xue Fuqiao [Wed, 8 Jul 2015 11:17:38 +0000 (19:17 +0800)]
Doc fixes

* doc/emacs/files.texi (Diff Mode): Fix the description of `C-c
C-w' in Diff mode.

* doc/emacs/arevert-xtra.texi (Auto Reverting the Buffer Menu):
Add a cross reference.

; * doc/emacs/search.texi (Regexp Backslash): Minor fix.

9 years ago; Fix a typo
Dmitry Gutov [Wed, 8 Jul 2015 10:57:15 +0000 (13:57 +0300)]
; Fix a typo

9 years ago* lisp/obsolete/landmark.el: Add Obsolete-since header
Nicolas Richard [Wed, 8 Jul 2015 05:54:28 +0000 (07:54 +0200)]
* lisp/obsolete/landmark.el: Add Obsolete-since header

9 years ago* test/automated/ert-tests.el (ert-test-deftest):
Glenn Morris [Tue, 7 Jul 2015 17:56:40 +0000 (13:56 -0400)]
* test/automated/ert-tests.el (ert-test-deftest):

Update for recent changes.

9 years ago(gv-setter, gv-synthetic-place, gv-delay-error): New funs/macros
Stefan Monnier [Tue, 7 Jul 2015 15:37:04 +0000 (11:37 -0400)]
(gv-setter, gv-synthetic-place, gv-delay-error): New funs/macros

* lisp/emacs-lisp/gv.el (gv-setter): New function.
(gv-invalid-place): New error.
(gv-get): Use them.
(gv-synthetic-place, gv-delay-error): New places.
* lisp/emacs-lisp/cl-generic.el (cl--generic-setf-rewrite): Remove.
(cl-defgeneric, cl-defmethod): Use gv-setter.

9 years agoMake vc-tests work with MSYS svn program
Fabrice Popineau [Tue, 7 Jul 2015 15:06:53 +0000 (18:06 +0300)]
Make vc-tests work with MSYS svn program

* lisp/vc/vc-svn.el (vc-svn-create-repo): Fix the file:// URL when
svn is an MSYS program.

9 years agoImprove recent change to emacsclient on Cygwin
Ken Brown [Tue, 7 Jul 2015 14:24:09 +0000 (10:24 -0400)]
Improve recent change to emacsclient on Cygwin

* lisp/server.el (server-process-filter): Remove redundant check
that 'cygwin-convert-file-name-from-windows' is defined as a
function on Cygwin.  Don't call that function unless its argument
starts with a drive letter.