bpt/emacs.git
10 years agolisp/emacs-lisp/lisp-mode.el: Support cl-def* expressions in imenu.
Juanma Barranquero [Fri, 2 Aug 2013 16:29:16 +0000 (18:29 +0200)]
lisp/emacs-lisp/lisp-mode.el: Support cl-def* expressions in imenu.

10 years agolisp/frameset.el (frameset-filter-params): Fix order of arguments.
Juanma Barranquero [Fri, 2 Aug 2013 16:03:13 +0000 (18:03 +0200)]
lisp/frameset.el (frameset-filter-params): Fix order of arguments.

10 years agoPS: I re-read the manual of bzr to make sure I don't break anything.
Bastien Guerry [Fri, 2 Aug 2013 14:26:22 +0000 (16:26 +0200)]
PS: I re-read the manual of bzr to make sure I don't break anything.

10 years agoAdd indexes for elisp manual.
Xue Fuqiao [Fri, 2 Aug 2013 14:06:27 +0000 (22:06 +0800)]
Add indexes for elisp manual.

* doc/lispref/display.texi (Face Functions): Add an index.

* doc/lispref/variables.texi (Variable Aliases): Add an index.

* doc/lispref/functions.texi (Defining Functions): Add an index.

* doc/lispref/nonascii.texi (Coding System Basics): Add an index.

10 years agoAdd indexes for elisp manual.
Xue Fuqiao [Fri, 2 Aug 2013 13:52:10 +0000 (21:52 +0800)]
Add indexes for elisp manual.

* doc/lispref/display.texi (Face Functions): Add an index.

* doc/lispref/variables.texi (Variable Aliases): Add an index.

* doc/lispref/functions.texi (Defining Functions): Add an index.

* doc/lispref/nonascii.texi (Coding System Basics): Add an index.

10 years agoMerge changes made in Gnus trunk
Lars Magne Ingebrigtsen [Fri, 2 Aug 2013 13:34:22 +0000 (13:34 +0000)]
Merge changes made in Gnus trunk

2013-08-02  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* gnus-group.el (gnus-group-delete-articles): Allow deleting only "old"
  articles.
* gnus-delay.el (gnus-delay-article): Run `message-send-hook' so that
  we can get spell-checking etc.

10 years agoFix X GC leak in GTK and raw (no toolkit) X ports.
Dmitry Antipov [Fri, 2 Aug 2013 13:22:23 +0000 (17:22 +0400)]
Fix X GC leak in GTK and raw (no toolkit) X ports.
* xterm.c (x_free_frame_resources): If white and black relief
GCs are allocated, always free them here.
* xfns.c (x_make_gc): Omit redundant initialization.
* widget.c (create_frame_gcs): Remove the leftover.
(EmacsFrameDestroy): Do nothing because all GCs are now freed
in x_free_frame_resources.

10 years ago* tutorials/TUTORIAL.cn: Update; synchronize with TUTORIAL.
Xue Fuqiao [Fri, 2 Aug 2013 12:52:26 +0000 (20:52 +0800)]
* tutorials/TUTORIAL.cn: Update; synchronize with TUTORIAL.

10 years ago* nsterm.h (EmacsView): Add maximizing_resize, put it and old_title
Jan Djärv [Fri, 2 Aug 2013 09:42:23 +0000 (11:42 +0200)]
* nsterm.h (EmacsView): Add maximizing_resize, put it and old_title
inside NS_IMPL_COCOA.

* nsterm.m (windowWillResize:toSize:): Only change title if
! maximizing_resize && FULLSCREEN_NONE.  strdup title before
modifying it.
(viewDidEndLiveResize): New method.

Fixes: debbugs:15005

10 years agolisp/gnus/rfc2047.el (rfc2047-encode-message-header): Unify charsets into a single...
Katsumi Yamaoka [Fri, 2 Aug 2013 08:36:15 +0000 (08:36 +0000)]
lisp/gnus/rfc2047.el (rfc2047-encode-message-header): Unify charsets into a single one used for encoding the whole text in a header

10 years agoFix last change.
Dmitry Antipov [Fri, 2 Aug 2013 08:32:32 +0000 (12:32 +0400)]
Fix last change.

10 years ago* insdel.c (adjust_after_replace, replace_range, del_range_2):
Dmitry Antipov [Fri, 2 Aug 2013 07:07:08 +0000 (11:07 +0400)]
* insdel.c (adjust_after_replace, replace_range, del_range_2):
Do not check whether undo is enabled because record_insert and
record_delete does that themselves.

10 years ago* etc/tutorials/TUTORIAL.translators (Maintainer): Update the maintainer.
Xue Fuqiao [Fri, 2 Aug 2013 06:59:25 +0000 (14:59 +0800)]
* etc/tutorials/TUTORIAL.translators (Maintainer): Update the maintainer.

* lisp/mh-e/mh-e.el: Add a FIXME.

10 years agolisp/desktop.el: Move code related to saving frames to frameset.el.
Juanma Barranquero [Fri, 2 Aug 2013 04:33:58 +0000 (06:33 +0200)]
lisp/desktop.el: Move code related to saving frames to frameset.el.
Require frameset.
(desktop-restore-frames): Doc fix.
(desktop-restore-reuses-frames): Rename from
desktop-restoring-reuses-frames.
(desktop-saved-frameset): Rename from desktop-saved-frame-states.
(desktop-clear): Clear frames too.
(desktop-filter-parameters-alist): Set from frameset-filter-alist.
(desktop--filter-tty*, desktop-save, desktop-read):
Use frameset functions.
(desktop-before-saving-frames-functions, desktop--filter-*-color)
(desktop--filter-minibuffer, desktop--filter-restore-desktop-parm)
(desktop--filter-save-desktop-parm, desktop--filter-iconified-position)
(desktop-restore-in-original-display-p, desktop--filter-frame-parms)
(desktop--process-minibuffer-frames, desktop-save-frames)
(desktop--reuse-list, desktop--compute-pos, desktop--move-onscreen)
(desktop--find-frame, desktop--select-frame, desktop--make-frame)
(desktop--sort-states, desktop-restoring-frames-p)
(desktop-restore-frames): Remove.  Most code moved to frameset.el.
(desktop-restoring-frameset-p, desktop-restore-frameset)
(desktop--check-dont-save, desktop-save-frameset): New functions.
(desktop--app-id): New constant.
(desktop-first-buffer, desktop-buffer-ok-count)
(desktop-buffer-fail-count): Move before first use.
lisp/frameset.el: New file.

10 years ago* w32term.c (x_unfocus_frame): Remove unused dummy function.
Dmitry Antipov [Fri, 2 Aug 2013 04:21:51 +0000 (08:21 +0400)]
* w32term.c (x_unfocus_frame): Remove unused dummy function.

10 years ago* xterm.h (struct x_output) [HAVE_X_I18N]: Remove xic_base_fontname
Dmitry Antipov [Fri, 2 Aug 2013 03:55:24 +0000 (07:55 +0400)]
* xterm.h (struct x_output) [HAVE_X_I18N]: Remove xic_base_fontname
member which is not really used any more.
(FRAME_XIC_BASE_FONTNAME): Remove.
* xfns.c (xic_free_fontset): Adjust user.
* xmenu.c (mouse_position_for_popup, x_activate_menubar)
(update_frame_menubar, set_frame_menubar, free_frame_menubar)
(create_and_show_popup_menu, xmenu_show, create_and_show_dialog)
(xdialog_show): Use eassert for debugging check.

10 years agoetc/tutorials/TUTORIAL.es: Fix typos (bug#15000).
Juanma Barranquero [Fri, 2 Aug 2013 03:44:59 +0000 (05:44 +0200)]
etc/tutorials/TUTORIAL.es: Fix typos (bug#15000).

10 years ago* doc/lispintro/emacs-lisp-intro.texi (zap-to-char): Remove obsolete stuff.
Xue Fuqiao [Fri, 2 Aug 2013 02:33:12 +0000 (10:33 +0800)]
* doc/lispintro/emacs-lisp-intro.texi (zap-to-char): Remove obsolete stuff.

10 years agolisp/gnus/ChangeLog: Fix previous commit
Katsumi Yamaoka [Fri, 2 Aug 2013 00:50:14 +0000 (00:50 +0000)]
lisp/gnus/ChangeLog: Fix previous commit

10 years ago* lisp/files.el: Use lexical-binding.
Stefan Monnier [Thu, 1 Aug 2013 23:18:37 +0000 (19:18 -0400)]
* lisp/files.el: Use lexical-binding.
(dir-locals-read-from-file): Remove unused `err' variable.
(hack-dir-local-variables--warned-coding): New var.
(hack-dir-local-variables): Use it to avoid repeated warnings.
(make-backup-file-name--default-function): New function.
(make-backup-file-name-function): Use it as default.
(buffer-stale--default-function): New function.
(buffer-stale-function): Use it as default.
(revert-buffer-insert-file-contents--default-function): New function.
(revert-buffer-insert-file-contents-function): Use it as default.
(insert-directory): Avoid add-to-list.
* lisp/autorevert.el (auto-revert-handler): Simplify.
Use buffer-stale--default-function.

10 years ago* test/automated/file-notify-tests.el (file-notify--test-remote-enabled):
Glenn Morris [Thu, 1 Aug 2013 23:10:51 +0000 (19:10 -0400)]
* test/automated/file-notify-tests.el (file-notify--test-remote-enabled):
Try to check that the remote system has a notification program.

10 years agoMerge changes made in Gnus master
Gnus developers [Thu, 1 Aug 2013 22:58:40 +0000 (22:58 +0000)]
Merge changes made in Gnus master

2013-08-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
* gnus.texi (Basic Usage): Mention that warp means jump here.
  (The notmuch Engine): Mention notmuch.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* message.el (message-ignored-news-headers): Delete X-Gnus-Delayed
  before sending.
* dgnushack.el (dgnushack-compile): Add a temporary check for
  gnus-icalendar.
* mm-decode.el (mm-command-output): New face.
  (mm-display-external): Use it.

2013-08-01 Kan-Ru Chen (陳侃如) <kanru@kanru.info> (tiny change)
* nnmbox.el (nnmbox-request-article): Don't change point.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-icalendar.el (gnus-icalendar-event:inline-reply-buttons):
  Include `handle' parameter.

2013-08-01 Jan Tatarik <jan.tatarik@gmail.com>
* gnus-icalendar.el: New file.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-int.el (gnus-warp-to-article): Mention that warp means jump.
* gnus-uu.el (gnus-uu-mark-thread, gnus-uu-unmark-thread): Work with
  dummy roots, too.

2013-08-01 David Edmondson <dme@dme.org>
* mml2015.el (mml2015-epg-key-image-to-string): Protect against bugging
  out on ttys.

2013-08-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-start.el (gnus-dribble-save): Only save the dribble file if it's
  not empty.

10 years agoFix typos in ChangeLogs.
Juanma Barranquero [Thu, 1 Aug 2013 22:53:03 +0000 (00:53 +0200)]
Fix typos in ChangeLogs.

10 years ago* fileio.c, fns.c (merge): Move extern decl from here ...
Paul Eggert [Thu, 1 Aug 2013 22:24:02 +0000 (23:24 +0100)]
* fileio.c, fns.c (merge): Move extern decl from here ...

* lisp.h (merge): ... to here.

10 years ago* speedbar.el (speedbar-query-confirmation-method): Doc fix.
Tassilo Horn [Thu, 1 Aug 2013 18:46:10 +0000 (20:46 +0200)]
* speedbar.el (speedbar-query-confirmation-method): Doc fix.

10 years agoFix last font-related change.
Dmitry Antipov [Thu, 1 Aug 2013 16:09:20 +0000 (20:09 +0400)]
Fix last font-related change.
* w32font.h (w32font_list_internal, w32font_match_internal):
Fix prototype.
* w32uniscribe.c (uniscribe_list, uniscribe_match):
(uniscribe_list_family): Adjust to match font API change.
MS-Windows breakage reported by Juanma Barranquero <lekktu@gmail.com>
at http://lists.gnu.org/archive/html/emacs-devel/2013-08/msg00006.html.

10 years ago* frame.h (FRAME_MOUSE_UPDATE):
Dmitry Antipov [Thu, 1 Aug 2013 14:54:29 +0000 (18:54 +0400)]
* frame.h (FRAME_MOUSE_UPDATE):
* nsterm.m (ns_frame_up_to_date): Omit redundant check
whether hlinfo->mouse_face_mouse_frame is non-NULL.

10 years agoRefactor out setting `whitespace-indent-tabs-mode' and
Tassilo Horn [Thu, 1 Aug 2013 12:58:28 +0000 (14:58 +0200)]
Refactor out setting `whitespace-indent-tabs-mode' and
`whitespace-tab-width' buffer-locally to own function, so that
`whitespace-cleanup' and friends work appropriately without
needing to enable `whitespace-mode'.

* whitespace.el (whitespace-ensure-local-variables): New function.
(whitespace-cleanup-region): Call it.
(whitespace-turn-on): Call it.

10 years agolisp/gnus/nnrss.el (nnrss-discover-feed): Indent
Lars Magne Ingebrigtsen [Thu, 1 Aug 2013 11:23:38 +0000 (11:23 +0000)]
lisp/gnus/nnrss.el (nnrss-discover-feed): Indent

10 years agoComplete file name handlers.
Michael Albinus [Thu, 1 Aug 2013 11:10:31 +0000 (13:10 +0200)]
Complete file name handlers.

* net/tramp.el (tramp-handle-set-visited-file-modtime)
(tramp-handle-verify-visited-file-modtime)
(tramp-handle-file-notify-rm-watch): New functions.
(tramp-call-process): Do not bind `default-directory'.

* net/tramp-adb.el (tramp-adb-file-name-handler-alist): Order
alphabetically.
[access-file, add-name-to-file, dired-call-process]:
[dired-compress-file, file-acl, file-notify-rm-watch]:
[file-ownership-preserved-p, file-selinux-context]:
[make-directory-internal, make-symbolic-link, set-file-acl]:
[set-file-selinux-context, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(tramp-adb-handle-write-region): Apply `set-visited-file-modtime'.

* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist)
[file-notify-add-watch, file-notify-rm-watch]:
[set-file-times, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(with-tramp-gvfs-error-message)
(tramp-gvfs-handle-set-visited-file-modtime)
(tramp-gvfs-fuse-file-name): Remove.
(tramp-gvfs-handle-file-notify-add-watch)
(tramp-gvfs-file-gvfs-monitor-file-process-filter): New defuns.
(tramp-gvfs-handle-write-region): Fix error in moving tmpfile.

* net/tramp-sh.el (tramp-sh-file-name-handler-alist): Order
alphabetically.
[file-notify-rm-watch ]: Use default Tramp handler.
[executable-find]: Remove private handler.
(tramp-do-copy-or-rename-file-out-of-band): Do not bind
`default-directory'.
(tramp-sh-handle-executable-find)
(tramp-sh-handle-file-notify-rm-watch): Remove functions.
(tramp-sh-file-gvfs-monitor-dir-process-filter)
(tramp-sh-file-inotifywait-process-filter, tramp-set-remote-path):
Do not use `format' in `tramp-message'.

* net/tramp-smb.el (tramp-smb-file-name-handler-alist)
[file-notify-rm-watch, set-visited-file-modtime]:
[verify-visited-file-modtime]: Add handler.
(tramp-smb-call-winexe): Do not bind `default-directory'.

10 years agoAvoid redundant Lisp_Object <-> struct frame conversions in font API.
Dmitry Antipov [Thu, 1 Aug 2013 10:33:25 +0000 (14:33 +0400)]
Avoid redundant Lisp_Object <-> struct frame conversions in font API.
* font.h (struct font_driver): Change list, match, and list_family
functions to accept struct frame * as first arg.
* font.c (font_score, font_compare, font_sort_entities): Remove
prototypes.
(font_sort_entities, font_list_entities, font_select_entity):
(font_find_for_lface, Flist_fonts, Ffont_family_list): Adjust to
match font API change.
* xfont.c (xfont_list, xfont_match, xfont_list_family):
* ftfont.c (ftfont_list, ftfont_match, ftfont_list_family):
* ftxfont.c (ftxfont_list, ftxfont_match):
* xftfont.c (xftfont_list, xftfont_match):
* nsfont.m (nsfont_list, nsfont_match, nsfont_list_family):
* w32font.c (w32font_list, w32font_match, w32font_list):
(w32font_list_internal, w32_font_match_internal): Likewise.
* xfaces.c (Fx_family_fonts): Adjust user.

10 years ago* xterm.c (any_help_event_p, x_draw_glyph_string_background):
Dmitry Antipov [Thu, 1 Aug 2013 07:33:58 +0000 (11:33 +0400)]
* xterm.c (any_help_event_p, x_draw_glyph_string_background):
(x_display_ok): Use bool for booleans.
(x_draw_glyph_string_background, cvt_string_to_pixel):
(cvt_pixel_dtor): Drop unnecessary prototypes.
* xterm.h (x_display_ok): Adjust prototype.

10 years agoDo not use pure Xism x_wm_set_icon_position in non-X ports.
Dmitry Antipov [Thu, 1 Aug 2013 06:38:49 +0000 (10:38 +0400)]
Do not use pure Xism x_wm_set_icon_position in non-X ports.
* frame.c (x_set_frame_parameters): Call to x_wm_set_icon_position
only if HAVE_X_WINDOWS is in use.
* frame.h (x_set_frame_parameters): Move under HAVE_X_WINDOWS.
* nsterm.m (x_wm_set_icon_position): Remove no-op.
* w32term.c (x_wm_set_icon_position): Likewise.
* w32fns.c (x_icon): Adjust user.

10 years ago* xterm.c (x_flush): Call XFlush once per each X display, not
Dmitry Antipov [Thu, 1 Aug 2013 05:56:20 +0000 (09:56 +0400)]
* xterm.c (x_flush): Call XFlush once per each X display, not
frame.  This is better because this code always unconditionally
skips non-X frames in Vframe_list and issues the only XFlush if
we have more than one X frame on the same X display.

10 years ago* xterm.c (last_mouse_press_frame): Remove the
Dmitry Antipov [Thu, 1 Aug 2013 05:28:24 +0000 (09:28 +0400)]
* xterm.c (last_mouse_press_frame): Remove the
leftover which is not really used any more.
(handle_one_xevent, syms_of_xterm): Adjust users.

10 years agognus-util.el (gnus-emacs-completing-read): Isolate XEmacs stuff
Katsumi Yamaoka [Thu, 1 Aug 2013 03:51:41 +0000 (03:51 +0000)]
gnus-util.el (gnus-emacs-completing-read): Isolate XEmacs stuff

10 years ago* lisp/vc/vc-hooks.el (vc-menu-map): Fix menu entry for vc-ignore.
Xue Fuqiao [Thu, 1 Aug 2013 00:19:11 +0000 (08:19 +0800)]
* lisp/vc/vc-hooks.el (vc-menu-map): Fix menu entry for vc-ignore.

10 years agoFix the Emacs manual broken by 2013-07-31T12:59:10Z!xfq.free@gmail.com.
Eli Zaretskii [Wed, 31 Jul 2013 16:20:13 +0000 (19:20 +0300)]
Fix the Emacs manual broken by 2013-07-31T12:59:10Z!xfq.free@gmail.com.

 doc/emacs/emacs.texi (Top): Remove menu item for the removed "Disabling
 Multibyte" node.

10 years ago* doc/emacs/rmail.texi (Rmail Coding): Move here from mule.texi.
Xue Fuqiao [Wed, 31 Jul 2013 13:11:47 +0000 (21:11 +0800)]
* doc/emacs/rmail.texi (Rmail Coding): Move here from mule.texi.

10 years agoDoc fix.
Xue Fuqiao [Wed, 31 Jul 2013 12:59:10 +0000 (20:59 +0800)]
Doc fix.

* doc/emacs/custom.texi (Specifying File Variables): Fix cross-references.

* doc/emacs/mule.texi (Unibyte Mode): Fix cross-references.

* doc/lispref/nonascii.texi (Non-ASCII Characters): Update menu.
(Disabling Multibyte): Move here from doc/emacs/mule.texi.  Fix cross-references.

* doc/lispref/elisp.texi (Top): Update menu.

10 years agoDrop unnecessary functions that deals with frame pixel size.
Dmitry Antipov [Wed, 31 Jul 2013 12:50:59 +0000 (16:50 +0400)]
Drop unnecessary functions that deals with frame pixel size.
* frame.h, msdos.h, w32term.h, xterm.h (x_pixel_width)
(x_pixel_height): Drop prototypes.
* msdos.c, nsfns.m, w32fns.c, xfns.c (x_pixel_width)
(x_pixel_height): Drop implementations.
* frame.c (Fframe_pixel_height): Use FRAME_PIXEL_HEIGHT
which should be always valid for window frame.
(Frame_pixel_width): Likewise with FRAME_PIXEL_WIDTH.
* w32menu.c (Fx_popup_dialog):
* xmenu.c (Fx_popup_dialog): Likewise for both.

10 years ago* lisp/vc/log-view.el (log-view-diff): Extract `log-view-diff-common',
Dmitry Gutov [Wed, 31 Jul 2013 12:22:10 +0000 (15:22 +0300)]
* lisp/vc/log-view.el (log-view-diff): Extract `log-view-diff-common',
use it.
(log-view-diff-changeset): Same.
(log-view-diff-common): Call backend command `previous-revision'
to find out the previous revision, in both cases.  Swap the
variables `to' and `fr', so that `fr' usually refers to the
earlier revision.

Fixes: debbugs:14989

10 years ago* frame.c (Fset_frame_height, Fset_frame_width): Mention nil frame in docstring.
Dmitry Antipov [Wed, 31 Jul 2013 12:09:16 +0000 (16:09 +0400)]
* frame.c (Fset_frame_height, Fset_frame_width): Mention nil frame in docstring.
(Fset_frame_size, Fset_frame_position): Use decode_live_frame and mention nil
frame in docstring.

10 years ago* doc/emacs/macos.texi (Mac / GNUstep Basics): Mention `ns-alternate-modifier'.
Xue Fuqiao [Wed, 31 Jul 2013 12:04:25 +0000 (20:04 +0800)]
* doc/emacs/macos.texi (Mac / GNUstep Basics): Mention `ns-alternate-modifier'.

10 years agoMove the documentation of Mayan calendar to cal-xtra.texi.
Xue Fuqiao [Wed, 31 Jul 2013 11:38:13 +0000 (19:38 +0800)]
Move the documentation of Mayan calendar to cal-xtra.texi.

* doc/emacs/cal-xtra.texi (Advanced Calendar/Diary Usage): Update menu.
(Mayan Calendar): Move here from calendar.texi.
* doc/emacs/emacs.texi (Top): Update menu.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 31 Jul 2013 10:19:06 +0000 (06:19 -0400)]
Auto-commit of loaddefs files.

10 years ago* frame.c (Fmake_terminal_frame): Use store_in_alist to setup
Dmitry Antipov [Wed, 31 Jul 2013 07:45:34 +0000 (11:45 +0400)]
* frame.c (Fmake_terminal_frame): Use store_in_alist to setup
frame parameters and call to Fmodify_frame_parameters just once.

10 years ago* ibuf-ext.el (ibuffer-filter-by-filename): Make it work with dired buffers too.
Kan-Ru Chen [Wed, 31 Jul 2013 07:32:58 +0000 (00:32 -0700)]
* ibuf-ext.el (ibuffer-filter-by-filename): Make it work with dired buffers too.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00573.html

10 years ago* test/automated/undo-tests.el (undo-test2, undo-test5): Be quieter.
Glenn Morris [Wed, 31 Jul 2013 07:08:47 +0000 (00:08 -0700)]
* test/automated/undo-tests.el (undo-test2, undo-test5): Be quieter.

10 years ago* lisp/vc/vc-hooks.el (vc-menu-map): Add menu entry for vc-ignore.
Xue Fuqiao [Wed, 31 Jul 2013 07:01:46 +0000 (15:01 +0800)]
* lisp/vc/vc-hooks.el (vc-menu-map): Add menu entry for vc-ignore.

10 years ago* lisp/emacs-lisp/re-builder.el (reb-color-display-p):
Dmitry Antipov [Wed, 31 Jul 2013 06:52:26 +0000 (10:52 +0400)]
* lisp/emacs-lisp/re-builder.el (reb-color-display-p):
* lisp/files.el (save-buffers-kill-terminal):
* lisp/net/browse-url.el (browse-url):
* lisp/server.el (server-save-buffers-kill-terminal):
* lisp/textmodes/reftex-toc.el (reftex-toc, reftex-toc-revert):
Prefer nil to selected-frame for the first arg of frame-parameter.

10 years agoNEWS fix.
Xue Fuqiao [Wed, 31 Jul 2013 06:27:20 +0000 (14:27 +0800)]
NEWS fix.

10 years ago* frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.
Dmitry Antipov [Wed, 31 Jul 2013 06:05:05 +0000 (10:05 +0400)]
* frame.c (make_frame, x_set_frame_parameters): Use bool for boolean.
(x_figure_window_size): Likewise.  Adjust to return long.
(syms_of_frame): Do not DEFSYM Qterminal_live_p.
(toplevel): Move Qterminal_live_p to...
* terminal.c (toplevel): ...here, make it static, and...
(syms_of_terminal): ...DEFSYM here.
* frame.h (Qterminal_live_p): Remove declaration.
(make_frame, x_figure_window_size): Adjust prototype.
* nsfns.m (Fx_create_frame): Use long for window flags.

10 years ago* lisp/url/url-handlers.el (url-file-name-completion)
Stefan Monnier [Wed, 31 Jul 2013 04:19:09 +0000 (00:19 -0400)]
* lisp/url/url-handlers.el (url-file-name-completion)
(url-file-name-all-completions): Don't signal errors.

Fixes: debbugs:14806

10 years agoAdd documentation for vc-ignore and vc-dir-ignore.
Xue Fuqiao [Tue, 30 Jul 2013 22:27:47 +0000 (06:27 +0800)]
Add documentation for vc-ignore and vc-dir-ignore.

* doc/emacs/emacs.texi (Top): Add menu entry.

* doc/emacs/maintaining.texi (VC Ignore): New node.  Document vc-ignore.
(VC Directory Commands): Add vc-dir-ignore.

10 years agoMerge Changes made in Gnus master
Gnus developers [Tue, 30 Jul 2013 22:09:37 +0000 (22:09 +0000)]
Merge Changes made in Gnus master

2013-07-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
  * gnus-start.el (gnus-read-active-for-groups): Always mark the data as
  dirty to ensure nnimap data being saved.

2013-07-30 Tassilo Horn <tsdh@gnu.org>
  * gnus-sum.el (gnus-summary-make-menu-bar): Add "Current thread score"
  menu entry.
  * gnus-score.el (gnus-summary-current-score): Use prefix arg to show
  the current thread's total score instead of the current article's
  score.

10 years agoFix tempfile bug on platforms lacking mkostemp and mkstemp.
Paul Eggert [Tue, 30 Jul 2013 21:44:43 +0000 (23:44 +0200)]
Fix tempfile bug on platforms lacking mkostemp and mkstemp.

* callproc.c (create_temp_file) [! (HAVE_MKOSTEMP || HAVE_MKSTEMP)]:
Do not assume that emacs_close (INT_MAX) is a no-op.

Fixes: debbugs:14986

10 years ago* lisp/minibuffer.el (completion--twq-all): Try and preserve each
Stephen Berman [Tue, 30 Jul 2013 20:42:15 +0000 (16:42 -0400)]
* lisp/minibuffer.el (completion--twq-all): Try and preserve each
completion's case choice.

Fixes: debbugs:14907

10 years agoAllow talking to STARTTLS servers that have no greeting
Lars Magne Ingebrigtsen [Tue, 30 Jul 2013 15:11:58 +0000 (17:11 +0200)]
Allow talking to STARTTLS servers that have no greeting

* net/network-stream.el (open-network-stream): Mention the new
:nogreeting parameter.
(network-stream-open-starttls): Use the :nogreeting parameter.

Fixes: debbugs:14938

10 years ago* net/shr.el (shr-mouse-browse-url): Remove and use `shr-browse-url'.
Lars Magne Ingebrigtsen [Tue, 30 Jul 2013 14:58:37 +0000 (16:58 +0200)]
* net/shr.el (shr-mouse-browse-url): Remove and use `shr-browse-url'.

10 years ago(eww-setup-buffer): Switching to the buffer seems more natural than popping.
Lars Magne Ingebrigtsen [Tue, 30 Jul 2013 14:31:51 +0000 (16:31 +0200)]
(eww-setup-buffer): Switching to the buffer seems more natural than popping.

10 years agoFix for vc-ignore.
Xue Fuqiao [Tue, 30 Jul 2013 14:29:14 +0000 (22:29 +0800)]
Fix for vc-ignore.

* vc/vc-hooks.el (vc-prefix-map): Add key binding for vc-ignore.

* vc/vc-dir.el (vc-dir-mode-map): Change key binding for vc-dir-ignore.

10 years ago(shr-urlify): Highlight under mouse.
Lars Magne Ingebrigtsen [Tue, 30 Jul 2013 14:27:04 +0000 (16:27 +0200)]
(shr-urlify): Highlight under mouse.

10 years ago* net/shr.el (shr-urlify): Put `follow-link' on URLs.
Lars Magne Ingebrigtsen [Tue, 30 Jul 2013 14:25:11 +0000 (16:25 +0200)]
* net/shr.el (shr-urlify): Put `follow-link' on URLs.

Fixes: debbugs:14815

10 years agoDoc fix.
Xue Fuqiao [Tue, 30 Jul 2013 13:53:28 +0000 (21:53 +0800)]
Doc fix.

10 years ago* xfaces.c (make_face_cache): For struct face_cache, prefer
Dmitry Antipov [Tue, 30 Jul 2013 13:40:46 +0000 (17:40 +0400)]
* xfaces.c (make_face_cache): For struct face_cache, prefer
xmalloc to xzalloc and so avoid redundant call to memset.
(Finternal_set_lisp_face_attribute): Fix comment typo and style.

10 years agoDoc fix.
Xue Fuqiao [Tue, 30 Jul 2013 12:46:13 +0000 (20:46 +0800)]
Doc fix.

* doc/lispref/windows.texi (Window History): Mention the default value of
switch-to-visible-buffer.

10 years agoGnus: Improve subthread sorting;
Tassilo Horn [Tue, 30 Jul 2013 08:16:20 +0000 (08:16 +0000)]
Gnus: Improve subthread sorting;
 make subthread sorting customizable and add docs for it

* doc/misc/gnus.texi (Sorting the Summary Buffer): Document new defcustom
`gnus-subthread-sort-functions' and remove the obsolete documentation
of `gnus-sort-threads-recursively'.

* lisp/gnus/gnus-sum.el (gnus-subthread-sort-functions): New defcustom.
(gnus-sort-threads-recursively): Delete defcustom.
(gnus-sort-threads-recursive): Adapt accordingly.

* lisp/gnus/gnus-sum.el (gnus-sort-subthreads-recursive): New function.
(gnus-sort-threads-recursive): Use it.
(gnus-sort-threads): Unconditionally call `gnus-sort-threads-recursive'
again.  Now that determines how to sort subthreads.

10 years agoChangeLog fix.
Xue Fuqiao [Tue, 30 Jul 2013 06:08:33 +0000 (14:08 +0800)]
ChangeLog fix.

10 years ago* fringe.c (draw_window_fringes, update_window_fringes)
Dmitry Antipov [Tue, 30 Jul 2013 05:56:18 +0000 (09:56 +0400)]
* fringe.c (draw_window_fringes, update_window_fringes)
(compute_fringe_widths):
* w32term.c (x_draw_glyph_string):
* window.c (candidate_window_p, Frecenter):
* xfaces.c (realize_basic_faces, realize_default_face)
(Fbitmap_space_p, Finternal_set_lisp_face_attribute)
(x_update_menu_appearance, face_attr_equal_p, lface_equal_p):
* xfns.c (x_set_cursor_color, xic_free_xfontset):
* xmenu.c (Fx_menu_bar_open_internal):
* xselect.c (x_reply_selection_request, Fx_get_atom_name):
* xsettings.c (xft_settings_event):
* xterm.c (x_draw_glyph_string, x_had_errors_p):
Use bool for booleans.  Adjust style and comments where
appropriate.
* dispextern.h (draw_window_fringes, update_window_fringes)
(compute_fringe_widths):
* xterm.h (x_had_errors_p): Adjust prototype.

10 years ago* frame.c (Fmodify_frame_parameters): Always check 2nd arg with
Dmitry Antipov [Tue, 30 Jul 2013 04:35:44 +0000 (08:35 +0400)]
* frame.c (Fmodify_frame_parameters): Always check 2nd arg with
CHECK_LIST.  Rewrite the loop to avoid useless local variable.

10 years agovc-ignore fixes.
Xue Fuqiao [Tue, 30 Jul 2013 03:46:06 +0000 (11:46 +0800)]
vc-ignore fixes.

* vc/vc-svn.el (vc-svn-ignore): Remove `interactive'.  Use `*vc*'
buffer for output.

* vc/vc-hg.el (vc-hg-ignore): Remove `interactive'; do not assume
point-min==1; fix search string; fix parentheses missing.

* vc/vc-git.el (vc-git-ignore): Remove `interactive'; do not
assume point-min==1; fix search string; fix parentheses missing.

* vc/vc-cvs.el (vc-cvs-ignore): Remove `interactive'.

* vc/vc-bzr.el (vc-bzr-ignore): Remove `interactive'.  Use `*vc*'
buffer for output.

10 years agoMerge from mainline.
Xue Fuqiao [Tue, 30 Jul 2013 00:29:09 +0000 (08:29 +0800)]
Merge from mainline.

10 years agoAdd vc-ignore.
Xue Fuqiao [Tue, 30 Jul 2013 00:25:31 +0000 (08:25 +0800)]
Add vc-ignore.

* lisp/vc/vc.el (vc-ignore): New function.

* lisp/vc/vc-svn.el (vc-svn-ignore): New function.

* lisp/vc/vc-hg.el (vc-hg-ignore): New function.

* lisp/vc/vc-git.el (vc-git-ignore): New function.

* lisp/vc/vc-dir.el (vc-dir-mode-map): Add key binding for vc-dir-ignore
(vc-dir-ignore): New function.

* lisp/vc/vc-cvs.el (vc-cvs-ignore): New function.
(cvs-append-to-ignore): Moved from pcvs.el.

* lisp/vc/vc-bzr.el (vc-bzr-ignore): New function.

* lisp/vc/pcvs.el (vc-cvs): Require 'vc-cvs.

10 years agoMerge CEDET upstream (rev. 8579)
David Engster [Mon, 29 Jul 2013 20:28:22 +0000 (22:28 +0200)]
Merge CEDET upstream (rev. 8579)

10 years agoMerge with CEDET upstream (rev. 8579).
David Engster [Mon, 29 Jul 2013 20:26:19 +0000 (22:26 +0200)]
Merge with CEDET upstream (rev. 8579).

* lisp/cedet/cedet.el (cedet-packages): Remove speedbar since its
development does no longer happens in CEDET upstream but in Emacs
proper.  Also remove cedet-contrib and cogre since those are only
in upstream.

* semantic/analyze/fcn.el (semantic-analyze-type-to-name): If TYPE
has a parent, return a fully qualified name.

* semantic/decorate/mode.el
(semantic-decoration-on-includes-p-default)
(semantic-decoration-on-includes-highlight-default): Declare for
byte compiler.

* semantic/wisent/python.el (semantic/format): New require.

* eieio.texi (top): Make clear that EIEIO is not a full CLOS
implementation.
(Introduction): Add further missing features.
(Building Classes): Add introductory paragraph.
(Wish List): Add metaclasses and EQL specialization.

10 years ago* fns.c (toplevel): Remove comment before Fsafe_length because
Dmitry Antipov [Mon, 29 Jul 2013 17:28:07 +0000 (21:28 +0400)]
* fns.c (toplevel): Remove comment before Fsafe_length because
it checks for QUIT.

10 years agoFix infloop on MS-Windows when initial frame lacks minibuffer.
Eli Zaretskii [Mon, 29 Jul 2013 16:34:53 +0000 (19:34 +0300)]
Fix infloop on MS-Windows when initial frame lacks minibuffer.

 lisp/frame.el (frame-notice-user-settings): Avoid inflooping when the
 initial frame is minibuffer-less.  (Bug#14841)

10 years ago* INSTALL (DETAILED BUILDING AND INSTALLATION): Add
Michael Albinus [Mon, 29 Jul 2013 11:35:16 +0000 (13:35 +0200)]
* INSTALL (DETAILED BUILDING AND INSTALLATION): Add
--without-file-notification to --without-all.

10 years ago* tramp.texi (Frequently Asked Questions): Mention
Michael Albinus [Mon, 29 Jul 2013 09:07:30 +0000 (11:07 +0200)]
* tramp.texi (Frequently Asked Questions): Mention
`tramp-use-ssh-controlmaster-options'.

10 years ago* net/tramp.el (tramp-use-ssh-controlmaster-options): New customer option.
Michael Albinus [Mon, 29 Jul 2013 07:47:53 +0000 (09:47 +0200)]
* net/tramp.el (tramp-use-ssh-controlmaster-options): New customer option.

* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band)
(tramp-maybe-open-connection): Use it.

10 years ago* INSTALL: Fix description.
Xue Fuqiao [Mon, 29 Jul 2013 01:32:01 +0000 (09:32 +0800)]
* INSTALL: Fix description.

10 years agoClarify ChangeLog entry.
Stephen Berman [Sun, 28 Jul 2013 23:19:25 +0000 (01:19 +0200)]
Clarify ChangeLog entry.

10 years ago* doc/emacs/glossary.texi (Glossary): Refine.
Xue Fuqiao [Sun, 28 Jul 2013 22:48:15 +0000 (06:48 +0800)]
* doc/emacs/glossary.texi (Glossary): Refine.

10 years agolisp/desktop.el: Fix problem creating minibuffer(less,only) frames.
Juanma Barranquero [Sun, 28 Jul 2013 22:43:01 +0000 (00:43 +0200)]
lisp/desktop.el: Fix problem creating minibuffer(less,only) frames.
(desktop--make-frame): Include `minibuffer' in the minimal set of parameters
passed when creating a frame, because the minibuffer status of a frame cannot
be changed later.

10 years ago* calendar/todo-mode.el (todo-rename-file): Fix incorrect use of
Stephen Berman [Sun, 28 Jul 2013 22:34:32 +0000 (00:34 +0200)]
* calendar/todo-mode.el (todo-rename-file): Fix incorrect use of
replace-regexp-in-string and inadvertent omissions in previous change.
(todo-filter-items): Ensure only file names are comma-separated in
renamed filtered items buffer.

10 years ago* frame.c (delete_frame): Avoid unnecessary 'this_f' test.
Paul Eggert [Sun, 28 Jul 2013 19:36:23 +0000 (21:36 +0200)]
* frame.c (delete_frame): Avoid unnecessary 'this_f' test.

Fixes: debbugs:14970

10 years agoFix bug #14970 with crashes when deleting many frames on MS-Windows.
Eli Zaretskii [Sun, 28 Jul 2013 15:22:27 +0000 (18:22 +0300)]
Fix bug #14970 with crashes when deleting many frames on MS-Windows.

 src/w32fns.c (w32_wnd_proc) <WM_IME_STARTCOMPOSITION>: Make sure the
 frame which got the message is still alive, before dereferencing
 its pointer.
 src/frame.c (delete_frame): Test "this" frame's minibuffer window to
 be a live window, before using it as such.

10 years ago* doc/emacs/glossary.texi (Glossary): Add some entries.
Xue Fuqiao [Sun, 28 Jul 2013 05:54:24 +0000 (13:54 +0800)]
* doc/emacs/glossary.texi (Glossary): Add some entries.

10 years agolisp/desktop.el: Optionally force offscreen frames back onscreen.
Juanma Barranquero [Sun, 28 Jul 2013 03:03:45 +0000 (05:03 +0200)]
lisp/desktop.el: Optionally force offscreen frames back onscreen.
(desktop-restoring-reuses-frames): New option.
(desktop--compute-pos, desktop--move-onscreen): New functions.
(desktop--make-frame): Use desktop--move-onscreen.

10 years agoSpelling fixes.
Paul Eggert [Sat, 27 Jul 2013 22:14:07 +0000 (00:14 +0200)]
Spelling fixes.

10 years agoMerge from CEDET upstream (8569).
David Engster [Sat, 27 Jul 2013 21:09:43 +0000 (23:09 +0200)]
Merge from CEDET upstream (8569).

* lisp/cedet/semantic/edit.el (semantic-edits-splice-remove): Wrap
  debug message removing middle tag in semantic-edits-verbose-flag
  check.

* semantic/bovine/el.el (semantic/db-el): New require.

* semantic/db-el.el (semanticdb-normalize-one-tag): It might be that a
  symbol comes from a file but cannot be found in its table.  This
  happens for instance when a symbol was dynamically created through a
  macro like `defstruct'.  In this case, return the original tag.
  (semanticdb-elisp-sym->tag): Deal with autoloaded functions, where
  the argument list is not available until the file is loaded.

10 years agoFontify a Java generic method as a function.
Alan Mackenzie [Sat, 27 Jul 2013 17:35:04 +0000 (17:35 +0000)]
Fontify a Java generic method as a function.
* progmodes/cc-langs.el (c-recognize-<>-arglists): Set the Java
value to t.

10 years ago* calendar/todo-mode.el: Add command to rename todo files.
Stephen Berman [Sat, 27 Jul 2013 15:58:56 +0000 (17:58 +0200)]
* calendar/todo-mode.el: Add command to rename todo files.
(todo-rename-file): New command.
(todo-key-bindings-t): Add key binding for it.  Change the
bindings of todo-filter-regexp-items(-multifile) to use `x'
instead of `r', since the latter is better suited to the new
renaming command.

10 years agoFix focus-out events on MS-Windows.
Eli Zaretskii [Sat, 27 Jul 2013 13:08:03 +0000 (16:08 +0300)]
Fix focus-out events on MS-Windows.

 src/w32term.c (w32_read_socket) <WM_KILLFOCUS>: Call
 w32_detect_focus_change instead of doing part of its job by hand.
 This fixes the problem whereby FOCUS_OUT events were not sent to
 the event queue.

10 years agoMake Java try-with-resources statement parse properly.
Alan Mackenzie [Sat, 27 Jul 2013 12:07:43 +0000 (12:07 +0000)]
Make Java try-with-resources statement parse properly.

progmodes/cc-langs.el (c-block-stmt-1-2-kwds, c-block-stmt-1-2-key): New
language constants/variables.
progmodes/cc-engine.el (c-beginning-of-statement-1, c-after-conditional): Adapt
to deal with c-block-stmt-1-2-key.
progmodes/cc-fonts.el (c-font-lock-declarations): Adapt to deal with
c-block-stmt-1-2-key.

10 years agoAuto-commit of generated files.
Glenn Morris [Sat, 27 Jul 2013 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

10 years ago* configure.ac: Extend the --with-sound option
Glenn Morris [Sat, 27 Jul 2013 01:18:21 +0000 (21:18 -0400)]
* configure.ac: Extend the --with-sound option
to allow specification of OSS or ALSA (see bug#14812#64).

10 years agolisp/desktop.el: Restore frames at their positions, even if offscreen.
Juanma Barranquero [Sat, 27 Jul 2013 01:02:00 +0000 (03:02 +0200)]
lisp/desktop.el: Restore frames at their positions, even if offscreen.
(desktop--make-frame): Apply most frame parameters after creating the frame
to force (partially or totally) offscreen frames to be restored as such.

10 years agoChangeLog fix.
Xue Fuqiao [Sat, 27 Jul 2013 00:23:21 +0000 (08:23 +0800)]
ChangeLog fix.