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

10 years agoKeybinding fix for vc-dir.
Xue Fuqiao [Sat, 27 Jul 2013 00:09:51 +0000 (08:09 +0800)]
Keybinding fix for vc-dir.

* lisp/vc/vc-dir.el (vc-dir-mode-map): Add binding for vc-root-diff.
* doc/emacs/maintaining.texi (VC Directory Commands): Mention `D' and `L' in vc-dir.

10 years agoGnus: Add option to sort threads non-recursively
Tassilo Horn [Fri, 26 Jul 2013 22:24:33 +0000 (22:24 +0000)]
Gnus: Add option to sort threads non-recursively

gnus-sum.el (gnus-sort-threads-recursively): New defcustom.
(gnus-sort-threads): Use it.
gnus.texi (Sorting the Summary Buffer): Document new defcustom `gnus-sort-threads-recursively'.

10 years agoFix documentation of list-processes and process-list.
Eli Zaretskii [Fri, 26 Jul 2013 18:48:05 +0000 (21:48 +0300)]
Fix documentation of list-processes and process-list.

 src/process.c (Fprocess_list): Doc fix.

 lisp/simple.el (list-processes): Doc fix.

10 years ago* lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): Use the new
Stefan Monnier [Fri, 26 Jul 2013 18:41:18 +0000 (14:41 -0400)]
* lisp/emacs-lisp/nadvice.el (advice--called-interactively-skip): Use the new
`base' arg of backtrace-frame.

10 years agolisp/desktop.el (desktop--select-frame): Try harder to reuse the initial frame.
Juanma Barranquero [Fri, 26 Jul 2013 17:49:52 +0000 (19:49 +0200)]
lisp/desktop.el (desktop--select-frame): Try harder to reuse the initial frame.

10 years agoFix typos in ChangeLogs.
Juanma Barranquero [Fri, 26 Jul 2013 17:02:22 +0000 (19:02 +0200)]
Fix typos in ChangeLogs.

10 years ago* lisp/emacs-lisp/edebug.el: Use backtrace-eval to handle lexical variables.
Stefan Monnier [Fri, 26 Jul 2013 15:09:04 +0000 (11:09 -0400)]
* lisp/emacs-lisp/edebug.el: Use backtrace-eval to handle lexical variables.
(edebug-eval): Use backtrace-eval.
(edebug--display, edebug--recursive-edit): Don't let-bind the
edebug-outer-* vars that keep track of variables we locally let-bind.
(edebug-outside-excursion): Don't restore outside values of locally
let-bound vars.
(edebug--display): Use user-error.
(cl-lexical-debug, cl-debug-env): Remove.

10 years agolisp/desktop.el (desktop-restore-frames): Call `sit-for'.
Juanma Barranquero [Fri, 26 Jul 2013 14:01:19 +0000 (16:01 +0200)]
lisp/desktop.el (desktop-restore-frames): Call `sit-for'.
We want to be sure that new frames are visible before deleting
any remaining ones.

10 years agoFix bug #14841 with invisible frames on MS-Windows.
Eli Zaretskii [Fri, 26 Jul 2013 09:59:59 +0000 (12:59 +0300)]
Fix bug #14841 with invisible frames on MS-Windows.

 src/w32term.c (w32_read_socket) <WM_EMACS_PAINT>: Warn about frame
 being re-exposed only if it didn't ask to become visible.
 <WM_SIZE>: Under SIZE_RESTORED, only set the frame visible if it
 was previously iconified.
 (x_iconify_frame): Mark the frame iconified.

10 years agolisp/vc/vc-dir.el (vc-dir-mode-map): Add binding for vc-print-root-log.
Matthias Meulien [Fri, 26 Jul 2013 09:49:59 +0000 (11:49 +0200)]
lisp/vc/vc-dir.el (vc-dir-mode-map): Add binding for vc-print-root-log.

10 years ago*** empty log message ***
Richard M. Stallman [Fri, 26 Jul 2013 09:33:38 +0000 (05:33 -0400)]
*** empty log message ***

10 years agoAdd aliases for encrypting mail.
Richard M. Stallman [Fri, 26 Jul 2013 09:32:44 +0000 (05:32 -0400)]
Add aliases for encrypting mail.
* epa.el (epa-mail-aliases): New option.
* epa-mail.el (epa-mail-encrypt): Rewrite to be callable from programs.
Bind inhibit-read-only so read-only text doesn't ruin everything.
(epa-mail-default-recipients): New subroutine broken out.
Handle epa-mail-aliases.

10 years agoFix minor problems found by static checking.
Paul Eggert [Fri, 26 Jul 2013 08:39:55 +0000 (09:39 +0100)]
Fix minor problems found by static checking.

* eval.c (get_backtrace_frame, backtrace_eval_unrewind): Now static.
(backtrace_eval_unrewind): ';' -> '{}' to pacify GCC.

10 years agoAdd support for lexical variables to the debugger's `e' command.
Stefan Monnier [Fri, 26 Jul 2013 07:38:18 +0000 (03:38 -0400)]
Add support for lexical variables to the debugger's `e' command.
* lisp/emacs-lisp/debug.el (debug): Don't let-bind the debugger-outer-*
vars, except for debugger-outer-match-data.
(debugger-frame-number): Move check for "on a function call" from
callers into it.  Add `skip-base' argument.
(debugger-frame, debugger-frame-clear): Simplify accordingly.
(debugger-env-macro): Only reset the state stored in non-variables,
i.e. current-buffer and match-data.
(debugger-eval-expression): Rewrite using backtrace-eval.
* lisp/subr.el (internal--called-interactively-p--get-frame): Remove.
(called-interactively-p):
* lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip): Use the new
`base' arg of backtrace-frame instead.
* src/eval.c (set_specpdl_old_value): New function.
(unbind_to): Minor simplification.
(get_backtrace_frame): New function.
(Fbacktrace_frame): Use it.  Add `base' argument.
(backtrace_eval_unrewind, Fbacktrace_eval): New functions.
(syms_of_eval): Export backtrace-eval.
* src/xterm.c (x_focus_changed): Simplify.

10 years agoFix bug #14946 with documentation of fringe-mode the variable.
Eli Zaretskii [Fri, 26 Jul 2013 06:56:35 +0000 (09:56 +0300)]
Fix bug #14946 with documentation of fringe-mode the variable.

 doc/emacs/display.texi (Fringes): Document the variable fringe-mode.

10 years ago* lisp/align.el (align-regexp): Doc fix.
Glenn Morris [Fri, 26 Jul 2013 02:45:15 +0000 (22:45 -0400)]
* lisp/align.el (align-regexp): Doc fix.
(align-region): Explicit error if subexpression missing/does not match.

Fixes: debbugs:14857

10 years ago* lisp/simple.el (global-visual-line-mode): Do not duplicate the mode lighter.
Glenn Morris [Fri, 26 Jul 2013 01:55:06 +0000 (21:55 -0400)]
* lisp/simple.el (global-visual-line-mode): Do not duplicate the mode lighter.

Fixes: debbugs:14858

10 years ago* etc/spook.lines: Additions (tiny change)
Micah Anderson [Fri, 26 Jul 2013 01:45:52 +0000 (21:45 -0400)]
* etc/spook.lines: Additions  (tiny change)

Fixes: debbugs:14658

10 years agognus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characte...
Andreas Schwab [Thu, 25 Jul 2013 23:40:51 +0000 (23:40 +0000)]
gnus-art.el (gnus-button-url-regexp): Make it match url in which punctuation characters follow parentheses (bug#14950)

10 years agoAdd Makefile rules for ido.texi
Glenn Morris [Thu, 25 Jul 2013 15:46:00 +0000 (08:46 -0700)]
Add Makefile rules for ido.texi

* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add ido.
(ido, $(buildinfodir)/ido$(INFO_EXT), ido.dvi, ido.pdf): New rules.

* info/dir: Add ido.

10 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 25 Jul 2013 10:18:09 +0000 (06:18 -0400)]
Auto-commit of loaddefs files.

10 years agoIn display-buffer bind split-window-keep-point to t, bug#14829.
Martin Rudalics [Thu, 25 Jul 2013 09:58:27 +0000 (11:58 +0200)]
In display-buffer bind split-window-keep-point to t, bug#14829.

* window.el (display-buffer): In display-buffer bind
split-window-keep-point to t, bug#14829.

10 years agolisp/desktop.el: Use pcase-let, pcase-let* in a few places.
Juanma Barranquero [Thu, 25 Jul 2013 09:24:26 +0000 (11:24 +0200)]
lisp/desktop.el: Use pcase-let, pcase-let* in a few places.
(desktop--select-frame, desktop--sort-states, desktop-restore-frames):
Deobfuscate access to desktop--mini values.

10 years agolisp/desktop.el: Rename internal "desktop-X" frame params to "desktop--X".
Juanma Barranquero [Thu, 25 Jul 2013 08:35:04 +0000 (10:35 +0200)]
lisp/desktop.el: Rename internal "desktop-X" frame params to "desktop--X".
(desktop-filter-parameters-alist, desktop--filter-restore-desktop-parm)
(desktop--filter-save-desktop-parm, desktop--process-minibuffer-frames)
(desktop--select-frame, desktop--sort-states, desktop-restore-frames):
Change accordingly.

10 years ago* fileio.c (Finsert_file_contents): Use a more-conservative fix.
Paul Eggert [Thu, 25 Jul 2013 08:07:47 +0000 (09:07 +0100)]
* fileio.c (Finsert_file_contents): Use a more-conservative fix.

Fixes: debbugs:14936

10 years ago* fileio.c (Finsert_file_contents): Avoid double-close.
Paul Eggert [Thu, 25 Jul 2013 07:29:36 +0000 (08:29 +0100)]
* fileio.c (Finsert_file_contents): Avoid double-close.

Fixes: debbugs:14936

10 years agoMerge from emacs-24; up to 2013-01-01T11:02:14Z!rudalics@gmx.at
Glenn Morris [Thu, 25 Jul 2013 07:10:56 +0000 (00:10 -0700)]
Merge from emacs-24; up to 2013-01-01T11:02:14Z!rudalics@gmx.at

10 years ago* make-dist: Add a --tests option, to include test/ (backport from trunk)
Glenn Morris [Thu, 25 Jul 2013 07:03:33 +0000 (00:03 -0700)]
* make-dist: Add a --tests option, to include test/   (backport from trunk)

10 years ago* make-dist: Add a --tests option, to include test/.
Glenn Morris [Thu, 25 Jul 2013 06:57:25 +0000 (23:57 -0700)]
* make-dist: Add a --tests option, to include test/.

10 years agoReduce use of @email in doc/misc
Glenn Morris [Thu, 25 Jul 2013 01:25:18 +0000 (21:25 -0400)]
Reduce use of @email in doc/misc

In many cases it serves no purpose.  It gets converted to mailto:
in html output, which is mainly just an invitation to get spam.

* doc/misc/erc.texi (Special Features): Update contact information.
(History): Avoid using @email.

* doc/misc/eshell.texi (Bugs and ideas): Minor updates.

* doc/misc/faq.texi (Reporting bugs, Origin of the term Emacs)
(Setting up a customization file)
(Using an already running Emacs process, Turning off beeping)
(Packages that do not come with Emacs)
(Replying to the sender of a message): Avoid using @email.

* doc/misc/pcl-cvs.texi (Contributors, Bugs): Avoid using @email.

* doc/misc/reftex.texi (Imprint): Avoid using @email.

* doc/misc/ses.texi (Top): Update bug reporting instructions.
(Acknowledgments): Avoid using @email.

* doc/misc/woman.texi (Introduction, Background): Remove outdated information.
(Bugs, Acknowledgments): Avoid using @email.