bpt/emacs.git
10 years agoSome fixes for vc-ignore.
Xue Fuqiao [Wed, 4 Sep 2013 00:31:13 +0000 (08:31 +0800)]
Some fixes for vc-ignore.

* lisp/vc/vc.el (vc-ignore): Rewrite.
(vc-default-ignore): New function.
(vc-default-ignore-completion-table): Use find-ignore-file.

* lisp/vc/vc-bzr.el (vc-bzr-ignore, vc-bzr-ignore-completion-table):
* lisp/vc/vc-git.el (vc-git-ignore, vc-git-ignore-completion-table):
* lisp/vc/vc-hg.el (vc-hg-ignore, vc-hg-ignore-completion-table):
Remove.  Most code moved to vc.el.

* doc/emacs/maintaining.texi (VC Ignore): Mention `vc-ignore' with prefix argument.

10 years agoMerge from mainline.
Xue Fuqiao [Sun, 4 Aug 2013 02:59:08 +0000 (10:59 +0800)]
Merge from mainline.

10 years agoCleanup for vc-ignore.
Xue Fuqiao [Sun, 4 Aug 2013 02:55:45 +0000 (10:55 +0800)]
Cleanup for vc-ignore.

* vc/vc.el (vc-ignore): Rewrite.
(vc-default-ignore-completion-table):
(vc--read-lines):
(vc--add-line, vc--remove-regexp): New functions.

* vc/vc-svn.el (vc-svn-ignore): Doc fix.
(vc-svn-ignore-completion-table): New function.

* vc/vc-hg.el (vc-hg-ignore): Rewrite.
(vc-hg-ignore-completion-table):
(vc-hg-find-ignore-file): New functions.

* vc/vc-git.el (vc-git-ignore): Rewrite.
(vc-git-ignore-completion-table):
(vc-git-find-ignore-file): New functions.

* vc/vc-dir.el (vc-dir-menu-map): Add menu for vc-dir-ignore.

* vc/vc-bzr.el (vc-bzr-ignore): Rewrite.
(vc-bzr-ignore-completion-table):
(vc-bzr-find-ignore-file): New functions.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sun, 4 Aug 2013 02:30:11 +0000 (19:30 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Try more precise TZ specification.

10 years agoetc/NEWS: Fix description of frame-restoring options.
Juanma Barranquero [Sun, 4 Aug 2013 01:43:26 +0000 (03:43 +0200)]
etc/NEWS: Fix description of frame-restoring options.

10 years agolisp/frameset.el: Fix typos and autoload cookies.
Juanma Barranquero [Sun, 4 Aug 2013 00:58:32 +0000 (02:58 +0200)]
lisp/frameset.el: Fix typos and autoload cookies.
(frameset-p, frameset-save): Fix autoload cookies.
(frameset-filter-minibuffer): Doc fix.
(frameset-restore): Fix autoload cookie.  Fix typo in docstring.

10 years agolisp/desktop.el (desktop-clear): Be more careful about deleting frames.
Juanma Barranquero [Sun, 4 Aug 2013 00:31:33 +0000 (02:31 +0200)]
lisp/desktop.el (desktop-clear): Be more careful about deleting frames.
Do it only when called interactively and desktop-restore-frames is non-nil.
Doc fix.
(desktop-read): Set desktop-saved-frameset to nil.

10 years ago* composite.h: Minor fixups.
Paul Eggert [Sat, 3 Aug 2013 21:09:57 +0000 (14:09 -0700)]
* composite.h: Minor fixups.

(composition_registered_p): Rename from COMPOSITION_REGISTERD_P
to fix a misspelling, and change it to an inline function while
we're at it (it need not be a macro).  All uses changed.
(composition_method, composition_valid_p):
Rewrite to avoid assignments in if-conditions.

10 years ago* composite.h (compose_region): Remove the leftover.
Dmitry Antipov [Sat, 3 Aug 2013 18:23:23 +0000 (22:23 +0400)]
* composite.h (compose_region): Remove the leftover.

10 years agoDo not use global Lisp_Object in composition macros.
Dmitry Antipov [Sat, 3 Aug 2013 18:16:43 +0000 (22:16 +0400)]
Do not use global Lisp_Object in composition macros.
* composite.h (composition_temp): Remove declaration.
(COMPOSITION_METHOD, COMPOSITION_VALID_P): Replace with...
(composition_method, composition_valid_p): ...inline functions.
* composite.c (composition_temp): Remove.
(run_composition_function, update_compositions)
(composition_compute_stop_pos, composition_adjust_point)
(Ffind_composition_internal):
* coding.c (handle_composition_annotation):
* xdisp.c (handle_composition_prop, check_point_in_composition):
Related users changed.

10 years ago* test/automated/icalendar-tests.el (icalendar-tests--test-export)
Glenn Morris [Sat, 3 Aug 2013 16:44:18 +0000 (09:44 -0700)]
* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import): Add debug messages.

10 years agoetc/NEWS: Document new package frameset.el.
Juanma Barranquero [Sat, 3 Aug 2013 15:10:13 +0000 (17:10 +0200)]
etc/NEWS: Document new package frameset.el.

10 years agolisp/frameset.el (frameset-prop): Preserve `setf' semantics in setter.
Juanma Barranquero [Sat, 3 Aug 2013 13:33:22 +0000 (15:33 +0200)]
lisp/frameset.el (frameset-prop): Preserve `setf' semantics in setter.

10 years agolisp/frameset.el (frameset-prop): New function and setter.
Juanma Barranquero [Sat, 3 Aug 2013 09:57:07 +0000 (11:57 +0200)]
lisp/frameset.el (frameset-prop): New function and setter.
(frameset-save): Do not modify frame list passed by the caller.

10 years agoDrop FRAME_PTR typedef.
Dmitry Antipov [Sat, 3 Aug 2013 03:29:03 +0000 (07:29 +0400)]
Drop FRAME_PTR typedef.
* composite.c, font.c, font.h, fontset.c, fontset.h, frame.c, frame.h:
* ftfont.c, ftxfont.c, gtkutil.c, gtkutil.h, image.c, keyboard.c:
* menu.c, menu.h, msdos.c, nsfns.m, nsfont.m, nsmenu.m, nsterm.h:
* nsterm.m, scroll.c, term.c, w32fns.c, w32font.c, w32font.h:
* w32inevt.c, w32inevt.h, w32menu.c, w32notify.c, w32term.c, w32term.h:
* w32uniscribe.c, w32xfns.c, widget.c, window.c, xdisp.c, xfaces.c:
* xfns.c, xfont.c, xftfont.c, xmenu.c, xselect.c, xterm.c:
All related users changed.

10 years ago* etc/TODO: Adjust entry about bug reporting.
Xue Fuqiao [Sat, 3 Aug 2013 02:57:00 +0000 (10:57 +0800)]
* etc/TODO: Adjust entry about bug reporting.

10 years ago* lisp/emacs-lisp/package.el (package-desc-from-define): Ignore unknown keys.
Stefan Monnier [Sat, 3 Aug 2013 02:34:22 +0000 (22:34 -0400)]
* lisp/emacs-lisp/package.el (package-desc-from-define): Ignore unknown keys.

10 years agoFix previous core-elisp-tests.el fix
Glenn Morris [Sat, 3 Aug 2013 01:47:54 +0000 (18:47 -0700)]
Fix previous core-elisp-tests.el fix

10 years ago* test/automated/core-elisp-tests.el (core-elisp-tests): Fix defcustom.
Glenn Morris [Sat, 3 Aug 2013 01:43:30 +0000 (18:43 -0700)]
* test/automated/core-elisp-tests.el (core-elisp-tests): Fix defcustom.

10 years agoicalendar-tests.el tweaks related to timezone handling
Glenn Morris [Sat, 3 Aug 2013 01:02:51 +0000 (21:02 -0400)]
icalendar-tests.el tweaks related to timezone handling

* test/automated/icalendar-tests.el (icalendar-tests--test-export)
(icalendar-tests--test-import):
Use getenv/setenv rather than set-time-zone-rule.
(icalendar-tests--test-import): Reset zone even if error occurred.

10 years ago* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode)
Stefan Monnier [Fri, 2 Aug 2013 21:23:07 +0000 (17:23 -0400)]
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode)
(easy-mmode-define-navigation): Avoid ((lambda (..) ..) ...).

10 years agoMake defvar affect the default binding outside of any let.
Stefan Monnier [Fri, 2 Aug 2013 21:16:33 +0000 (17:16 -0400)]
Make defvar affect the default binding outside of any let.
* src/eval.c (default_toplevel_binding): New function.
(Fdefvar): Use it.
(unbind_to, backtrace_eval_unrewind): Do a bit of CSE simplification.
(Fdefault_toplevel_value, Fset_default_toplevel_value): New subrs.
(syms_of_eval): Export them.
* src/data.c (Fdefault_value): Micro cleanup.
* src/term.c (init_tty): Use "false".
* lisp/custom.el (custom-initialize-default, custom-initialize-set)
(custom-initialize-reset, custom-initialize-changed): Affect the
toplevel-default-value (bug#6275, bug#14586).
* lisp/emacs-lisp/advice.el (ad-compile-function): Undo previous workaround
for bug#6275.
* test/automated/core-elisp-tests.el: New file.

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)