bpt/emacs.git
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

10 years ago* configure.ac (LIBPNG): Consult libpng-config
Glenn Morris [Thu, 1 May 2014 21:57:27 +0000 (17:57 -0400)]
* configure.ac (LIBPNG): Consult libpng-config
for the precise form of "-lpng" to use.

Fixes: debbugs:17339

10 years agosrc/term.c (tty_menu_activate): A better initialization for cursor coordinates.
Eli Zaretskii [Thu, 1 May 2014 15:59:42 +0000 (18:59 +0300)]
src/term.c (tty_menu_activate): A better initialization for cursor coordinates.

10 years ago* src/intervals.c: Tighten assertions.
Stefan Monnier [Thu, 1 May 2014 15:15:46 +0000 (11:15 -0400)]
* src/intervals.c: Tighten assertions.
(create_root_interval): Make sure the interval is not empty.
(intervals_equal): Use booleans.
(rotate_right, rotate_left): Check LENGTHs rather than TOTAL_LENGTH.
(balance_an_interval): Sanity check LENGTHs and TOTAL_LENGTHs.
(balance_possible_root_interval): Simplify and use booleans.
(split_interval_right, split_interval_left): Check LENGTH, and remove
now redundant assertion.
(adjust_intervals_for_insertion): Remove now redundant assertions.
(delete_node, interval_deletion_adjustment)
(adjust_intervals_for_deletion, merge_interval_right)
(merge_interval_left): Check LENGTH rather than TOTAL_LENGTH.
(reproduce_interval): Make sure the interval is not empty.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 1 May 2014 11:18:18 +0000 (07:18 -0400)]
Auto-commit of loaddefs files.

10 years ago* lisp/mpc.el (mpc-volume-mouse-set): Don't burp at the boundaries.
Stefan Monnier [Thu, 1 May 2014 01:08:08 +0000 (21:08 -0400)]
* lisp/mpc.el (mpc-volume-mouse-set): Don't burp at the boundaries.

10 years agoSpelling fix, plus try to fix grammar in doc string.
Paul Eggert [Wed, 30 Apr 2014 18:01:36 +0000 (11:01 -0700)]
Spelling fix, plus try to fix grammar in doc string.

10 years ago* term.c (tty_menu_activate): Don't assume row and col are initialized.
Paul Eggert [Wed, 30 Apr 2014 17:54:27 +0000 (10:54 -0700)]
* term.c (tty_menu_activate): Don't assume row and col are initialized.

GCC 4.9.0 warned about this, and I couldn't easily prove to my own
satisfaction that they would always be initialized.

10 years agoMinor fixes for dired.el doc strings.
Eli Zaretskii [Wed, 30 Apr 2014 16:59:03 +0000 (19:59 +0300)]
Minor fixes for dired.el doc strings.

 lisp/dired.el (dired-initial-position-hook, dired-initial-position):
 Doc string fixes.

10 years agoOne more doc fix for bug #17362.
Eli Zaretskii [Tue, 29 Apr 2014 19:23:05 +0000 (22:23 +0300)]
One more doc fix for bug #17362.

10 years ago* lisp/mail/rmail.el (rmail-quit): Handle killed summaries.
Glenn Morris [Tue, 29 Apr 2014 15:51:49 +0000 (11:51 -0400)]
* lisp/mail/rmail.el (rmail-quit): Handle killed summaries.

Fixes: debbugs:17283

10 years agoPlace hardware TTY cursor at the active menu item when displaying a menu.
Eli Zaretskii [Tue, 29 Apr 2014 15:33:37 +0000 (18:33 +0300)]
Place hardware TTY cursor at the active menu item when displaying a menu.

 src/term.c (tty_menu_display): Move the cursor to the active menu
 item.
 (tty_menu_activate): Return the cursor to the active menu item
 after displaying the menu and after displaying help-echo.  See
 http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00402.html
 for the details of why this is needed by screen readers and
 Braille displays.

10 years agoFew more doc fixes for bug #17362.
Eli Zaretskii [Tue, 29 Apr 2014 15:17:02 +0000 (18:17 +0300)]
Few more doc fixes for bug #17362.

10 years ago* src/process.c (handle_child_signal): Handle systems without WCONTINUED
Glenn Morris [Tue, 29 Apr 2014 15:12:36 +0000 (08:12 -0700)]
* src/process.c (handle_child_signal): Handle systems without WCONTINUED

Fixes: debbugs:15110

10 years ago* lib-src/Makefile.in ($(DESTDIR)${archlibdir}): Avoid non-portable "`\" nesting
Glenn Morris [Tue, 29 Apr 2014 14:54:58 +0000 (07:54 -0700)]
* lib-src/Makefile.in ($(DESTDIR)${archlibdir}): Avoid non-portable "`\" nesting

Fixes: debbugs:17339

10 years ago* configure.ac: Treat MirBSD as OpenBSD.
Glenn Morris [Tue, 29 Apr 2014 14:49:11 +0000 (07:49 -0700)]
* configure.ac: Treat MirBSD as OpenBSD.

Fixes: debbugs:17339

10 years agoFix bug #17362 with inconsistent usage of @key and @kbd, and key names.
Eli Zaretskii [Tue, 29 Apr 2014 14:45:24 +0000 (17:45 +0300)]
Fix bug #17362 with inconsistent usage of @key and @kbd, and key names.

 doc/emacs/trouble.texi (Quitting, DEL Does Not Delete, Emergency Escape)
 (Bug Criteria): Fix usage of @kbd and @key.  (Bug#17362)
 doc/emacs/text.texi (Words, Pages, Foldout, HTML Mode): Fix usage of @kbd
 and @key.
 doc/emacs/search.texi (Special Isearch, Regexp Search): Fix usage of @kbd
 and @key.
 doc/emacs/screen.texi (Echo Area, Menu Bar): Fix usage of @kbd and @key.
 doc/emacs/rmail.texi (Rmail Scrolling): Fix usage of @kbd and @key.
 doc/emacs/programs.texi (Hungry Delete, Other C Commands): Fix usage of
 @kbd and @key.
 doc/emacs/picture-xtra.texi (Insert in Picture): Fix usage of @kbd and
 @key.
 doc/emacs/mule.texi (Unibyte Mode, Bidirectional Editing): Fix usage of
 @kbd and @key.
 doc/emacs/msdog.texi (Windows Keyboard, Windows Processes): Fix usage of
 @kbd and @key.
 doc/emacs/msdog-xtra.texi (MS-DOS Keyboard, MS-DOS Printing)
 (MS-DOS Processes): Fix usage of @kbd and @key.
 doc/emacs/misc.texi (Shell Ring, Printing Package): Fix usage of @kbd and
 @key.
 doc/emacs/mini.texi (Completion Commands, Minibuffer History): Fix usage
 of @kbd and @key.
 doc/emacs/kmacro.texi (Keyboard Macro Step-Edit): Fix usage of @kbd and
 @key.
 doc/emacs/killing.texi (Deletion, Rectangles, CUA Bindings): Fix usage of
 @kbd and @key.
 doc/emacs/indent.texi (Indentation Commands): Fix usage of @kbd and @key.
 doc/emacs/help.texi (Help Mode, Misc Help): Fix usage of @kbd and @key.
 doc/emacs/glossary.texi (Glossary): Fix usage of @kbd and @key.
 doc/emacs/frames.texi (Speedbar): Fix usage of @kbd and @key.
 doc/emacs/files.texi (Misc File Ops, File Name Cache, File Conveniences)
 (Filesets): Fix usage of @kbd and @key.
 doc/emacs/display.texi (View Mode): Fix usage of @kbd and @key.
 doc/emacs/dired.texi (Image-Dired): Fix usage of @kbd and @key.
 doc/emacs/custom.texi (Modifier Keys, Function Keys, Named ASCII Chars)
 (Init Syntax): Fix usage of @kbd and @key.
 doc/emacs/commands.texi (User Input): Fix usage of @kbd and @key.
 doc/emacs/calendar.texi (Counting Days, General Calendar): Fix usage of
 @kbd and @key.
 doc/emacs/building.texi (Threads Buffer): Fix usage of @kbd and @key.
 doc/emacs/buffers.texi (Select Buffer, Icomplete): Fix usage of @kbd and
 @key.
 doc/emacs/basic.texi (Inserting Text, Erasing, Arguments): Fix usage of
 @kbd and @key.

10 years ago* doc/lispref/processes.texi (Filter Functions, Sentinels):
Stefan Monnier [Tue, 29 Apr 2014 04:14:27 +0000 (00:14 -0400)]
* doc/lispref/processes.texi (Filter Functions, Sentinels):
Advertise add-function.

10 years agoFix a typo in ChangeLog entry of last commit.
Eli Zaretskii [Mon, 28 Apr 2014 19:15:58 +0000 (22:15 +0300)]
Fix a typo in ChangeLog entry of last commit.

10 years agoFix bug 16694 with applying X resources to faces too early.
Matthias Dahl [Mon, 28 Apr 2014 19:14:17 +0000 (22:14 +0300)]
Fix bug 16694 with applying X resources to faces too early.

 lisp/faces.el (face-spec-recalc): Apply X resources only after the
 defface spec has been applied. Thus, X resources are no longer
 overriden by the defface spec which also fixes issues on win32 where
 the toolbar coloring was wrong because it is set through X resources
 and was (wrongfully) overriden.

10 years ago* lisp/textmodes/rst.el (electric-pair-pairs): Declare.
Stefan Monnier [Mon, 28 Apr 2014 15:04:49 +0000 (11:04 -0400)]
* lisp/textmodes/rst.el (electric-pair-pairs): Declare.
(rst-mode): Set it.

Fixes: debbugs:17131

10 years ago* lisp/desktop.el (desktop-value-to-string): Let-bind `print-length' and `print-level...
Juri Linkov [Sun, 27 Apr 2014 08:22:11 +0000 (11:22 +0300)]
* lisp/desktop.el (desktop-value-to-string): Let-bind `print-length' and `print-level' to nil.

Fixes: debbugs:17351

10 years agoFix bug #17308 with inaccurate description of mail signature handling.
Eli Zaretskii [Sat, 26 Apr 2014 07:46:18 +0000 (10:46 +0300)]
Fix bug #17308 with inaccurate description of mail signature handling.

 doc/emacs/sending.texi (Mail Signature): Document signature variables used
 by Message mode.

10 years agoFix bug #17334 with overrunning string bounds when PATH is broken.
Eli Zaretskii [Sat, 26 Apr 2014 07:06:33 +0000 (10:06 +0300)]
Fix bug #17334 with overrunning string bounds when PATH is broken.

 nt/cmdproxy.c (make_absolute): Don't copy more characters from PATH
 than a single directory name can hold.

10 years ago* lisp/battery.el (battery-update): Handle the case where battery
Nicolas Richard [Fri, 25 Apr 2014 18:01:18 +0000 (14:01 -0400)]
* lisp/battery.el (battery-update): Handle the case where battery
status is "N/A".

Fixes: debbugs:17319

10 years ago* automated/tramp-tests.el (top):
Michael Albinus [Fri, 25 Apr 2014 10:35:01 +0000 (12:35 +0200)]
* automated/tramp-tests.el (top):
* automated/file-notify-tests.el (top): Do not disable interactive
passwords in batch mode.
(password-cache-expiry): Set to nil.

10 years agoMinor doc fix for string predicates.
Eli Zaretskii [Thu, 24 Apr 2014 15:11:04 +0000 (18:11 +0300)]
Minor doc fix for string predicates.

 doc/lispref/strings.texi (Text Comparison): Mention
 equal-including-properties for when text properties of the strings
 matter for comparison.

10 years agoFix bug #17331 with display properties on help-echo strings.
Eli Zaretskii [Thu, 24 Apr 2014 15:02:56 +0000 (18:02 +0300)]
Fix bug #17331 with display properties on help-echo strings.

 lisp/tooltip.el (tooltip-show-help-non-mode, tooltip-show-help): Use
 equal-including-properties to compare help-echo strings.

10 years agoUse a mock-up connection method for remote files.
Michael Albinus [Thu, 24 Apr 2014 08:21:58 +0000 (10:21 +0200)]
Use a mock-up connection method for remote files.

* automated/file-notify-tests.el
(file-notify-test-remote-temporary-file-directory):
* automated/tramp-tests.el (tramp-test-temporary-file-directory):
Use a mock-up method as default.
(tramp-test00-availability): Print the used directory name.
(tramp-test33-recursive-load): Fix typo.

10 years ago* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
Leo Liu [Thu, 24 Apr 2014 00:55:18 +0000 (08:55 +0800)]
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
Fix syntax for @.

Fixes: debbugs:17325

10 years agoRequire gv early to break eager macro-expansion cycles
Daniel Colascione [Thu, 24 Apr 2014 00:28:47 +0000 (17:28 -0700)]
Require gv early to break eager macro-expansion cycles

* lisp/emacs-lisp/cl.el (gv): Require gv early to break eager
macro-expansion cycles.

10 years agoFix debugging code for checking the newline cache.
Eli Zaretskii [Wed, 23 Apr 2014 15:21:25 +0000 (18:21 +0300)]
Fix debugging code for checking the newline cache.

 src/search.c (Fnewline_cache_check): Don't try to count newlines
 outside the buffer's restriction, as find_newline doesn't support
 that.

10 years ago* lisp/simple.el (region-active-p): Check there's a mark.
Stefan Monnier [Wed, 23 Apr 2014 12:52:22 +0000 (08:52 -0400)]
* lisp/simple.el (region-active-p): Check there's a mark.

Fixes: debbugs:17324

10 years ago* lisp/simple.el (completion-list-mode-map): Use choose-completion for the
Stefan Monnier [Wed, 23 Apr 2014 02:22:06 +0000 (22:22 -0400)]
* lisp/simple.el (completion-list-mode-map): Use choose-completion for the
mouse binding as well.
(completion-list-mode, completion-setup-function): Adjust docstring and
echo area message accordingly.
* lisp/progmodes/idlwave.el (idlwave-choose-completion): Adjust to new
calling convention of choose-completion.
* lisp/comint.el (comint-dynamic-list-completions):
* lisp/term.el (term-dynamic-list-completions): Accept choose-completion.

Fixes: debbugs:17302

10 years ago* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
Stefan Monnier [Wed, 23 Apr 2014 01:56:18 +0000 (21:56 -0400)]
* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
&, |, +, - and * can't be a division.

Fixes: debbugs:17317

10 years ago* lisp/term/xterm.el (xterm--version-handler): Don't use modern xterm
Stefan Monnier [Tue, 22 Apr 2014 20:35:33 +0000 (16:35 -0400)]
* lisp/term/xterm.el (xterm--version-handler): Don't use modern xterm
features on gnome-terminal.

Fixes: debbugs:16988

10 years agoPort to GCC 4.9.0 with --enable-gcc-warnings.
Paul Eggert [Tue, 22 Apr 2014 20:19:17 +0000 (13:19 -0700)]
Port to GCC 4.9.0 with --enable-gcc-warnings.

* image.c (struct my_jpeg_error_mgr) [lint]: Remove member fp.
All uses removed.
(jpeg_load_body) [lint]: Add a 'volatile' to pacify a buggy GCC in
a way that also works with GCC 4.9.0.

10 years ago* search.c (Fnewline_cache_check): Remove unused locals.
Paul Eggert [Tue, 22 Apr 2014 20:13:59 +0000 (13:13 -0700)]
* search.c (Fnewline_cache_check): Remove unused locals.

10 years ago* dired.el (dired-insert-set-properties): Do not consider
Michael Heerdegen [Tue, 22 Apr 2014 18:17:17 +0000 (20:17 +0200)]
* dired.el (dired-insert-set-properties): Do not consider
subdirectory headings and empty lines to be information that
`dired-hide-details-mode' should hide.  (Bug#17228)

10 years agoAdd debugging facility for the newline cache.
Eli Zaretskii [Tue, 22 Apr 2014 17:37:35 +0000 (20:37 +0300)]
Add debugging facility for the newline cache.
See the discussion in
http://lists.gnu.org/archive/html/emacs-devel/2014-04/msg00295.html
for more detail.

 src/search.c (find_newline1): New subroutine.
 (Fnewline_cache_check): New function.
 (syms_of_search): Defsubr it.

10 years agoMerge Org 8.2.6-1.
Bastien Guerry [Tue, 22 Apr 2014 14:07:45 +0000 (16:07 +0200)]
Merge Org 8.2.6-1.

The last merge was from 8.2.5c, but many important bugs got
fixed between 8.2.5c and 8.2.6-1.

10 years ago* automated/tramp-tests.el (tramp--test-check-files): Remove traces.
Michael Albinus [Tue, 22 Apr 2014 10:52:08 +0000 (12:52 +0200)]
* automated/tramp-tests.el (tramp--test-check-files): Remove traces.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
Michael Albinus [Tue, 22 Apr 2014 10:43:01 +0000 (12:43 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions):
Remove test messages.
(tramp-do-copy-or-rename-file-out-of-band): Do not quote `source'
and `target' twice.

10 years ago* automated/tramp-tests.el (tramp-test30-special-characters):
Michael Albinus [Tue, 22 Apr 2014 07:50:58 +0000 (09:50 +0200)]
* automated/tramp-tests.el (tramp-test30-special-characters):
Remove test for backslash.

10 years ago* lisp/dframe.el (dframe-get-focus): Remove `hook' argument.
Stefan Monnier [Mon, 21 Apr 2014 21:43:17 +0000 (17:43 -0400)]
* lisp/dframe.el (dframe-get-focus): Remove `hook' argument.
* lisp/speedbar.el (speedbar-get-focus): Run the "hook" afterwards instead.

Fixes: debbugs:17311

10 years ago* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name.
Stefan Monnier [Mon, 21 Apr 2014 21:18:12 +0000 (17:18 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--loop-let): Avoid `nil' as var name.

10 years ago* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Set
Michael Albinus [Mon, 21 Apr 2014 21:04:25 +0000 (23:04 +0200)]
* net/tramp-sh.el (tramp-sh-handle-file-name-all-completions): Set
"IFS=" when using read builtin, in order to preserve spaces in
the file name.  Add test messages for hunting a bug on hydra.
(tramp-get-ls-command): Undo using "-b" argument.  It doesn't help.

10 years ago* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
Stefan Monnier [Mon, 21 Apr 2014 20:31:22 +0000 (16:31 -0400)]
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
Don't prettify a word within a symbol.

10 years agoFix freezing with scroll bars of GTK3 Toolkit.
Jarek Czekalski [Mon, 21 Apr 2014 15:55:28 +0000 (11:55 -0400)]
Fix freezing with scroll bars of GTK3 Toolkit.
* src/keyboard.c (unblock_input): Add comment.
* src/xgselect.c (xg_select): Prevent Glib main loop recursion.

Fixes: debbugs:15801

10 years agoMinor fixes to the docs.
Eli Zaretskii [Mon, 21 Apr 2014 14:50:19 +0000 (17:50 +0300)]
Minor fixes to the docs.

 doc/emacs/buffers.texi (Uniquify): Clarify the default uniquification.
 doc/emacs/indent.texi (Tab Stops): Improve wording.
 doc/emacs/cmdargs.texi (General Variables): Improve docs of
 EMACSLOADPATH.  Index all the environment variables.
 (Misc Variables): Index all the environment variables.

 doc/lispref/text.texi (Registers): Document register-read-with-preview.
 doc/lispref/internals.texi (Building Emacs): Improve indexing.

10 years agodoc/emacs/ChangeLog: Typo fix.
Eli Zaretskii [Mon, 21 Apr 2014 14:01:56 +0000 (17:01 +0300)]
doc/emacs/ChangeLog: Typo fix.

10 years agoMention that overlay priority doesn't have to be nil or an integer.
Eli Zaretskii [Mon, 21 Apr 2014 13:46:25 +0000 (16:46 +0300)]
Mention that overlay priority doesn't have to be nil or an integer.

Fixes: debbugs:17234

10 years agoFix redefinition warning in MinGW64 build.
Eli Zaretskii [Mon, 21 Apr 2014 06:37:21 +0000 (09:37 +0300)]
Fix redefinition warning in MinGW64 build.

 nt/inc/ms-w32.h (lseek): Define only if not already a macro.
 Suggested by Fabrice Popineau <fabrice.popineau@gmail.com>.

10 years agoSpelling fixes.
Paul Eggert [Mon, 21 Apr 2014 00:31:59 +0000 (17:31 -0700)]
Spelling fixes.

10 years ago* automated/tramp-tests.el (tramp-test19-directory-files-and-attributes)
Michael Albinus [Sun, 20 Apr 2014 21:39:43 +0000 (23:39 +0200)]
* automated/tramp-tests.el (tramp-test19-directory-files-and-attributes)
(tramp-test22-file-times): Check for `file-attributes' equality
only if there is a usable timestamp.
(tramp--test-check-files): Do not use `copy-sequence'.

10 years ago* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.
Michael Albinus [Sun, 20 Apr 2014 21:35:55 +0000 (23:35 +0200)]
* net/tramp-sh.el (tramp-get-ls-command): Use "-b" argument if possible.

10 years agoImprove NEWS entry for dired-hide-details-mode.
Eli Zaretskii [Sun, 20 Apr 2014 14:50:13 +0000 (17:50 +0300)]
Improve NEWS entry for dired-hide-details-mode.

10 years agoFix commit date of an entry in lisp/ChangeLog.16.
Eli Zaretskii [Sun, 20 Apr 2014 14:45:19 +0000 (17:45 +0300)]
Fix commit date of an entry in lisp/ChangeLog.16.

10 years agoInstrument `tramp--test-check-files' in order to get traces on hydra.
Michael Albinus [Sat, 19 Apr 2014 21:05:30 +0000 (23:05 +0200)]
Instrument `tramp--test-check-files' in order to get traces on hydra.

10 years ago* src/intervals.c (rotate_right, rotate_left): Fix up length computation.
Stefan Monnier [Sat, 19 Apr 2014 18:13:26 +0000 (14:13 -0400)]
* src/intervals.c (rotate_right, rotate_left): Fix up length computation.
Also change identifiers to match the comments, and add more assertions.

Fixes: debbugs:16234

10 years ago* lisp/progmodes/sh-script.el (sh-smie--sh-keyword-p): Handle variable
Stefan Monnier [Sat, 19 Apr 2014 17:14:27 +0000 (13:14 -0400)]
* lisp/progmodes/sh-script.el (sh-smie--sh-keyword-p): Handle variable
assignments such as "case=hello".

Fixes: debbugs:17297

10 years ago* automated/tramp-tests.el (tramp--test-check-files): Extend test.
Michael Albinus [Sat, 19 Apr 2014 14:14:26 +0000 (16:14 +0200)]
* automated/tramp-tests.el (tramp--test-check-files): Extend test.
(tramp-test31-utf8): Let-bind also `file-name-coding-system'.

10 years ago* automated/tramp-tests.el (tramp-copy-size-limit): Set to nil.
Michael Albinus [Fri, 18 Apr 2014 18:58:13 +0000 (20:58 +0200)]
* automated/tramp-tests.el (tramp-copy-size-limit): Set to nil.
(tramp--test-make-temp-name): Optional argument LOCAL.
(tramp--instrument-test-case): Show messages.  Catch also `quit'.
(tramp-test10-write-region): No special test for out-of-band copy
needed anymore.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links): Extend tests.
(tramp-test20-file-modes): More robust check for user "root".
(tramp--test-check-files): New defun.
(tramp-test30-special-characters, tramp-test33-recursive-load)
(tramp-test34-unload): New tests.
(tramp-test31-utf8, tramp-test32-asynchronous-requests):  Rename.

10 years agoAvoid recursive load of tramp.el
Michael Albinus [Fri, 18 Apr 2014 18:57:04 +0000 (20:57 +0200)]
Avoid recursive load of tramp.el

* net/tramp.el (tramp-run-real-handler, tramp-file-name-handler):
Do not autoload.
(tramp-file-name-handler, tramp-completion-file-name-handler):
Revert patch from 2014-04-10, it isn't necessary anymore.
(tramp-autoload-file-name-handler)
(tramp-register-autoload-file-name-handlers): New defuns.
(top): Autoload call of `tramp-register-autoload-file-name-handlers'.
(tramp-register-file-name-handlers): Remove also
`tramp-autoload-file-name-handler' from `file-name-handler-list'.
Do not autoload its invocation, but eval it after loading of 'tramp.

* net/tramp-adb.el (tramp-unload-hook): Unload `tramp-adb'.

* net/tramp-compat.el (tramp-unload-hook): Unload `tramp-loaddefs'.

10 years agoFix bug #17288 with inserting left truncation glyph under linum-mode.
Eli Zaretskii [Fri, 18 Apr 2014 08:35:09 +0000 (11:35 +0300)]
Fix bug #17288 with inserting left truncation glyph under linum-mode.

 src/xdisp.c (insert_left_trunc_glyphs): Ensure the left truncation
 glyph is written to TEXT_AREA of the temporary glyph_row.