bpt/emacs.git
9 years ago* lisp/emacs-lisp/nadvice.el (advice--member-p): Change second arg.
Stefan Monnier [Fri, 23 May 2014 16:17:14 +0000 (12:17 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--member-p): Change second arg.
(advice-function-member-p): Tell it to check both names and functions.
(advice--add-function): Adjust call accordingly.

Fixes: debbugs:17531

9 years ago* calendar/todo-mode.el: Miscellaneous bug fixes.
Stephen Berman [Fri, 23 May 2014 12:10:50 +0000 (14:10 +0200)]
* calendar/todo-mode.el: Miscellaneous bug fixes.
(todo-delete-file): When deleting an archive but not its todo
file, make sure to update the todo file's category sexp.
(todo-move-category): Keep the moved category's name unless the
file moved to already has a category with that name.  If the
numerically last category of the source file was moved, make the
first category current to avoid selecting a nonexisting category.
(todo-merge-category): Fix implementation to make merging to a
category in another file work as documented.  Eliminate now
insufficient and unnecessary renaming of archive category, correct
document string accordingly, and clarify it.  If the numerically
last category of the source file was merged, make the first
category current to avoid selecting a nonexisting category.
(todo-archive-done-item): When there are marked items and point
happens to be on an unmarked item, ignore the latter.  Don't leave
point below last item after archiving marked items.
(todo-unarchive-items): Fix logic to ensure unarchiving an item
from an archive with only one category deletes the archive only
when the category is empty after unarchiving.  Make sure the todo
file's category sexp is updated.
(todo-read-file-name): Allow an existing file name even when it is
not required (todo-move-category needs this to work as documented).
(todo-add-file): Call todo-validate-name to reject the name of an
existing todo file (needed due to fix in todo-read-file-name).
(todo-reset-nondiary-marker): Also reset in filtered items files.
(todo-reset-done-string, todo-reset-comment-string): Also reset in
regexp filtered items files.
(todo-reset-highlight-item): Also reset in filtered items files.
Fix incorrect variable reference in document string.

10 years ago* window.el (window--dump-frame): Avoid error in --without-x builds.
Glenn Morris [Thu, 22 May 2014 06:36:37 +0000 (23:36 -0700)]
* window.el (window--dump-frame): Avoid error in --without-x builds.

10 years agoFix port to 32-bit AIX.
Paul Eggert [Thu, 22 May 2014 05:00:39 +0000 (22:00 -0700)]
Fix port to 32-bit AIX.

* configure.ac (opsys): On Power Architecture, treat release 7 of
AIX like releases 5 and 6.
* src/unexaix.c (copy_text_and_data): Don't add text_scnptr to ptr
twice.  _text already includes this offset.
(unrelocate_symbols): Don't cast 64-bit integer to pointer.

Fixes: debbugs:17540

10 years ago* lisp/nxml/nxml-mode.el (xml-mode): Only define this alias once.
Glenn Morris [Wed, 21 May 2014 20:07:27 +0000 (16:07 -0400)]
* lisp/nxml/nxml-mode.el (xml-mode): Only define this alias once.

10 years agoFix bug #17532 with unclear docs of setting frame's font.
Eli Zaretskii [Wed, 21 May 2014 16:35:31 +0000 (19:35 +0300)]
Fix bug #17532 with unclear docs of setting frame's font.

 lisp/frame.el (set-frame-font): Doc fix.
 lisp/menu-bar.el (menu-set-font): Doc fix.

 doc/emacs/frames.texi (Fonts): Clarify which frames are affected by
 setting font from the menu and in default-frame-alist.

10 years agoFix bug #17539 with infinite recursion during scroll commands.
Eli Zaretskii [Wed, 21 May 2014 15:03:18 +0000 (18:03 +0300)]
Fix bug #17539 with infinite recursion during scroll commands.

 src/xdisp.c (move_it_in_display_line_to): Avoid infinite recursion:
 when closest_pos is identical to to_charpos, don't recurse, since
 we already tried that, and failed.

10 years agoReplace uses of `save-buffer' with `write-region'
Dmitry Gutov [Wed, 21 May 2014 02:14:38 +0000 (05:14 +0300)]
Replace uses of `save-buffer' with `write-region'

* lisp/emacs-lisp/package.el (package--download-one-archive): Use
`write-region' instead of `save-buffer' to avoid running various
hooks.
(describe-package-1): Same.  Insert newline at the end of the
buffer if appropriate.

Fixes: debbugs:17155

10 years ago* lisp/avoid.el (mouse-avoidance-banish-position): Fix defcustom :options
Juri Linkov [Tue, 20 May 2014 21:20:36 +0000 (00:20 +0300)]
* lisp/avoid.el (mouse-avoidance-banish-position): Fix defcustom :options
to allow changing its value with `set-variable'.

Fixes: debbugs:17439

10 years ago* lisp/avoid.el (mouse-avoidance-set-mouse-position): Don't raise frame.
Juri Linkov [Tue, 20 May 2014 21:14:44 +0000 (00:14 +0300)]
* lisp/avoid.el (mouse-avoidance-set-mouse-position): Don't raise frame.
(mouse-avoidance-ignore-p): Remove `switch-frame', add `focus-out'.
Add more modifiers: meta, control, shift, hyper, super, alt.

Fixes: debbugs:17439

10 years ago* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Remove hack for
Stefan Monnier [Tue, 20 May 2014 20:12:30 +0000 (16:12 -0400)]
* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Remove hack for
#; comments.
(scheme-syntax-propertize, scheme-syntax-propertize-sexp-comment):
New functions.
(scheme-mode-variables): Set syntax-propertize-function instead of
font-lock-syntactic-face-function.
(scheme-font-lock-syntactic-face-function): Delete.

10 years ago* lisp/emacs-lisp/lisp.el (end-of-defun): Ensure we move.
Stefan Monnier [Tue, 20 May 2014 18:55:41 +0000 (14:55 -0400)]
* lisp/emacs-lisp/lisp.el (end-of-defun): Ensure we move.

Fixes: debbugs:17274

10 years agoFix bug #17524 with crashes in creating a new frame with invalid font.
Eli Zaretskii [Tue, 20 May 2014 16:28:39 +0000 (19:28 +0300)]
Fix bug #17524 with crashes in creating a new frame with invalid font.

 src/w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: If we are
 unwinding when frame's faces were not initialized yet, increment
 the frame's image-cache reference count before calling
 x_free_frame_resources.  Don't dereference
 dpyinfo->terminal->image_cache if it is NULL.

10 years ago* lisp/vc/vc-rcs.el: Comment.
Glenn Morris [Tue, 20 May 2014 15:46:21 +0000 (08:46 -0700)]
* lisp/vc/vc-rcs.el: Comment.

10 years agoFix rcs2log problems with CVS.
Paul Eggert [Tue, 20 May 2014 07:59:28 +0000 (00:59 -0700)]
Fix rcs2log problems with CVS.

Problem reported by Glenn Morris in
<http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00277.html>.
Plus, fix some security and filename quoting problems.
* rcs2log (logdir): Prefer mktemp if available.
(logdir, llogdir): Work even if TMPDIR begins with '-' or has spaces.
(output_authors, main awk script): Parse more-recent CVS output format.

10 years agosrc/lisp.h: Fix typos in a comment.
Eli Zaretskii [Mon, 19 May 2014 16:59:50 +0000 (19:59 +0300)]
src/lisp.h: Fix typos in a comment.

10 years agoSpelling fix.
Paul Eggert [Mon, 19 May 2014 05:07:45 +0000 (22:07 -0700)]
Spelling fix.

10 years ago* mouse.el: Remove old comment.
Glenn Morris [Sun, 18 May 2014 22:53:27 +0000 (15:53 -0700)]
* mouse.el: Remove old comment.

10 years ago* configure.ac (INSTALL_INFO): Revert to just checking for "install-info".
Glenn Morris [Sun, 18 May 2014 22:41:22 +0000 (15:41 -0700)]
* configure.ac (INSTALL_INFO): Revert to just checking for "install-info".

10 years ago* lisp/emacs-lisp/timer.el (timer-event-handler): Fix last change.
Stefan Monnier [Sun, 18 May 2014 13:17:10 +0000 (09:17 -0400)]
* lisp/emacs-lisp/timer.el (timer-event-handler): Fix last change.

Fixes: debbugs:17392

10 years ago* lisp/emacs-lisp/timer.el (timer-event-handler): Don't run if canceled.
Stefan Monnier [Sun, 18 May 2014 12:58:30 +0000 (08:58 -0400)]
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't run if canceled.

Fixes: debbugs:17392

10 years agolisp/simple.el (line-move-ignore-invisible): Fix last commit.
Eli Zaretskii [Sat, 17 May 2014 16:06:02 +0000 (19:06 +0300)]
lisp/simple.el (line-move-ignore-invisible): Fix last commit.

10 years agoFix typo.
Michael Albinus [Sat, 17 May 2014 09:08:59 +0000 (11:08 +0200)]
Fix typo.

10 years ago* net/tramp-sh.el (tramp-find-inline-encoding): Do not match "%%t"
Michael Albinus [Sat, 17 May 2014 09:00:54 +0000 (11:00 +0200)]
* net/tramp-sh.el (tramp-find-inline-encoding): Do not match "%%t"
for a temporary file name.

10 years agoFix bug #17511 with unclear documentation of line-move-ignore-invisible.
Eli Zaretskii [Sat, 17 May 2014 08:58:17 +0000 (11:58 +0300)]
Fix bug #17511 with unclear documentation of line-move-ignore-invisible.

 lisp/simple.el (line-move-ignore-invisible): Doc fix.

 doc/lispref/display.texi (Invisible Text): Clarify the description of
 line-move-ignore-invisible.

10 years ago* configure.ac: Add comments accidentally omitted from previous change
Glenn Morris [Sat, 17 May 2014 01:40:49 +0000 (21:40 -0400)]
* configure.ac: Add comments accidentally omitted from previous change

10 years ago* configure.ac (INSTALL_INFO): Try "ginstall-info" before "install-info".
Glenn Morris [Sat, 17 May 2014 01:38:33 +0000 (21:38 -0400)]
* configure.ac (INSTALL_INFO): Try "ginstall-info" before "install-info".

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00232.html

10 years ago* net/dbus.el (dbus-init-bus, dbus-call-method)
Michael Albinus [Fri, 16 May 2014 13:11:09 +0000 (15:11 +0200)]
* net/dbus.el (dbus-init-bus, dbus-call-method)
(dbus-call-method-asynchronously, dbus-send-signal)
(dbus-method-return-internal, dbus-method-error-internal)
Check, whether Emacs has been compiled with D-Bus support.

Fixes: debbugs:17508

10 years agoAuto-commit of loaddefs files.
David Engster [Wed, 14 May 2014 20:45:05 +0000 (22:45 +0200)]
Auto-commit of loaddefs files.

10 years agoDeal with EIEIO methods without doc strings (Bug#17490).
Nicolas Richard [Wed, 14 May 2014 20:41:53 +0000 (22:41 +0200)]
Deal with EIEIO methods without doc strings (Bug#17490).

* emacs-lisp/eieio-opt.el (eieio-help-class): Correctly deal with
methods which do not have a doc string.  (Bug#17490)

10 years ago* lisp/minibuffer.el (completion-pcm--merge-try): Merge trailing / with
Stephen Berman [Wed, 14 May 2014 16:21:13 +0000 (12:21 -0400)]
* lisp/minibuffer.el (completion-pcm--merge-try): Merge trailing / with
suffix.

Fixes: debbugs:15419

10 years agoMake some pointless/useless emerge.el options obsolete
Glenn Morris [Wed, 14 May 2014 06:59:12 +0000 (23:59 -0700)]
Make some pointless/useless emerge.el options obsolete

* vc/emerge.el (emerge-temp-file-prefix): Make pointless option obsolete.
(emerge-temp-file-mode): Make non-functional option obsolete.

10 years ago* net/browse-url.el (browse-url):
Michael Albinus [Tue, 13 May 2014 08:54:08 +0000 (10:54 +0200)]
* net/browse-url.el (browse-url):
Use `unhandled-file-name-directory' when setting `default-directory',
in order to circumvent stalled remote connections.

Fixes: debbugs:17425

10 years agoA better fix for bug #17479.
Eli Zaretskii [Mon, 12 May 2014 19:10:59 +0000 (22:10 +0300)]
A better fix for bug #17479.

 doc/emacs/mule.texi (Language Environments): Remove unused @anchor.

10 years agoFix bug #17479 with spliced paragraphs in User manual.
Eli Zaretskii [Mon, 12 May 2014 18:51:58 +0000 (21:51 +0300)]
Fix bug #17479 with spliced paragraphs in User manual.

 doc/emacs/mule.texi (Language Environments): Fix @anchor placement.

10 years agoRegenerate AUTHORS and ldefs-boot.el
Glenn Morris [Mon, 12 May 2014 06:15:47 +0000 (23:15 -0700)]
Regenerate AUTHORS and ldefs-boot.el

10 years agoBump version to 24.3.91
Glenn Morris [Mon, 12 May 2014 06:11:08 +0000 (23:11 -0700)]
Bump version to 24.3.91

10 years agoob-screen tempfile fixes
Eric Schulte [Mon, 12 May 2014 06:09:43 +0000 (23:09 -0700)]
ob-screen tempfile fixes

* lisp/org/ob-screen.el (org-babel-screen-session-write-temp-file)
(org-babel-screen-test): Use unpredictable names for temporary files.

Fixes: debbugs:17416

10 years ago* lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooled
Stefan Monnier [Mon, 12 May 2014 05:25:34 +0000 (01:25 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--interactive-form): Don't get fooled
into autoloading just because of a silly indirection.

10 years ago* src/fileio.c (Ffile_executable_p): Doc tweak.
Glenn Morris [Sun, 11 May 2014 02:30:57 +0000 (19:30 -0700)]
* src/fileio.c (Ffile_executable_p): Doc tweak.

10 years ago* lisp/vc/vc-hg.el (vc-hg-unregister): New function (tiny change)
Santiago Payà i Miralta [Sun, 11 May 2014 02:01:08 +0000 (19:01 -0700)]
* lisp/vc/vc-hg.el (vc-hg-unregister): New function (tiny change)

Fixes: debbugs:17454

10 years agoMove lisp/emacs-lisp/find-gc.el to admin/
Glenn Morris [Sun, 11 May 2014 01:53:42 +0000 (18:53 -0700)]
Move lisp/emacs-lisp/find-gc.el to admin/

Ref: http://lists.gnu.org/archive/html/emacs-devel/2014-05/msg00118.html

10 years agoFix ChangeLog typo
Glenn Morris [Sat, 10 May 2014 22:09:03 +0000 (15:09 -0700)]
Fix ChangeLog typo

10 years agoadmin.el tweaks
Glenn Morris [Sat, 10 May 2014 21:59:05 +0000 (14:59 -0700)]
admin.el tweaks

* admin/admin.el (set-version-in-file): Don't set identical version.
(set-version): Provide default version number.
(set-version, set-copyright): Give start/end messages.

10 years agoAlso mention bug-gnu-emacs in (ps-)print.el version strings
Glenn Morris [Sat, 10 May 2014 21:41:12 +0000 (14:41 -0700)]
Also mention bug-gnu-emacs in (ps-)print.el version strings

* printing.el (pr-version):
* ps-print.el (ps-print-version): Also mention bug-gnu-emacs.

10 years ago* browse-url.el (browse-url-mosaic): Create /tmp/Mosaic.PID as a private file.
Glenn Morris [Sat, 10 May 2014 20:48:36 +0000 (13:48 -0700)]
* browse-url.el (browse-url-mosaic): Create /tmp/Mosaic.PID as a private file.

10 years ago* lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
Stefan Monnier [Sat, 10 May 2014 20:07:01 +0000 (16:07 -0400)]
* lisp/emacs-lisp/nadvice.el: Support adding a given function multiple times.
(advice--member-p): If name is given, only compare the name.
(advice--remove-function): Don't stop at the first match.
(advice--normalize-place): New function.
(add-function, remove-function): Use it.
(advice--add-function): Pass the name, if any, to
advice--remove-function.

10 years ago* xsettings.c (init_gsettings): Use g_settings_schema_source_lookup
Jan Djärv [Sat, 10 May 2014 10:42:08 +0000 (12:42 +0200)]
* xsettings.c (init_gsettings): Use g_settings_schema_source_lookup
instead of deprecated g_settings_list_schemas if possible.

Fixes: debbugs:17434

10 years ago* lisp/electric.el (electric-indent-post-self-insert-function): Don't use
Philipp Rumpf [Fri, 9 May 2014 18:03:21 +0000 (14:03 -0400)]
* lisp/electric.el (electric-indent-post-self-insert-function): Don't use
`pos' after modifying the buffer.

Fixes: debbugs:17449

10 years ago* lisp/subr.el (function-put): Add function.
Stefan Monnier [Fri, 9 May 2014 16:51:17 +0000 (12:51 -0400)]
* lisp/subr.el (function-put): Add function.

10 years ago* url-handlers.el (url-file-handler-load-in-progress): New defvar.
Michael Albinus [Fri, 9 May 2014 12:49:30 +0000 (14:49 +0200)]
* url-handlers.el (url-file-handler-load-in-progress): New defvar.
(url-file-handler): Use it, in order to avoid recursive load.

10 years ago* calendar/todo-mode.el (todo-insert-item-from-calendar):
Stephen Berman [Fri, 9 May 2014 07:50:42 +0000 (09:50 +0200)]
* calendar/todo-mode.el (todo-insert-item-from-calendar):
Correct argument list to conform to todo-insert-item--basic.

10 years ago* files.el (cd-absolute): Test if directory is accessible
Glenn Morris [Fri, 9 May 2014 06:53:30 +0000 (23:53 -0700)]
* files.el (cd-absolute): Test if directory is accessible
rather than executable.

This can't be any worse, and may be better in some situations.
It may or may not fix bug#17330.

10 years ago* compile.el (recompile): Handle C-u M-x recompile from non-compilation buffer
Glenn Morris [Fri, 9 May 2014 06:42:39 +0000 (23:42 -0700)]
* compile.el (recompile): Handle C-u M-x recompile from non-compilation buffer

Fixes: debbugs:17444

10 years agoBackport dired-check-switches from trunk.
Juri Linkov [Thu, 8 May 2014 19:22:43 +0000 (22:22 +0300)]
Backport dired-check-switches from trunk.
* lisp/dired.el (dired-check-switches, dired-switches-recursive-p): New functions.
(dired-switches-escape-p, dired-move-to-end-of-filename):
Use `dired-check-switches'.
(dired-insert-old-subdirs, dired-build-subdir-alist)
(dired-sort-R-check): Use `dired-switches-recursive-p'.

Fixes: debbugs:17218

10 years agoAdd CVE numbers for recent issues to ChangeLogs
Glenn Morris [Thu, 8 May 2014 18:12:34 +0000 (14:12 -0400)]
Add CVE numbers for recent issues to ChangeLogs

10 years ago* browse-url.el (browse-url-mosaic): Be careful when writing /tmp/Mosaic.PID.
Glenn Morris [Thu, 8 May 2014 18:10:36 +0000 (14:10 -0400)]
* browse-url.el (browse-url-mosaic): Be careful when writing /tmp/Mosaic.PID.
This is CVE-2014-3423.

Fixes: debbugs:17428

10 years agont/INSTALL: Minor rearrangement of text for clarity.
Eli Zaretskii [Thu, 8 May 2014 16:22:35 +0000 (19:22 +0300)]
nt/INSTALL: Minor rearrangement of text for clarity.

10 years ago* test/automated/vc-bzr.el: Tweak previous to use BZR_HOME rather than HOME
Glenn Morris [Thu, 8 May 2014 07:23:40 +0000 (00:23 -0700)]
* test/automated/vc-bzr.el: Tweak previous to use BZR_HOME rather than HOME

10 years agoFix comment typo in previous
Glenn Morris [Thu, 8 May 2014 07:14:15 +0000 (00:14 -0700)]
Fix comment typo in previous

10 years agotest/automated/vc-bzr.el: revise previous change
Glenn Morris [Thu, 8 May 2014 06:58:46 +0000 (23:58 -0700)]
test/automated/vc-bzr.el: revise previous change

* test/automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781)
(vc-bzr-test-faulty-bzr-autoloads):
Give bzr a temporary home-directory, in case the real one is missing.
Simply disabling logging wasn't enough.

10 years agotest/automated/vc-bzr.el: disable bzr's logging
Glenn Morris [Thu, 8 May 2014 03:34:20 +0000 (20:34 -0700)]
test/automated/vc-bzr.el: disable bzr's logging

This is for systems like hydra, where HOME can be read-only/absent.
See e.g. <http://hydra.nixos.org/build/10870893>.

* test/automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781)
(vc-bzr-test-faulty-bzr-autoloads): Disable bzr logging.

10 years ago* lisp/xt-mouse.el: Drop spurious/oddly shaped events.
Stefan Monnier [Thu, 8 May 2014 01:46:15 +0000 (21:46 -0400)]
* lisp/xt-mouse.el: Drop spurious/oddly shaped events.
(xterm-mouse--read-event-sequence-1000): Return nil if something looks fishy.
(xterm-mouse-event): Propagate it.
(xterm-mouse-translate-1): Handle it.

Fixes: debbugs:17378

10 years ago* internals.texi (C Dialect): New section.
Paul Eggert [Wed, 7 May 2014 20:51:35 +0000 (13:51 -0700)]
* internals.texi (C Dialect): New section.

(C Integer Types): Mention bool_bf.

10 years ago* minibuf.c (read_minibuf): Avoid C99ism in previous patch.
Paul Eggert [Wed, 7 May 2014 19:28:09 +0000 (12:28 -0700)]
* minibuf.c (read_minibuf): Avoid C99ism in previous patch.

Fixes: debbugs:17430

10 years agoStandardize case of "Front-Cover Texts" in texi file permissions notices.
Glenn Morris [Wed, 7 May 2014 17:34:53 +0000 (13:34 -0400)]
Standardize case of "Front-Cover Texts" in texi file permissions notices.

Ref: http://lists.gnu.org/archive/html/bug-texinfo/2014-05/msg00015.html

10 years agoFix initialization of minibuffer history variable, bug #17430.
Jarek Czekalski [Wed, 7 May 2014 15:03:47 +0000 (17:03 +0200)]
Fix initialization of minibuffer history variable, bug #17430.

* minibuf.c (read_minibuf): Initialize histval to Qnil if unbound.
Move the initialization up to prevent any "value void" message.

10 years agotodo-mode.el: Don't drop full parameter list.
Stephen Berman [Wed, 7 May 2014 09:31:27 +0000 (11:31 +0200)]
todo-mode.el: Don't drop full parameter list.

* calendar/todo-mode.el (todo-insert-item--apply-args): When all
four slots of the parameter list are filled, make sure to pass it
to the argument list of todo-insert-item--basic.

10 years ago* lisp/emacs-lisp/package.el (package-compute-transaction): Topological sort.
Stefan Monnier [Tue, 6 May 2014 18:11:16 +0000 (14:11 -0400)]
* lisp/emacs-lisp/package.el (package-compute-transaction): Topological sort.
Add optional `seen' argument to detect and break infinite loops.

Fixes: debbugs:16994

10 years ago* src/keyboard.c (Frecursive_edit): Ensure inc&dec of command_loop_level
Samuel Bronson [Tue, 6 May 2014 16:16:57 +0000 (12:16 -0400)]
* src/keyboard.c (Frecursive_edit): Ensure inc&dec of command_loop_level
are matched.

Fixes: debbugs:17413

10 years agoFix tooltips pulling Emacs window to front on windows-nt, bug #17408.
Jarek Czekalski [Tue, 6 May 2014 16:00:30 +0000 (18:00 +0200)]
Fix tooltips pulling Emacs window to front on windows-nt, bug #17408.

  * w32fns.c (Fx_show_tip): Add SWP_NOOWNERZORDER flag to
  SetWindowPos invocations.

10 years agoMinor stylistic changes in find-gc.el.
Eli Zaretskii [Tue, 6 May 2014 10:29:37 +0000 (13:29 +0300)]
Minor stylistic changes in find-gc.el.

 lisp/emacs-lisp/find-gc.el (find-gc-unsafe, find-unsafe-funcs)
 (trace-unsafe, trace-use-tree): Make parentheses style be
 according to Emacs style.

10 years agoFix Bug#17415.
Michael Albinus [Tue, 6 May 2014 09:51:05 +0000 (11:51 +0200)]
Fix Bug#17415.

* net/tramp-sh.el (tramp-uudecode): Replace the hard-coded temporary
file name by a format specifier.
(tramp-remote-coding-commands): Enhance docstring.
(tramp-find-inline-encoding): Replace "%t" by a temporary file name.

10 years ago* tramp.texi (Frequently Asked Questions): Mention HISTFILE
Michael Albinus [Tue, 6 May 2014 08:48:52 +0000 (10:48 +0200)]
* tramp.texi (Frequently Asked Questions): Mention HISTFILE
setting in ~/.ssh/environment.

10 years agoFix Bug#17295.
Michael Albinus [Tue, 6 May 2014 08:42:53 +0000 (10:42 +0200)]
Fix Bug#17295.
* net/tramp-sh.el (tramp-remote-process-environment): Remove
HISTFILE and HISTSIZE; it's too late to set them here.  Add
:version entry.
(tramp-open-shell): Do not let-bind `tramp-end-of-output'.  Add
"HISTSIZE=/dev/null" to the shell's env arguments.  Do not send
extra "PSx=..." commands.
(tramp-maybe-open-connection): Setenv HISTFILE to /dev/null.

10 years agobrowse-url.el comment
Glenn Morris [Tue, 6 May 2014 03:55:54 +0000 (20:55 -0700)]
browse-url.el comment

10 years agofind-gc.el misc fixes
Glenn Morris [Tue, 6 May 2014 03:53:31 +0000 (20:53 -0700)]
find-gc.el misc fixes

The whole file looks obsolete and/or broken.

* lisp/emacs-lisp/find-gc.el (find-gc-source-directory): Give it a value.
(find-gc-source-files): Update some names.
(trace-call-tree): Simplify and update.  Avoid predictable temp-file names.

10 years ago* gnus-fun.el (gnus-grab-cam-face): Do not use predictable temp-file name.
Glenn Morris [Tue, 6 May 2014 03:50:51 +0000 (20:50 -0700)]
* gnus-fun.el (gnus-grab-cam-face): Do not use predictable temp-file name.

10 years ago* lisp/minibuffer.el (completion--try-word-completion): Revert fix for
Stefan Monnier [Mon, 5 May 2014 23:54:06 +0000 (19:54 -0400)]
* lisp/minibuffer.el (completion--try-word-completion): Revert fix for
Bug#15980.

Fixes: debbugs:17375

10 years ago* lisp/xt-mouse.el (xterm-mouse--read-event-sequence-1000):
Stefan Monnier [Mon, 5 May 2014 23:50:20 +0000 (19:50 -0400)]
* lisp/xt-mouse.el (xterm-mouse--read-event-sequence-1000):
Always store button numbers in the same way in xterm-mouse-last;
Don't burp is xterm-mouse-last is not set as expected.
Never return negative indices.

Fixes: debbugs:17378

10 years ago* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Dmitry Gutov [Mon, 5 May 2014 23:18:18 +0000 (03:18 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Backtrack one char if the global/char-literal var matcher hits
inside a string.  The next char could be the beginning of an
expression expansion.

* test/automated/ruby-mode-tests.el
(ruby-interpolation-after-dollar-sign): New test.

10 years ago* lisp/help-fns.el (describe-function-1): Test for an autoload before a macro
Glenn Morris [Mon, 5 May 2014 21:33:07 +0000 (17:33 -0400)]
* lisp/help-fns.el (describe-function-1): Test for an autoload before a macro
since `macrop' works on autoloads.

* test/automated/help-fns.el: New file.

Fixes: debbugs:17410

10 years ago* lisp/electric.el (electric-indent-functions-without-reindent): Add yaml.
Stefan Monnier [Mon, 5 May 2014 19:04:40 +0000 (15:04 -0400)]
* lisp/electric.el (electric-indent-functions-without-reindent): Add yaml.

10 years ago* nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
Jan Djärv [Mon, 5 May 2014 17:37:43 +0000 (19:37 +0200)]
* nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
not initialized.

Fixes: debbugs:17398

10 years ago* lisp/minibuffer.el (completion-table-with-quoting) <completion--unquote>:
Stefan Monnier [Mon, 5 May 2014 01:46:47 +0000 (21:46 -0400)]
* lisp/minibuffer.el (completion-table-with-quoting) <completion--unquote>:
Make sure the new point we return is within the new string.

Fixes: debbugs:17239

10 years agoRevert recent libpng changes.
Paul Eggert [Sun, 4 May 2014 18:51:32 +0000 (11:51 -0700)]
Revert recent libpng changes.

They fix only bugs that aren't being reported, so it may be better
to do them on the trunk.
* configure.ac (PNG_CFLAGS): Remove.  All uses removed.
(LIBPNG): Don't be consistent about -lpng16 versus -lpng.
Ignore libpng-config's exit status.  Always append -lz -lm.
* src/Makefile.in (PNG_CFLAGS): Remove; all uses removed.
* src/image.c [HAVE_LIBPNG_PNG_H]: Include <libpng/png.h>, not <png.h>.

Fixes: debbugs:17339

10 years ago* configure.ac (LIBPNG): Add -lz -lm on platforms where they're needed
Paul Eggert [Sun, 4 May 2014 06:34:04 +0000 (23:34 -0700)]
* configure.ac (LIBPNG): Add -lz -lm on platforms where they're needed

but libpng-config --libs omits them.  Problem reported by Glenn
Morris.

10 years agoRequire ImageMagick >= 6.3.5, due to PixelSetMagickColor.
Paul Eggert [Sat, 3 May 2014 21:06:04 +0000 (14:06 -0700)]
Require ImageMagick >= 6.3.5, due to PixelSetMagickColor.

* configure.ac (IMAGEMAGICK_MODULE): Bump prereq from 6.2.8 to 6.3.5.
A more-complicated fix would be to remove uses of PixelSetMagickColor,
introduced in ImageMagick 6.3.5 (Sept. 2007).

Fixes: debbugs:17339

10 years agoHandle systems without WCONTINUED consistently.
Paul Eggert [Sat, 3 May 2014 20:13:10 +0000 (13:13 -0700)]
Handle systems without WCONTINUED consistently.

* lib-src/emacsclient.c (WCONTINUED): Move to ../src/syswait.h.
* src/process.c (handle_child_signal): Remove WCONTINUED ifdef,
because WCONTINUED is always defined now.
* src/syswait.h (WCONTINUED): Move here from ../lib-src/emacsclient.c.

Fixes: debbugs:15110 debbugs:17339

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Sat, 3 May 2014 11:21:19 +0000 (07:21 -0400)]
Auto-commit of loaddefs files.

10 years agoMinor fixes for comments.
Eli Zaretskii [Sat, 3 May 2014 08:47:50 +0000 (11:47 +0300)]
Minor fixes for comments.

 src/buffer.c (overlay_strings): Fix the wording of the commentary.

 lisp/mail/rmailsum.el (rmail-new-summary-1): Fix a typo in a comment.

10 years ago* lisp/vc/ediff-diff.el (ediff-set-fine-diff-properties-in-one-buffer):
Stefan Monnier [Sat, 3 May 2014 02:27:46 +0000 (22:27 -0400)]
* lisp/vc/ediff-diff.el (ediff-set-fine-diff-properties-in-one-buffer):
Use nil rather than `default' for the "default" appearance.
* lisp/vc/ediff-util.el (ediff-inferior-compare-regions)
(ediff-toggle-autorefine, ediff-unselect-difference): Don't use
a misleading `default' value when it's really a boolean.
* lisp/vc/ediff-init.el (ediff-set-overlay-face): Don't set help-echo if the
overlay is not visible.

Fixes: debbugs:17388

10 years agoadmin/make-tarball.txt: Misc small updates/edits
Glenn Morris [Fri, 2 May 2014 19:45:17 +0000 (15:45 -0400)]
admin/make-tarball.txt: Misc small updates/edits

10 years agoConsult libpng-config more consistently.
Paul Eggert [Fri, 2 May 2014 19:34:03 +0000 (12:34 -0700)]
Consult libpng-config more consistently.

* configure.ac (edit_cflags): Move this up and to the top level,
so that PNG_CFLAGS can use it too.
(PNG_CFLAGS): New var.
(png_longjmp): Use PNG_CFLAGS when checking.
(LIBPNG): Be consistent about -lpng16 etc; e.g., don't use -lpng16
in some places and -lpng in others.  Test libpng-config's exit
status.  If it succeeds, use its output rather than appending -lz -lm.
* src/Makefile.in (PNG_CFLAGS): New var.
(ALL_CFLAGS): Use it.
* src/image.c [HAVE_PNG]: Don't worry about <libpng/png.h>, as
CFLAGS now handles this.

Fixes: debbugs:17339

10 years agoUpdate, improve exposition, add cross references, fix typos.
Stephen Berman [Fri, 2 May 2014 14:17:41 +0000 (16:17 +0200)]
Update, improve exposition, add cross references, fix typos.

* todo-mode.texi: Update, improve exposition, add cross
references, fix typos.
(Inserting New Items, Editing Item Headers and Text): Rewrite to
document new user interface.

10 years agoAdd a warning and a menu.
Stephen Berman [Fri, 2 May 2014 14:10:11 +0000 (16:10 +0200)]
Add a warning and a menu.

* calendar/todo-mode.el (todo-edit-file): Use display-warning.
(todo-menu): Uncomment and update.

10 years agoExtend todo item insertion UI to item editing.
Stephen Berman [Fri, 2 May 2014 13:58:23 +0000 (15:58 +0200)]
Extend todo item insertion UI to item editing.

* calendar/todo-mode.el: Reimplement item editing to have the same
basic user interface as item insertion, and make small UI and
larger internal improvements to the latter.
(todo-insert-item): Add reference to the Todo mode user manual to
the documentation string.
(todo-insert-item--basic): Rename from todo-basic-insert-item and
adjust all callers.  Change signature to combine diary and
nonmarking arguments.  Incorporate functionality of deleted item
copying command and add error checking.  Remove detailed
descriptions of the arguments from the documentation string, since
this is treated in the Todo mode user manual.
(todo-copy-item, todo-edit-multiline-item)
(todo-edit-done-item-comment, todo-edit-item-header)
(todo-edit-item-time, todo-edit-item-date-from-calendar)
(todo-edit-item-date-to-today, todo-edit-item-date-day-name)
(todo-edit-item-date-year, todo-edit-item-date-month)
(todo-edit-item-date-day, todo-edit-item-diary-nonmarking):
Remove.
(todo-edit-item): Reimplement as wrapper command for
todo-edit-item--next-key and make it distinguish done and not done
todo items.
(todo-edit-item--text): New function, replacing old command
todo-edit-item and incorporating deleted commands
todo-edit-multiline-item and todo-edit-done-item-comment.
(todo-edit-item--header): Rename from todo-basic-edit-item-header.
Use only numeric value of prefix argument.  Remove detailed
descriptions of the arguments from the documentation string, since
this is treated in the Todo mode user manual.
(todo-edit-item--diary-inclusion): New function, replacing old
command todo-edit-item-diary-inclusion and incorporating and fixing
functionality of deleted command todo-edit-item-diary-nonmarking,
making sure to remove todo-nondiary-marker when adding
diary-nonmarking-symbol.
(todo-edit-category-diary-inclusion): Make sure to delete
diary-nonmarking-symbol when adding todo-nondiary-marker.
(todo-edit-category-diary-nonmarking): Fix indentation.
(todo-insert-item--parameters): Group diary and nonmarking
parameters together.
(todo-insert-item--apply-args): Adjust to signature of
todo-insert-item--basic and incorporate copy parameter.
Make small code improvements.
(todo-insert-item--next-param): Improve prompt and adjust it to
new parameter grouping.  Remove obsolete code.
(todo-edit-item--param-key-alist)
(todo-edit-item--date-param-key-alist)
(todo-edit-done-item--param-key-alist): New defconsts.
(todo-edit-item--prompt): New variable.
(todo-edit-item--next-key): New function.
(todo-key-bindings-t): Bind "e" to todo-edit-item.  Remove
bindings of deleted commands.

10 years agoImprove indexing in trouble-related sections of Emacs User manual.
Eli Zaretskii [Fri, 2 May 2014 12:28:10 +0000 (15:28 +0300)]
Improve indexing in trouble-related sections of Emacs User manual.

 doc/emacs/trouble.texi (Lossage, DEL Does Not Delete, Stuck Recursive)
 (Screen Garbled, Text Garbled, After a Crash, Emergency Escape)
 (Bug Criteria, Understanding Bug Reporting, Checklist, Service):
 Improve indexing.

10 years ago* emacs-lisp/cl-macs.el (cl-deftype): Fix indentation.
Leo Liu [Fri, 2 May 2014 11:11:35 +0000 (19:11 +0800)]
* emacs-lisp/cl-macs.el (cl-deftype): Fix indentation.

10 years agoDoc fixes
Glenn Morris [Thu, 1 May 2014 23:55:25 +0000 (19:55 -0400)]
Doc fixes

* doc/misc/autotype.texi (Skeleton Language):
* doc/misc/message.texi (Header Commands):
* lisp/allout-widgets.el (allout-widgets-tally)
(allout-decorate-item-guides):
* lisp/menu-bar.el (menu-bar-positive-p):
* lisp/minibuffer.el (completion-pcm-complete-word-inserts-delimiters):
* lisp/cedet/ede.el (ede-project-directories, ede-check-project-directory):
* lisp/cedet/semantic/ia-sb.el (semantic-ia-sb-show-doc):
* lisp/cedet/semantic/tag.el (semantic-tag-in-buffer-p):
* lisp/cedet/semantic/bovine/c.el (semantic-tag-abstract-p):
* lisp/gnus/gnus-registry.el (gnus-registry-install-p): Doc fix.
* lisp/progmodes/gdb-mi.el (gdbmi-same-start, gdbmi-is-number):
* lisp/progmodes/js.el (js--inside-param-list-p)
(js--inside-dojo-class-list-p, js--forward-destructuring-spec):
* lisp/progmodes/prolog.el (region-exists-p):
* lisp/progmodes/verilog-mode.el (verilog-scan-cache-ok-p):
* lisp/textmodes/reftex-parse.el (reftex-using-biblatex-p):
* lisp/url/url-parse.el (url-generic-parse-url):
* src/floatfns.c (Fisnan):
* src/profiler.c (Fprofiler_cpu_running_p):
Doc fixes (replace `iff').

Fixes: debbugs:17309