bpt/emacs.git
9 years ago* src/keymap.c (silly_event_symbol_error): Don't recommend the use of strings.
Stefan Monnier [Thu, 12 Jun 2014 14:55:48 +0000 (10:55 -0400)]
* src/keymap.c (silly_event_symbol_error): Don't recommend the use of strings.

9 years ago* lisp/hippie-exp.el (he--all-buffers): New function.
Stefan Monnier [Thu, 12 Jun 2014 14:35:09 +0000 (10:35 -0400)]
* lisp/hippie-exp.el (he--all-buffers): New function.
(try-expand-line-all-buffers, try-expand-list-all-buffers)
(try-expand-dabbrev-all-buffers): Use it.

9 years ago* lisp/hippie-exp.el (try-expand-line-all-buffers)
Emilio C. Lopes [Thu, 12 Jun 2014 13:45:52 +0000 (09:45 -0400)]
* lisp/hippie-exp.el (try-expand-line-all-buffers)
(try-expand-list-all-buffers, try-expand-dabbrev-all-buffers):
Read hippie-expand-only-buffers and hippie-expand-ignore-buffers in the
original buffer, in case they're buffer-local.

9 years agoAdding support for SES local printer functions
Vincent Belaïche [Thu, 12 Jun 2014 06:04:48 +0000 (08:04 +0200)]
Adding support for SES local printer functions

9 years ago* lisp/progmodes/python.el (import skeleton): New skeleton.
Matthias Meulien [Thu, 12 Jun 2014 02:35:26 +0000 (22:35 -0400)]
* lisp/progmodes/python.el (import skeleton): New skeleton.
(python-mode-map): Bind it.

Fixes: debbugs:17672

9 years ago* lisp/ffap.el (ffap-lax-url): New var.
Ivan Andrus [Thu, 12 Jun 2014 02:29:50 +0000 (22:29 -0400)]
* lisp/ffap.el (ffap-lax-url): New var.
(ffap-url-at-point): Use it.
(ffap-file-at-point): Avoid returning just "/".

Fixes: debbugs:17723

9 years ago* lisp/progmodes/python.el (class skeleton): Don't erase last char of class
Matthias Meulien [Thu, 12 Jun 2014 02:24:24 +0000 (22:24 -0400)]
* lisp/progmodes/python.el (class skeleton): Don't erase last char of class
name.

Fixes: debbugs:17683

9 years ago* lisp/help.el (where-is): Use `default' arg of completing-read.
Cameron Desautels [Thu, 12 Jun 2014 02:18:54 +0000 (22:18 -0400)]
* lisp/help.el (where-is): Use `default' arg of completing-read.

Fixes: debbugs:17705

9 years ago* lisp/files.el (auto-mode-alist): Map .ad files to xdefaults-mode.
Kevin Ryde [Thu, 12 Jun 2014 02:14:45 +0000 (22:14 -0400)]
* lisp/files.el (auto-mode-alist): Map .ad files to xdefaults-mode.

Fixes: debbugs:17745

9 years ago* lisp/international/mule-cmds.el: Use lexical-binding.
Stefan Monnier [Thu, 12 Jun 2014 01:47:28 +0000 (21:47 -0400)]
* lisp/international/mule-cmds.el: Use lexical-binding.
(ucs-names): Simplify.

9 years ago* lisp/progmodes/python.el (run-python): Use read-shell-command.
Eric Hanchrow [Thu, 12 Jun 2014 01:45:33 +0000 (21:45 -0400)]
* lisp/progmodes/python.el (run-python): Use read-shell-command.

9 years agoSimplify doc/misc/Makefile.in with GNU Make features
Glenn Morris [Thu, 12 Jun 2014 01:00:57 +0000 (21:00 -0400)]
Simplify doc/misc/Makefile.in with GNU Make features

* doc/misc/Makefile.in (mkinfodir): Remove.
(${buildinfodir}): Generate using an order-only prerequisite.
(.dvi.ps): Replace with pattern rule.
($INFO_TARGETS): Mark as PHONY.
(${buildinfodir}): New rule.
(EXTRA_OPTS, need_emacsver, need_emacsver_prefix): New variables.
(${buildinfodir}/%.info, %.dvi, %.pdf, %.html, %.ps):
New pattern rules, replacing numerous previous explicit rules.
(info_template): New definition.
(gnus.dvi, gnus.pdf): Use distinct intermediate files.
(mostlyclean): Adjust for above gnus change.

9 years ago* lisp/rect.el: Make it possible to move bounds past EOL or into TABs.
Stefan Monnier [Wed, 11 Jun 2014 21:51:44 +0000 (17:51 -0400)]
* lisp/rect.el: Make it possible to move bounds past EOL or into TABs.
(operate-on-rectangle): Use apply-on-rectangle.
(rectangle--mark-crutches): New var.
(rectangle--pos-cols, rectangle--col-pos, rectangle--point-col)
(rectangle--crutches, rectangle--reset-crutches): New functions.
(apply-on-rectangle): Obey crutches.  Avoid setq.
Fix missing final iteration if end is at EOB&BOL.
(rectangle-mark-mode-map): Add remap bindings for
exchange-point-and-mark and char/line movements.
(rectangle--*-char): New function.
(rectangle-exchange-point-and-mark, rectangle-right-char)
(rectangle-left-char, rectangle-forward-char)
(rectangle-backward-char, rectangle-next-line)
(rectangle-previous-line): New commands.
(rectangle--place-cursor): New function.
(rectangle--highlight-for-redisplay): Use it.  Use apply-on-rectangle.

9 years ago* etc/NEWS: Relocate entry
Glenn Morris [Wed, 11 Jun 2014 19:34:43 +0000 (15:34 -0400)]
* etc/NEWS: Relocate entry

9 years agoMerge from emacs-24; up to 2014-06-02T14:17:07Z!michael.albinus@gmx.de
Glenn Morris [Wed, 11 Jun 2014 19:33:14 +0000 (15:33 -0400)]
Merge from emacs-24; up to 2014-06-02T14:17:07Z!michael.albinus@gmx.de

9 years agoFix memory leaks
Jan Djärv [Wed, 11 Jun 2014 17:57:51 +0000 (19:57 +0200)]
Fix memory leaks

* macfont.m (macfont_draw): positions where not freed.

* nsterm.h (EmacsApp): Always compile in shouldKeepRunning, isFirst
on Cocoa.

* nsterm.m (run): Always compile for Cocoa.  Use runtime check to
determine 10.9.

Fixes: debbugs:17751

9 years agoSpelling fix.
Paul Eggert [Wed, 11 Jun 2014 17:54:07 +0000 (10:54 -0700)]
Spelling fix.

9 years agoUse a shell function in configure.ac to cut down on code duplication.
Paul Eggert [Wed, 11 Jun 2014 17:51:27 +0000 (10:51 -0700)]
Use a shell function in configure.ac to cut down on code duplication.

* configure.ac (emacs_check_gnu_make): New shell function.
Use it to avoid duplication when checking for GNU Make.
It's OK for 'configure' to use shell functions these days,
as long as we follow the advice in the 'Shell Functions'
section of the Autoconf manual.

9 years agoFix bug #17744 with cursor motion near overlay string with 'cursor' prop.
Eli Zaretskii [Wed, 11 Jun 2014 16:11:32 +0000 (19:11 +0300)]
Fix bug #17744 with cursor motion near overlay string with 'cursor' prop.

 src/xdisp.c (set_cursor_from_row): Fix an off-by-one error when
 matching overlay strings with 'cursor' property against buffer
 positions traversed in the glyph row.

9 years ago* configure.ac: Tweak previous change, for make 10+
Glenn Morris [Wed, 11 Jun 2014 03:33:34 +0000 (20:33 -0700)]
* configure.ac: Tweak previous change, for make 10+

9 years ago* configure.ac: Require at least version 3.81 of GNU make.
Glenn Morris [Wed, 11 Jun 2014 03:03:40 +0000 (20:03 -0700)]
* configure.ac: Require at least version 3.81 of GNU make.
It's 8 years old and has some useful features not in older versions.

* etc/NEWS: Mention this.

9 years ago* doc/misc/Makefile.in (INFO_INSTALL): Update for 2013-08-28 DOCMISC_W32 change
Glenn Morris [Tue, 10 Jun 2014 21:07:22 +0000 (17:07 -0400)]
* doc/misc/Makefile.in (INFO_INSTALL): Update for 2013-08-28 DOCMISC_W32 change

9 years agoRely on AC_CANONICAL_HOST to detect whether we're using mingw.
Paul Eggert [Tue, 10 Jun 2014 19:43:13 +0000 (12:43 -0700)]
Rely on AC_CANONICAL_HOST to detect whether we're using mingw.

See the thread containing:
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00206.html
* configure.ac (AC_CANONICAL_HOST): Invoke this as early as we
can, which is just after AM_INIT_AUTOMAKE.  Then check for mingw
just after that.

9 years ago* frame.h (window_system_available) [!HAVE_WINDOW_SYSTEM]: Always false.
Dmitry Antipov [Tue, 10 Jun 2014 05:28:00 +0000 (09:28 +0400)]
* frame.h (window_system_available) [!HAVE_WINDOW_SYSTEM]: Always false.
* frame.c (window_system_available) [HAVE_WINDOW_SYSTEM]: Now here.

9 years ago* dispextern.h (last_tool_bar_item): Remove declaration.
Dmitry Antipov [Tue, 10 Jun 2014 04:55:03 +0000 (08:55 +0400)]
* dispextern.h (last_tool_bar_item): Remove declaration.
* frame.h (struct frame): New member last_tool_bar_item.
* frame.c (make_frame): Initialize it.
* xdisp.c (toplevel): Remove last_tool_bar_item.
(handle_tool_bar_click, note_tool_bar_highlight):
* w32term.c (w32_read_socket, w32_initialize):
* xterm.c (handle_one_xevent, x_initialize): Adjust users.

9 years ago* dispextern.h (struct face) [HAVE_XFT]: Ifdef 'extra' member.
Dmitry Antipov [Tue, 10 Jun 2014 03:32:36 +0000 (07:32 +0400)]
* dispextern.h (struct face) [HAVE_XFT]: Ifdef 'extra' member.
* font.c (font_done_for_face):
* xface.c (realize_non_ascii_face): Adjust user.
* font.h (struct font_driver): Convert 'prepare_face' to return
void because its return value is never used anyway.
* xfont.c (xfont_prepare_face): Return void.
* xftfont.c (xftfont_prepare_face): Likewise.  Use xmalloc.
(xftfont_done_face): Use xfree.

9 years ago* dispextern.h (PREPARE_FACE_FOR_DISPLAY): Remove as a duplicate of ...
Dmitry Antipov [Tue, 10 Jun 2014 03:13:41 +0000 (07:13 +0400)]
* dispextern.h (PREPARE_FACE_FOR_DISPLAY): Remove as a duplicate of ...
* xfaces.c (prepare_face_for_display) [HAVE_WINDOW_SYSTEM]: ... this
function.  Also adjust comment.
* fringe.c, w32term.c, xdisp.c, xterm.c: All users changed.

9 years agoAdd .info extension to @setfilename commands in doc/
Glenn Morris [Tue, 10 Jun 2014 02:20:31 +0000 (22:20 -0400)]
Add .info extension to @setfilename commands in doc/
This makes no difference to anything, since we always use makeinfo -o,
but it makes automake happier, if we ever decide to use that.

9 years ago* Makefile.in (AUTOCONF, AUTOMAKE, AUTOHEADER, ACLOCAL): New, set by configure
Glenn Morris [Tue, 10 Jun 2014 02:15:49 +0000 (22:15 -0400)]
* Makefile.in (AUTOCONF, AUTOMAKE, AUTOHEADER, ACLOCAL): New, set by configure
Use throughout where appropriate.

9 years agoGet rid of the INFO_EXT variable
Glenn Morris [Tue, 10 Jun 2014 02:11:38 +0000 (22:11 -0400)]
Get rid of the INFO_EXT variable
It's never been anything more than pointless complexity

* configure.ac (INFO_EXT, INFO_OPTS): Remove output variables.

* Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.

* doc/emacs/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.

* doc/lispintro/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.

* doc/lispref/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.

* doc/misc/Makefile.in (INFO_EXT): Remove and replace by ".info" throughout.
(INFO_OPTS): Set directly rather than with configure.

9 years agoleim/Makefile.in: use GNU Make features to simplify and parallelize.
Glenn Morris [Tue, 10 Jun 2014 01:44:11 +0000 (21:44 -0400)]
leim/Makefile.in: use GNU Make features to simplify and parallelize.

* leim/Makefile.in (CHINESE_TIT, TIT_SOURCES, MISC_SOURCES, changed.tit)
(changed.misc): Remove.
(${leimdir}/quail, ${leimdir}/ja-dic): Create using order-only prereq.
(misc_convert): New.
(${leimdir}/quail/%.el, ${leimdir}/quail/CT%.el)
(${leimdir}/quail/PY.el, ${leimdir}/quail/ZIRANMA.el)
(${leimdir}/quail/tsang-%.el, ${leimdir}/quail/quick-%.el): Use pattern rules.
(${leimdir}/leim-list.el, ${leimdir}/ja-dic/ja-dic.el):
Use automatic variables.
(bootstrap-clean): No changed.* files to delete any more.

* .bzrignore: No leim/changed.* files to ignore any more.

9 years agoSay (accept-process-output P)'s result pertains to P if P is non-nil.
Paul Eggert [Mon, 9 Jun 2014 20:31:06 +0000 (13:31 -0700)]
Say (accept-process-output P)'s result pertains to P if P is non-nil.

* doc/lispref/processes.texi (Accepting Output):
* src/process.c (Faccept_process_output)
(wait_reading_process_output): Mention that if PROCESS is non-nil,
the return value is about PROCESS, not about other processes.

9 years agoFurther adjustments to mark_object and friends.
Dmitry Antipov [Mon, 9 Jun 2014 15:03:49 +0000 (19:03 +0400)]
Further adjustments to mark_object and friends.
Now the mark_object's stack is just 32 bytes on a 64-bit
system, which means extra 20% off the stack usage.
* alloc.c (mark_save_value): As before, refactored out from ...
(mark_object): ... adjusted user.  Also add comment.

9 years agoFix core dump after a dropped X connection.
Paul Eggert [Mon, 9 Jun 2014 14:50:57 +0000 (07:50 -0700)]
Fix core dump after a dropped X connection.

* sysdep.c (stuff_char): Don't abort merely because the selected frame
is dead, as we may be shutting down.

Fixes: debbugs:17704

9 years agoNEWS cleanup: Remove +++/--- markup, reorder, copyedits, etc
Glenn Morris [Mon, 9 Jun 2014 00:59:28 +0000 (17:59 -0700)]
NEWS cleanup: Remove +++/--- markup, reorder, copyedits, etc

9 years agoMerge from emacs-24; up to 2014-06-02T11:35:40Z!michael.albinus@gmx.de
Glenn Morris [Sun, 8 Jun 2014 23:41:43 +0000 (16:41 -0700)]
Merge from emacs-24; up to 2014-06-02T11:35:40Z!michael.albinus@gmx.de

9 years agoDoc fixes: markup (mainly nil -> @code{nil})
Glenn Morris [Sun, 8 Jun 2014 23:39:23 +0000 (16:39 -0700)]
Doc fixes: markup (mainly nil -> @code{nil})

9 years agoSimplify info.info for the stand-alone reader
Karl Berry [Sun, 8 Jun 2014 19:30:13 +0000 (22:30 +0300)]
Simplify info.info for the stand-alone reader

 doc/misc/info.texi (Help-^L): "mode line", "screenful",
 stand-alone and Emacs Info both use the mode line.
 Use x instead of weird C-x 0 to get rid of help msg
 in standalone Info.

9 years agoIf a C name must be extern on some platforms, make it extern on all.
Paul Eggert [Sun, 8 Jun 2014 18:27:22 +0000 (11:27 -0700)]
If a C name must be extern on some platforms, make it extern on all.

* dispextern.h (set_vertical_scroll_bar, erase_phys_cursor)
(load_color):
* font.h (ftxfont_driver) [HAVE_XFT]:
* keyboard.h (menu_items_inuse, ignore_mouse_drag_p, make_ctrl_char):
* lisp.h (get_frame_param):
* menu.h (tty_menu_show):
* process.h (conv_sockaddr_to_lisp, catch_child_signal):
* termhooks.h (encode_terminal_code):
* xterm.h (x_menu_wait_for_event):
Always declare.
* frame.c (get_frame_param):
* fringe.c (max_used_fringe_bitmap):
* ftxfont.c (ftxfont_driver):
* keyboard.c (ignore_mouse_drag_p, make_ctrl_char):
* menu.c (menu_items_inuse):
* process.c (conv_sockaddr_to_lisp, catch_child_signal):
* term.c (encode_terminal_code, tty_menu_show):
* xdisp.c (set_vertical_scroll_bar, erase_phys_cursor):
* xfaces.c (load_color):
* xmenu.c (x_menu_wait_for_event):
Now always extern.

9 years agoSmall doc updates re initial-buffer-choice
Glenn Morris [Sun, 8 Jun 2014 17:46:51 +0000 (10:46 -0700)]
Small doc updates re initial-buffer-choice

* doc/emacs/entering.texi (Entering Emacs): Small fix re initial-buffer-choice.

* doc/emacs/misc.texi (emacsclient Options): Copyedit.

* doc/lispref/os.texi (Startup Summary): Small fix for initial-buffer-choice.

* lisp/startup.el (initial-buffer-choice): Doc fix.
Reset :version (adding an option does not merit a :version bump).

9 years agoChange object marking routines to minimize stack usage.
Dmitry Antipov [Sun, 8 Jun 2014 15:06:03 +0000 (19:06 +0400)]
Change object marking routines to minimize stack usage.
This change moves a few cold paths from mark_object to NO_INLINE
functions and adjusts symbol marking loop.  According to GCC 4.8.2
-Wstack-usage, this reduces mark_object's stack usage from 80 to
48 bytes on a 64-bit system.  For a long byte-force-recompile runs,
stack usage at the mark phase is reduced up to 28%.  Surprisingly,
it also gains up to 3% in speed (with default '-O2 -g3' flags).
* alloc.c (mark_compiled, mark_localized_symbol): New functions,
refactored out from ...
(mark_object): ... adjusted user.  Also mark symbols in a tight
inner loop.
(mark_face_cache): Add NO_INLINE.

9 years agoDoc edits re uniquify
Glenn Morris [Sun, 8 Jun 2014 07:41:27 +0000 (00:41 -0700)]
Doc edits re uniquify

* doc/emacs/buffers.texi (Uniquify): Copyedits.

* doc/emacs/files.texi (Visiting): Update for uniquify changes.

* doc/lispref/files.texi (Subroutines of Visiting): Mention uniquify.

* doc/misc/vip.texi (Files): Defer to Emacs manual for uniquify details.

* lisp/bookmark.el (bookmark-load): Doc fix.

* lisp/uniquify.el (uniquify-buffer-name-style): Doc fix.

* lisp/files.el: Comment.

* etc/NEWS: Related edit.

9 years agoinfo.texi tweaks re S-SPC
Glenn Morris [Sun, 8 Jun 2014 07:00:20 +0000 (00:00 -0700)]
info.texi tweaks re S-SPC

* doc/misc/info.texi (Help-Small-Screen): Clarify details of S-SPC.
(Help-Small-Screen, Help-]): Do not mention S-SPC.
(Emacs Info Variables): Markup fix.

9 years agoDoc markup fixes re SPC, RET
Glenn Morris [Sun, 8 Jun 2014 06:57:15 +0000 (23:57 -0700)]
Doc markup fixes re SPC, RET

* doc/emacs/dired.texi (Marks vs Flags):
* doc/emacs/rmail.texi (Rmail Scrolling):
* doc/misc/ebrowse.texi (Source Display, Finding/Viewing):
* doc/misc/erc.texi (Sample Session):
* doc/misc/ses.texi (The Basics):
* doc/misc/todo-mode.texi (Moving and Deleting Items):
* doc/misc/woman.texi (Navigation):
Markup fixes re SPC, RET.

9 years ago* etc/themes/deeper-blue-theme.el: Use another fix.
Leo Liu [Sun, 8 Jun 2014 03:25:22 +0000 (11:25 +0800)]
* etc/themes/deeper-blue-theme.el: Use another fix.

Fixes: debbugs:17695

9 years ago* doc/emacs/help.texi (Help, Misc Help): Copyedits.
Glenn Morris [Sun, 8 Jun 2014 01:37:23 +0000 (18:37 -0700)]
* doc/emacs/help.texi (Help, Misc Help): Copyedits.

9 years agoDoc tweaks re text-mode menus
Glenn Morris [Sun, 8 Jun 2014 01:20:35 +0000 (18:20 -0700)]
Doc tweaks re text-mode menus

* doc/emacs/screen.texi (Menu Bar): Copyedits.

* doc/emacs/msdog.texi (Windows Keyboard): F10 menus are now a general feature.

9 years agoDoc tweak re fullscreen/maximize
Glenn Morris [Sun, 8 Jun 2014 01:14:58 +0000 (18:14 -0700)]
Doc tweak re fullscreen/maximize

* doc/emacs/frames.texi (Frame Commands): Copyedits re M-F10, F11.

* doc/emacs/cmdargs.texi (Window Size X): Copyedits.

9 years ago* src/fileio.c (write-region-inhibit-fsync): Doc tweak.
Glenn Morris [Sun, 8 Jun 2014 00:59:05 +0000 (17:59 -0700)]
* src/fileio.c (write-region-inhibit-fsync): Doc tweak.

9 years agoDoc tweaks re < etc
Glenn Morris [Sun, 8 Jun 2014 00:51:10 +0000 (17:51 -0700)]
Doc tweaks re < etc

* doc/lispref/numbers.texi (Comparison of Numbers): Copyedits.

* src/data.c (Flss, Fgtr, Fleq, Fgeq): Doc tweaks.

9 years agoMerge from emacs-24; up to 2014-06-01T23:37:59Z!eggert@cs.ucla.edu
Glenn Morris [Sun, 8 Jun 2014 00:35:27 +0000 (17:35 -0700)]
Merge from emacs-24; up to 2014-06-01T23:37:59Z!eggert@cs.ucla.edu

9 years agoSome Acknowledgments updates for the manual
Glenn Morris [Sun, 8 Jun 2014 00:19:17 +0000 (17:19 -0700)]
Some Acknowledgments updates for the manual

* doc/emacs/ack.texi (Acknowledgments): Updates.

* doc/emacs/emacs.texi (Acknowledgments): Updates.

9 years agoDoc tweaks re prettify-symbols-mode
Glenn Morris [Sat, 7 Jun 2014 23:39:40 +0000 (16:39 -0700)]
Doc tweaks re prettify-symbols-mode

* doc/emacs/programs.texi (Prettifying Symbols): Remove node.
(Misc for Programs): Mention more briefly here.

* doc/emacs emacs.texi (Top): Update menu.

9 years agoDocument latest changes in make_lispy_position.
Eli Zaretskii [Sat, 7 Jun 2014 14:29:48 +0000 (17:29 +0300)]
Document latest changes in make_lispy_position.

 doc/lispref/commands.texi (Click Events): Update contents of click event's
 position list due to last changes in make_lispy_position.

  etc/NEWS: Mention the incompatible change.

9 years agoFix last commit.
Eli Zaretskii [Sat, 7 Jun 2014 07:25:49 +0000 (10:25 +0300)]
Fix last commit.

 src/term.c (tty_menu_show) [WINDOWSNT]: Make tty_menu_show extern
 only for WINDOWSNT.
 src/menu.h (tty_menu_show) [WINDOWSNT]: Declare extern only for WINDOWSNT.

9 years agoPort better to AIX.
Paul Eggert [Sat, 7 Jun 2014 06:10:39 +0000 (23:10 -0700)]
Port better to AIX.

* configure.ac (with_xpm_set): New shell var.
(_THREAD_SAFE): Define on AIX if HAVE_PTHREAD.
(with_xpm): Default to 'no' on AIX.
(LIBXPM): Append -lXpm if -lXaw is also used, as the latter
requires the former on AIX.

Fixes: debbugs:17598

9 years ago* lisp/desktop.el: Activate auto-saving on window configuration changes.
Juri Linkov [Fri, 6 Jun 2014 23:38:40 +0000 (02:38 +0300)]
* lisp/desktop.el: Activate auto-saving on window configuration changes.
(desktop-save-mode, desktop-auto-save-timeout): Add/remove
`desktop-auto-save-set-timer' to/from `window-configuration-change-hook'.
(desktop-auto-save-set-timer): Change REPEAT arg of
`run-with-idle-timer' from t to nil.
http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00147.html

9 years ago* term.c (tty_menu_show) [!HAVE_NTGUI]: Now static.
Paul Eggert [Fri, 6 Jun 2014 19:33:19 +0000 (12:33 -0700)]
* term.c (tty_menu_show) [!HAVE_NTGUI]: Now static.

* menu.h (tty_menu_show) [!HAVE_NTGUI]: Omit extern decl.

9 years ago* lisp/vc/vc-hg.el (vc-hg-create-tag, vc-hg-retrieve-tag): New functions.
Santiago Payà i Miralta [Fri, 6 Jun 2014 16:38:44 +0000 (12:38 -0400)]
* lisp/vc/vc-hg.el (vc-hg-create-tag, vc-hg-retrieve-tag): New functions.

Fixes: debbugs:17586

9 years ago* lisp/vc/vc-hg.el (vc-hg-working-revision): Use "hg parent" and
Santiago Payà i Miralta [Fri, 6 Jun 2014 16:29:55 +0000 (12:29 -0400)]
* lisp/vc/vc-hg.el (vc-hg-working-revision): Use "hg parent" and
vc-hg-command.

Fixes: debbugs:17570

9 years ago* lisp/vc/vc-hg.el (vc-hg-log-graph): New var.
Santiago Payà i Miralta [Fri, 6 Jun 2014 16:11:53 +0000 (12:11 -0400)]
* lisp/vc/vc-hg.el (vc-hg-log-graph): New var.
(vc-hg-print-log): Use it.
(vc-hg-root-log-format): Include branch name and bookmarks; ignore
graph output.

Fixes: debbugs:17515

9 years ago* src/window.c (Frecenter): Signal an error if window-buffer is not
Stefan Monnier [Fri, 6 Jun 2014 14:37:05 +0000 (10:37 -0400)]
* src/window.c (Frecenter): Signal an error if window-buffer is not
current-buffer.

9 years ago* lisp/international/mule-cmds.el (ucs-names): Add special entry for BEL.
Stefan Monnier [Fri, 6 Jun 2014 14:25:39 +0000 (10:25 -0400)]
* lisp/international/mule-cmds.el (ucs-names): Add special entry for BEL.

Fixes: debbugs:17702

9 years agoDoc updates re window-setup-hook
Glenn Morris [Fri, 6 Jun 2014 07:19:23 +0000 (00:19 -0700)]
Doc updates re window-setup-hook

* lisp/startup.el (window-setup-hook): Doc fix.

* doc/lispref/display.texi (Window Systems): Remove window-setup-hook.

* doc/lispref/os.texi (Startup Summary, Init File):
Improve description of window-setup-hook.
(Terminal-Specific): Update window-setup-hook cross-reference.

* doc/lispref/hooks.texi (Standard Hooks):
Update window-setup-hook cross-reference.

9 years ago* admin/FOR-RELEASE: Mention ack.texi
Glenn Morris [Fri, 6 Jun 2014 06:49:17 +0000 (23:49 -0700)]
* admin/FOR-RELEASE: Mention ack.texi

9 years agoDocument incompatible overlay priority change
Glenn Morris [Fri, 6 Jun 2014 06:45:16 +0000 (23:45 -0700)]
Document incompatible overlay priority change

* doc/lispref/display.texi (Overlay Properties): Update re priority.

* etc/NEWS: Related edit.

Fixes: debbugs:17234

9 years ago* lisp/mouse.el (mouse-posn-property): Ignore buffer position info when the
Stefan Monnier [Fri, 6 Jun 2014 02:35:17 +0000 (22:35 -0400)]
* lisp/mouse.el (mouse-posn-property): Ignore buffer position info when the
even happened elsewhere.
* src/keyboard.c (make_lispy_position): Don't include a buffer position in
mode/header-line mouse events.

9 years ago* src/keyboard.c (read_char): Handle (t . <event>) in the second use of
Stefan Monnier [Fri, 6 Jun 2014 02:22:40 +0000 (22:22 -0400)]
* src/keyboard.c (read_char): Handle (t . <event>) in the second use of
Vunread_command_events.

Fixes: debbugs:17650

9 years ago* xterm.c (x_setup_pointer_blanking): Conditionally
Dmitry Antipov [Fri, 6 Jun 2014 01:11:26 +0000 (05:11 +0400)]
* xterm.c (x_setup_pointer_blanking): Conditionally
probe Xfixes until this stuff is stabilized (Bug#17609).

9 years ago* emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
Mario Lang [Fri, 6 Jun 2014 00:39:22 +0000 (02:39 +0200)]
* emacs-lisp/tabulated-list.el (tabulated-list-print): Only call
`recenter' if `current-buffer' is equal to `window-buffer'.

9 years ago* etc/themes/deeper-blue-theme.el (diff-added, diff-changed, diff-removed):
Juri Linkov [Thu, 5 Jun 2014 23:31:46 +0000 (02:31 +0300)]
* etc/themes/deeper-blue-theme.el (diff-added, diff-changed, diff-removed):
Set face definitions explicitly.  Inherit indicator faces from them.

Fixes: debbugs:17695

9 years ago* emacs-lisp/cl-macs.el (cl-macrolet): Simplify last change.
Leo Liu [Thu, 5 Jun 2014 23:08:59 +0000 (07:08 +0800)]
* emacs-lisp/cl-macs.el (cl-macrolet): Simplify last change.

9 years agolisp/gnus/gnus-art.el (gnus-mime-buttonize-attachments-in-header): Improve criterion...
Katsumi Yamaoka [Thu, 5 Jun 2014 22:43:36 +0000 (22:43 +0000)]
lisp/gnus/gnus-art.el (gnus-mime-buttonize-attachments-in-header): Improve criterion that finds parts to display

9 years ago* INSTALL: Mention SVG image support.
Dmitry Antipov [Thu, 5 Jun 2014 17:31:41 +0000 (21:31 +0400)]
* INSTALL: Mention SVG image support.

9 years ago* emacs-lisp/cl-macs.el (cl-macrolet): Avoid excessive progn's.
Leo Liu [Thu, 5 Jun 2014 17:08:18 +0000 (01:08 +0800)]
* emacs-lisp/cl-macs.el (cl-macrolet): Avoid excessive progn's.

9 years ago* tests/automated/tildify-tests.el (tildify-test--test): Optimise the
Michal Nazarewicz [Thu, 5 Jun 2014 14:42:45 +0000 (16:42 +0200)]
* tests/automated/tildify-tests.el (tildify-test--test): Optimise the
test slightly by reusing the same temporary buffer across multiple
test cases.

9 years agotildify.el: Rewrite `tildify-region' and co., add foreach function.
Michal Nazarewicz [Thu, 5 Jun 2014 14:42:07 +0000 (16:42 +0200)]
tildify.el: Rewrite `tildify-region' and co., add foreach function.

* lisp/textmodes/tildify.el (tildify-foreach-region-outside-env): New
function which calls a callback on portions of the buffer that are
outside of ignored environments.
(tildify-build-regexp): Remove function since it is now
incorporated in `tildify-foreach-region-outside-env' where it is
optimised and simplified by the use of `mapconcat'.
(tildify-tildify): Return number of substitutions made so that…
(tildify-count): …can be removed.
(tildify-find-env): Accept a new PAIRS argument which was
previously looked up in `tildify-ignored-environments-alist' each
time the function was called.  With this change, the lookup is
performed only once in `tildify-foreach-region-outside-env'.
(tildify-region): Greatly simplify the function since now most of
the work is done by `tildify-foreach-region-outside-env'.
(tildify-mode-alist): Simplify slightly by avoiding if and setq
and instead using or.

* tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug)
(tildify-test-find-env-group-index-bug): Update to support new
signature of the `tildify-foreach-region-outside-env' function.
Namely, it now takes pairs as an argument instead of looking it up in
`tildify-ignored-environments-alist'.

9 years agotildify.el: Optimise environments regexes
Michal Nazarewicz [Thu, 5 Jun 2014 14:41:32 +0000 (16:41 +0200)]
tildify.el: Optimise environments regexes

* lisp/textmodes/tildify.el (tildify-ignored-environments-alist):
Each time beginning of an environment to ignore is found,
`tildify-find-env' needs to identify regexp for the ending
of the environment.  This is done by trying all the opening
regexes on matched text in a loop, so to speed that up, this
loop should have fewer things to match, which can be done by
using alternatives in the opening regexes.

Coincidentally, this should make matching of the opening
regexp faster as well thanks to the use of `regexp-opt' and
having common prefix pulled from many regexes.

9 years agotildify.el: Better support for XML
Michal Nazarewicz [Thu, 5 Jun 2014 14:41:01 +0000 (16:41 +0200)]
tildify.el: Better support for XML

* lisp/textmodes/tildify.el  (tildify-string-alist)
(tildify-ignored-environments-alist): Add `nxml-mode' to the list of
supported modes since `xml-mode' is no longer a thing but just an
alias to the former.  Also include comments and insides of tags in
`tildify-ignored-environments-alist' for XML modes.  Finally, since
XML does not define “&nbsp;”[1], use a numeric reference for
a no-break space (namely “&#160;”)

[1] XML specification defines only a handful of predefined entities.
    The list is at <http://www.w3.org/TR/REC-xml/#sec-predefined-ent>
    and includes only &lt;, &gt;, &amp;, &apos; and &quot; (meaning <,
    >, &, ' and " respectively).  This is in contrast to HTML and even
    XHTML which defined a whole bunch of entities including “&nbsp;”.

* automated/tildify-tests.el (tildify-test--example-html): Add support
for generating XML code, so that…
(tildify-test-xml) …test can be added to check handling of XML
documents.

9 years agotildify.el: Improve defcustom's types
Michal Nazarewicz [Thu, 5 Jun 2014 14:40:26 +0000 (16:40 +0200)]
tildify.el: Improve defcustom's types

* lisp/textmodes/tildify.el (tildify-pattern-alist)
(tildify-string-alist, tildify-ignored-environments-alist):
Add more tags explaining what each value means and replace
“sexp” used in `tildify-ignored-environments-alist' with
a full type declaration.

9 years agotildify.el: Fix matched group indexes in end-regex building
Michal Nazarewicz [Thu, 5 Jun 2014 14:39:18 +0000 (16:39 +0200)]
tildify.el: Fix matched group indexes in end-regex building

* lisp/textmodes/tildifi.el (tildify-find-env): When looking for
a start of an ignore-environment, the regex is built by
concatenating regexes of all the environments configured in
`tildify-ignored-environments-alist'.  So for example, the following
list could be used to match TeX's \verb and \verb* commands:

    (("\\\\verb\\(.\\)" . (1))
     ("\\\\verb\\*\\(.\\)" . (1)))

This would result in the following regex being used to find the start
of any of the variants of the \verb command:

    \\\\verb\\(.\\)\\|\\\\verb\\*\\(.\\)

But now, if “\\\\verb\\*\\(.\\)” matches, the first capture group
won't match anything, and thus (match-string 1) will be nil, which
will cause building of the end-matching regex to fail.

Fix this by using capture groups from the time when the opening
regexes are matched individually.

* tests/automated/tildify-tests.el (tildify-test-find-env-group-index-bug):
New test validating fix to the above bug.

9 years agotildify.el: Fix end-regex building in `tildify-find-env'
Michal Nazarewicz [Thu, 5 Jun 2014 14:37:45 +0000 (16:37 +0200)]
tildify.el: Fix end-regex building in `tildify-find-env'

* lisp/textmodes/tildify.el (tildify-find-env): The
`tildify-ignored-environments-alist' allows the end-regex
to be provided not as a static string but mix of strings and
indexes of groups matched the begin-regex.  For example, the
“\verb!…!” TeX-command (where “!” is an arbitrary character)
is handled using:

    ("\\\\verb\\*?\\(.\\)" . (1))

In the same way, the following should be supported as well:

    ("open-\\(.\\)" . ("end-" 1))

However the tildify-find-env function fails at

    (concat result
            (if (stringp (setq aux (car expression)))
                 expression  ; BUG: expression is a list
               (regexp-quote (match-string aux))))

where the string part is handled incorrectly.

The most trivial fix would be to replace `expression'
in the true-part of the if-statement with `aux', but
instead, this commit optimises `tildify-find-env' by
changing it to use `mapconcat' rather than open-coded
while-loop.

* tests/automated/tildify-tests.el (tildify-test-find-env-end-re-bug):
New test validating fix to the above bug.

9 years ago* woman.el (woman-mapcan): Remove.
Mario Lang [Thu, 5 Jun 2014 13:40:54 +0000 (15:40 +0200)]
* woman.el (woman-mapcan): Remove.
(woman-parse-colon-path): Use cl-mapcan instead.

9 years agoSpelling fixes.
Paul Eggert [Thu, 5 Jun 2014 08:14:36 +0000 (01:14 -0700)]
Spelling fixes.

9 years agoTry harder to find GNU Make when configuring.
Paul Eggert [Thu, 5 Jun 2014 08:03:22 +0000 (01:03 -0700)]
Try harder to find GNU Make when configuring.

* configure.ac (AC_PROG_MAKE_SET): Define a dummy.
(MAKE): Set it to GNU Make, if one can be found.
Search PATH for 'make', 'gmake', 'gnumake'.
This works better on platforms like AIX, where GNU Make
might be in /opt/freeware/bin/make, and reside
behind /usr/bin/make in the PATH.

9 years ago* lisp/emacs-lisp/package.el: Comment update
Glenn Morris [Thu, 5 Jun 2014 07:08:42 +0000 (00:08 -0700)]
* lisp/emacs-lisp/package.el: Comment update

9 years ago* configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
Dmitry Antipov [Thu, 5 Jun 2014 06:24:54 +0000 (10:24 +0400)]
* configure.ac (POLL_FOR_INPUT): Define with HAVE_WINDOW_SYSTEM.
* nt/inc/ms-w32.h (POLL_FOR_INPUT): Likewise.
* src/keyboard.c, src/process.c: Do not define POLL_FOR_INPUT here
because it will be defined in generated config.h if needed.

9 years agoSome documentation for signing of packages
Glenn Morris [Thu, 5 Jun 2014 06:15:44 +0000 (23:15 -0700)]
Some documentation for signing of packages

* doc/emacs/package.texi (Package Menu, Package Installation):
Mention signed packages.

* doc/lispref/package.texi (Package Archives): Mention signing packages.

* lisp/emacs-lisp/package.el (package-check-signature)
(package-unsigned-archives): Doc fixes.

* etc/NEWS: Related edits.

9 years agoGnus: fix last change
Katsumi Yamaoka [Thu, 5 Jun 2014 04:31:36 +0000 (04:31 +0000)]
Gnus: fix last change

* gnus-art.el (gnus-article-edit-part): Don't modifiy markers.
(gnus-article-read-summary-keys):
Don't bug out when there is no article in the summary buffer.

* gnus-art.el (gnus-mm-display-part):
* mm-decode.el (mm-shr):
* mm-view.el (mm-inline-text-html-render-with-w3m, mm-inline-text)
(mm-insert-inline): Revert last changes.

9 years agoGnus: bugfixes to make `gnus-mime-save-part-and-strip' work again
Katsumi Yamaoka [Thu, 5 Jun 2014 01:38:42 +0000 (01:38 +0000)]
Gnus: bugfixes to make `gnus-mime-save-part-and-strip' work again

* gnus-art.el (gnus-mm-display-part):
* mm-decode.el (mm-shr):
* mm-view.el (mm-inline-text-html-render-with-w3m, mm-inline-text)
(mm-insert-inline): Set insertion type of end-marker, not only
start-marker, of undisplayer so as to stay after inserted text.

9 years ago* configure.ac: --without-all now implies --without-xft, --disable-acl.
Paul Eggert [Thu, 5 Jun 2014 00:34:34 +0000 (17:34 -0700)]
* configure.ac: --without-all now implies --without-xft, --disable-acl.

* INSTALL: Remove apparently unmaintained documentation about what
--without-all exactly means.

9 years agont/INSTALL: Instructions how to start Bash.
Eli Zaretskii [Wed, 4 Jun 2014 16:44:04 +0000 (19:44 +0300)]
nt/INSTALL: Instructions how to start Bash.

9 years agosrc/menu.c (Fx_popup_dialog): Comment the use of Qunsupported__w32_dialog.
Eli Zaretskii [Wed, 4 Jun 2014 15:16:54 +0000 (18:16 +0300)]
src/menu.c (Fx_popup_dialog): Comment the use of Qunsupported__w32_dialog.

9 years agoUse terminal-specific hooks to display popup dialogs.
Dmitry Antipov [Wed, 4 Jun 2014 14:59:09 +0000 (18:59 +0400)]
Use terminal-specific hooks to display popup dialogs.
* termhooks.h (struct terminal): New field popup_dialog_hook.
* menu.c (emulate_dialog_with_menu): New function, refactored from ...
(Fx_popup_dialog): ... adjusted user.  Also remove old #if 0
code and use popup_dialog_hook.
* nsmenu.m (ns_popup_dialog): Make hook-compatible.
* nsterm.h (ns_popup_dialog): Adjust prototype.
* nsterm.m (ns_create_terminal):
* w32term.c (w32_create_terminal):
* xterm.c (x_create_terminal) [USE_X_TOOLKIT || USE_GTK]: Setup
popup_dialog_hook.

9 years agoFix last commit.
Eli Zaretskii [Wed, 4 Jun 2014 12:00:34 +0000 (15:00 +0300)]
Fix last commit.

9 years agoImprove dumped memory report on MS-Windows.
Eli Zaretskii [Wed, 4 Jun 2014 11:46:51 +0000 (14:46 +0300)]
Improve dumped memory report on MS-Windows.

 src/w32heap.c (report_temacs_memory_usage): Improve the report by
 reporting the large blocks that are actually occupied at dump time.

9 years agoFix infloop of -nw session at exit on MS-Windows under a debugger.
Eli Zaretskii [Wed, 4 Jun 2014 10:54:58 +0000 (13:54 +0300)]
Fix infloop of -nw session at exit on MS-Windows under a debugger.

 src/sysdep.c (reset_sys_modes): Use cursorX, not curX, as the latter
 contains garbage on WINDOWSNT (which could potentially infloop at
 exit).

9 years agoAttempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.
Eli Zaretskii [Wed, 4 Jun 2014 09:16:46 +0000 (12:16 +0300)]
Attempt to solve bug #17497 by minimizing cursor motion during TTY menu updates.

 src/term.c (tty_menu_display): Don't position cursor here.  Instead,
 pass the cursor coordinates to update_frame_with_menu.
 (tty_menu_activate): Send the hide cursor command only once in an
 iteration through the outer 'while' loop.
 src/dispnew.c (update_frame_1): Accept an additional argument
 SET_CURSOR_P, and position the cursor at the end of the frame
 update only if that argument is non-zero.  All callers changed to
 provide the additional argument as non-zero, except for
 update_frame_with_menu.
 (update_frame_with_menu): Accept 2 additional arguments ROW and
 COL; if they are non-negative, instruct update_frame_1 not to
 position the cursor, and instead position it according to ROW and
 COL.
 src/dispextern.h (update_frame_with_menu): Update prototype.

9 years agoFix TTY menus on MS-Windows broken by last commit.
Eli Zaretskii [Wed, 4 Jun 2014 07:54:16 +0000 (10:54 +0300)]
Fix TTY menus on MS-Windows broken by last commit.

 src/w32console.c (initialize_w32_display): Set the console
 menu_show_hook, otherwise TTY menus on w32 crash and burn.

9 years agoUse terminal-specific hooks to display menus.
Dmitry Antipov [Wed, 4 Jun 2014 04:58:31 +0000 (08:58 +0400)]
Use terminal-specific hooks to display menus.
* termhooks.h (struct terminal): New field menu_show_hook.
* menu.h (<anonymous enum>): Bit flags for menu hooks.
(x_menu_show, w32_menu_show, ns_menu_show, tty_menu_show):
Adjust prototypes.
* menu.c (Fx_popup_menu): Use bit flags and menu_show_hook.
* nsmenu.m (ns_menu_show):
* w32menu.c (w32_menu_show):
* xmenu.c (x_menu_show):
* term.c (tty_menu_show): Adjust to use bit flags.
(set_tty_hooks): Set menu_show_hook.
* xterm.c (x_create_terminal):
* nsterm.m (ns_create_terminal):
* msdos.c (initialize_msdos_display):
* w32term.c (w32_create_terminal): Likewise.