]> code.delx.au - gnu-emacs/log
gnu-emacs
12 years agoMerge from emacs-23; up to 2010-06-22T07:41:10Z!rgm@gnu.org
Glenn Morris [Sun, 6 Nov 2011 23:38:01 +0000 (15:38 -0800)]
Merge from emacs-23; up to 2010-06-22T07:41:10Z!rgm@gnu.org

12 years agoFix some portability problems with 'inline'.
Paul Eggert [Sun, 6 Nov 2011 21:12:10 +0000 (13:12 -0800)]
Fix some portability problems with 'inline'.

* dispextern.h (window_box, window_box_height, window_text_bottom_y)
(window_box_width, window_box_left, window_box_left_offset)
(window_box_right, window_box_right_offset): Declare extern.
Otherwise, these inline functions do not conform to C99 and
are miscompiled by Microsoft compilers.  Reported by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html>.
* intervals.c (adjust_intervals_for_insertion)
(adjust_intervals_for_deletion): Now extern, because otherwise the
extern inline functions 'offset_intervals' couldn't refer to it.
(static_offset_intervals): Remove.
(offset_intervals): Rewrite using the old contents of
static_offset_intervals.  The old version didn't conform to C99
because an extern inline function contained a reference to an
identifier with static linkage.

12 years ago* src/keyboard.c (interrupt_signal): Don't call kill-emacs while in
Andreas Schwab [Sun, 6 Nov 2011 19:42:14 +0000 (20:42 +0100)]
* src/keyboard.c (interrupt_signal): Don't call kill-emacs while in
GC.

12 years agoFix bug #9963 with abort in "temacs -nw".
Eli Zaretskii [Sun, 6 Nov 2011 18:21:52 +0000 (20:21 +0200)]
Fix bug #9963 with abort in "temacs -nw".

 src/xdisp.c (init_iterator, reseat_to_string): Don't set the
 iterator's bidi_p flag if Vpurify_flag is non-nil.
 (Fcurrent_bidi_paragraph_direction): If Vpurify_flag is non-nil,
 return Qleft_to_right.

12 years agoManual updates for window changes.
Chong Yidong [Sun, 6 Nov 2011 06:14:01 +0000 (14:14 +0800)]
Manual updates for window changes.

* doc/emacs/windows.texi (Basic Window): Add xref to Cursor Display.
(Split Window): Document negative arg for splitting commands.
(Other Window): Document mouse-1 in text area of window.
(Change Window): Don't mention window attributes, since they
aren't defined.  C-x 1 can't be used with minibuffer windows.
Windows are no longer auto-deleted.
(Window Choice): Add xref to Choosing Window in Lisp manual.
(Window Convenience): Note that windmove disables shift-selection.
Move M-x compare-windows here from Other Window node.

* doc/emacs/custom.texi (Mouse Buttons):
* doc/emacs/search.texi (Isearch Scroll):
* doc/emacs/windows.texi (Split Window): Use new names split-window-below
and split-window-right.

* doc/lispref/windows.texi (Basic Windows): Clarify various definitions.
Treat window-normalize-* as internal; don't document them.
(Windows and Frames): Various clarifications, e.g. non-live
windows also belong to frames.  Fix window-list description.
Simplify window nesting example.
(Splitting Windows, Window Configurations): Use
split-window-below.

12 years agoDelete window-combination-p; tweaks to window-top-child and window-left-child.
Chong Yidong [Sun, 6 Nov 2011 03:59:53 +0000 (11:59 +0800)]
Delete window-combination-p; tweaks to window-top-child and window-left-child.

* lisp/window.el (window-combination-p): Function deleted; its
side-effect is not used in any existing code.
(window-combinations, window-combined-p): Call window-*-child
directly.

* window.c (Fwindow_live_p, Fwindow_frame, Fframe_root_window)
(Fminibuffer_window, Fwindow_buffer, Fwindow_splits)
(Fset_window_splits, Fwindow_nest, Fset_window_nest)
(Fwindow_use_time, Fwindow_total_size, Fwindow_normal_size)
(Fwindow_new_normal, Fwindow_left_column, Fwindow_top_line)
(Fwindow_margins, Fwindow_fringes, Fwindow_scroll_bars)
(Fwindow_vscroll): Doc fix.
(Fwindow_top_child, Fwindow_left_child): Eliminate a nil default
argument, since it makes no sense to pass a live window and for
consistency with window-child.

12 years ago* src/makefile.w32-in ($(TEMACS), (gl-stamp)): Use $(THISDIR) to
Christoph Scholtes [Sat, 5 Nov 2011 22:55:08 +0000 (16:55 -0600)]
* src/makefile.w32-in ($(TEMACS), (gl-stamp)): Use $(THISDIR) to
  support MSVC.

12 years ago* inc/stdint.h (UINT64_MAX, UINT64_MIN, INT64_MIN, UINTMAX_MAX)
Christoph Scholtes [Sat, 5 Nov 2011 22:33:44 +0000 (16:33 -0600)]
* inc/stdint.h (UINT64_MAX, UINT64_MIN, INT64_MIN, UINTMAX_MAX)
(UINTMAX_MIN, INTMAX_MAX, INTMAX_MIN, UINT32_MIN, UINT32_MAX)
(INT32_MIN, UINTMAX_MAX, UINTMAX_MIN, INTMAX_MAX, INTMAX_MIN)
(intmax_t, INT64_MAX): Add for MSVC.

12 years ago* src/w32font.c (font_matches_spec): Filter out non-Japanese kana fonts.
Jason Rumney [Sat, 5 Nov 2011 18:50:59 +0000 (02:50 +0800)]
* src/w32font.c (font_matches_spec): Filter out non-Japanese kana fonts.
(add_font_entity_to_list): Filter out non-Japanese Shift-JIS
fonts.
(add_font_entity_to_list): Fix logic errors in mixed boolean and
bitwise arithmetic preventing use of unicode-sip and non-truetype
opentype fonts.

Fixes: debbugs:6029
12 years agoFix definition of `mode_t'.
Christoph Scholtes [Sat, 5 Nov 2011 17:16:01 +0000 (11:16 -0600)]
Fix definition of `mode_t'.

12 years agoFix MSVC build in lib-src.
Eli Zaretskii [Sat, 5 Nov 2011 16:30:13 +0000 (18:30 +0200)]
Fix MSVC build in lib-src.

 src/s/ms-w32.h (fstat, stat, utime): Move redirections to
 "emacs"-only part.

Fixes: debbugs:99690
12 years agoModify w32fns.c similarly to 2011-11-05T12:04:34Z!jan.h.d@swipnet.se.
Eli Zaretskii [Sat, 5 Nov 2011 16:25:16 +0000 (18:25 +0200)]
Modify w32fns.c similarly to 2011-11-05T12:04:34Z!jan.h.d@swipnet.se.

 src/w32fns.c (x_create_tip_frame, Fx_create_frame): Rearrange
 initialization code to keep similarity to xfns.c after changes
 from 2011-11-05.

Fixes: debbugs:9943
12 years ago* nt/config.nt: (mode_t) [!__GNUC__]: Define mode_t for MSVC.
Christoph Scholtes [Sat, 5 Nov 2011 14:59:51 +0000 (08:59 -0600)]
* nt/config.nt: (mode_t) [!__GNUC__]: Define mode_t for MSVC.

12 years agoFix compilation with MSVC in lib/.
Eli Zaretskii [Sat, 5 Nov 2011 14:10:27 +0000 (16:10 +0200)]
Fix compilation with MSVC in lib/.

 nt/config.nt (inline) [!__GNUC__]: Define to __inline for MSVC.

12 years ago* nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG.
Jan Djärv [Sat, 5 Nov 2011 12:25:01 +0000 (13:25 +0100)]
* nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG.
(unwind_create_frame): New function.
(Fx_create_frame): Restructure code to be more similar to the one in
xfns.c.  Call record_unwind_protect with unwind_create_frame (Bug#9943).
Initialize image_cache_refcount if GLYPH_DEBUG (Bug#9943).
Move terminal->reference_count++ just before making the frame official
(Bug#9943).

* nsterm.m (x_free_frame_resources): New function.
(x_destroy_window): Move code to x_free_frame_resources.

12 years ago* xfns.c (unwind_create_frame): Fix comment.
Jan Djärv [Sat, 5 Nov 2011 12:04:34 +0000 (13:04 +0100)]
* xfns.c (unwind_create_frame): Fix comment.
(Fx_create_frame, x_create_tip_frame): Move
terminal->reference_count++ just before making the frame
official. Move initialization of image_cache_refcount and
dpyinfo_refcount before calling init_frame_faces.

Fixes: debbugs:9943
12 years agoSupport MSVC build with newer versions of Visual Studio.
Eli Zaretskii [Sat, 5 Nov 2011 11:34:56 +0000 (13:34 +0200)]
Support MSVC build with newer versions of Visual Studio.

Small portions of the changes by Fabrice Popineau <fabrice.popineau@supelec.fr>.

 src/makefile.w32-in (TAGS-gmake): Don't use $(patsubst ...), as
 Nmake barfs on that.  Use $(OBJ*_c) variables instead, defined on
 nt/gmake.defs.
 src/lisp.h (ENUM_BF): New macro, for enumerated types in bitfields,
 which are not supported by MSVC.
 (Lisp_Symbol, Lisp_Misc_Any, Lisp_Marker, Lisp_Misc_Overlay)
 (Lisp_Save_Value, Lisp_Free): Use ENUM_BF for enumerated types in
 bitfields.
 (Lisp_Object) [USE_LISP_UNION_TYPE]: Use ENUM_BF for enumerated
 types in bitfields.
 (DEFUN) [_MSC_VER]: Define in a different way for MSVC.
 src/w32fns.c [_MSC_VER]: DECLARE_HANDLE for any MSVC version.
 src/w32.c: Don't include w32api.h for MSVC.
 (init_environment) [_MSC_VER]: Call sys_access, not _access.
 src/s/ms-w32.h <sigset_t, ssize_t> [_MSC_VER]: Typedefs for MSVC.
 [_MSC_VER]: Include sys/timeb.h, sys/stat.h, and signal.h.
 (fstat, stat, utime) [_MSC_VER]: Redirect to their sys_* cousins.
 (malloc, free, realloc, calloc) [_MSC_VER]: Always redirect to the
 e_* cousins.
 (alloca) [_MSC_VER]: Define to _alloca.
 src/lisp.h (DECL_ALIGN) [_MSC_VER]: Define for MSVC.
 src/regex.c <re_char> [_MSC_VER]: A separate definition for MSVC.
 nt/makefile.w32-in (clean-other-dirs-nmake)
 (distclean-other-dirs-nmake, maintainer-clean-other-dirs-nmake):
 Update for current structure of doc/ subdirectories.
 nt/gmake.defs (OBJ0_c, OBJ1_c, OBJ2_c): New variables.
 nt/INSTALL: Update for newer versions of MSVC.
 lib/makefile.w32-in (FRC): New dummy target.
 (TAGS): Depend on FRC.

Fixes: debbugs:9960
12 years agoAuto-commit of generated files.
Glenn Morris [Sat, 5 Nov 2011 10:18:32 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years ago* window.el (window-normalize-window): Rename from window-normalize-any-window.
Chong Yidong [Sat, 5 Nov 2011 04:04:33 +0000 (12:04 +0800)]
* window.el (window-normalize-window): Rename from window-normalize-any-window.
New arg LIVE-ONLY, replacing window-normalize-live-window.
(window-normalize-live-window): Deleted.
(window-combination-p, window-combined-p, window-combinations)
(walk-window-subtree, window-atom-root, window-min-size)
(window-sizable, window-sizable-p, window-size-fixed-p)
(window-min-delta, window-max-delta, window-resizable)
(window-resizable-p, window-full-height-p, window-full-width-p)
(window-current-scroll-bars, window-point-1, set-window-point-1)
(window-at-side-p, window-in-direction, window-resize)
(adjust-window-trailing-edge, maximize-window, minimize-window)
(window-deletable-p, delete-window, delete-other-windows)
(record-window-buffer, unrecord-window-buffer)
(switch-to-prev-buffer, switch-to-next-buffer, window--delete)
(quit-window, split-window, window-state-put)
(set-window-text-height, fit-window-to-buffer)
(shrink-window-if-larger-than-buffer): Callers changed.

12 years ago* lisp/window.el (window-valid-p): Rename from window-any-p.
Chong Yidong [Sat, 5 Nov 2011 03:20:45 +0000 (11:20 +0800)]
* lisp/window.el (window-valid-p): Rename from window-any-p.
(window-normalize-any-window, window-size-ignore)
(window-state-get): Callers changed.

12 years agoIncrease required GnuTLS version (bug#9929)
Glenn Morris [Fri, 4 Nov 2011 22:16:46 +0000 (18:16 -0400)]
Increase required GnuTLS version (bug#9929)

* configure.in: Increase minimum GnuTLS version to 2.6.6.
Do not include GnuTLS version info in final summary message.

* etc/NEWS: Add FIXME related to GnuTLS version.

12 years agoFix rmail-next/prev-same-subject.
Eli Zaretskii [Fri, 4 Nov 2011 22:07:12 +0000 (00:07 +0200)]
Fix rmail-next/prev-same-subject.

 lisp/mail/rmail.el (rmail-simplified-subject): Decode subject with
 rfc2047-decode-string.
 (rmail-mime-toggle-hidden): Declare to avoid byte-compilation
 warnings.

12 years agoLast part of fix for bug #8562 with Emacs on Windows 9X.
Eli Zaretskii [Fri, 4 Nov 2011 21:59:16 +0000 (23:59 +0200)]
Last part of fix for bug #8562 with Emacs on Windows 9X.

 nt/runemacs.c (ensure_unicows_dll): New function, tries to load
 UNICOWS.DLL on Windows 9X.
 (WinMain): If ensure_unicows_dll fails to find UNICOWS.DLL,
 display a dialog to the effect that Emacs cannot be started.

12 years agoFix bug #9955 with mouse-highlight that starts at beginning of window.
Eli Zaretskii [Fri, 4 Nov 2011 20:01:06 +0000 (22:01 +0200)]
Fix bug #9955 with mouse-highlight that starts at beginning of window.

 src/xdisp.c (note_mouse_highlight): If either of
 previous/next-single-property-change returns nil, treat that as
 the beginning or the end of the buffer.

12 years ago* gtkutil.c (xg_make_tool_item): Add callbacks of one of wimage or
Jan Djärv [Fri, 4 Nov 2011 18:18:05 +0000 (19:18 +0100)]
* gtkutil.c (xg_make_tool_item): Add callbacks of one of wimage or
label is not null.
(xg_tool_item_stale_p): Handle the fact that wimage and/or wlbl
may be NULL.

Fixes: debbugs:9951
12 years agoFix documentation per bug #9949.
Eli Zaretskii [Fri, 4 Nov 2011 10:09:41 +0000 (12:09 +0200)]
Fix documentation per bug #9949.

 src/window.c (Fwindow_body_size): Mention in the doc string that the
 return value is in frame's canonical units.
 lisp/window.el (window-body-height, window-body-width): Mention in
 the doc string that the return values are in frame's canonical
 units.
 doc/lispref/windows.texi (Window Sizes): Mention in the doc string that the
 return values of `window-body-height' and `window-body-width' are
 in frame's canonical units.

12 years agognus-sum.el (gnus-articles-to-read): Change wording in prompt to be slightly clearer.
Lars Magne Ingebrigtsen [Thu, 3 Nov 2011 23:28:52 +0000 (23:28 +0000)]
gnus-sum.el (gnus-articles-to-read): Change wording in prompt to be slightly clearer.

12 years agoAdd c-nonlabel-token-2-key to cc-langs.el.
Alan Mackenzie [Thu, 3 Nov 2011 22:14:11 +0000 (22:14 +0000)]
Add c-nonlabel-token-2-key to cc-langs.el.

12 years agomessage.el (message-send-and-exit): Document `arg'.
Lars Magne Ingebrigtsen [Thu, 3 Nov 2011 22:16:08 +0000 (22:16 +0000)]
message.el (message-send-and-exit): Document `arg'.

12 years agoFix bug #9947 with referencing uninitialized variable.
Eli Zaretskii [Thu, 3 Nov 2011 22:11:40 +0000 (00:11 +0200)]
Fix bug #9947 with referencing uninitialized variable.

 src/xdisp.c (note_mouse_highlight): Initialize `area'.

12 years agoEdit lisp/ChangeLog
Alan Mackenzie [Thu, 3 Nov 2011 22:10:02 +0000 (22:10 +0000)]
Edit lisp/ChangeLog

12 years agoMerge.
Alan Mackenzie [Thu, 3 Nov 2011 22:03:18 +0000 (22:03 +0000)]
Merge.

12 years agoFix bug #9943 on X.
Eli Zaretskii [Thu, 3 Nov 2011 21:56:32 +0000 (23:56 +0200)]
Fix bug #9943 on X.

 src/xfns.c (unwind_create_frame): If needed, free the glyph
 matrices of the partially constructed frame.

12 years agoAdd c-nonlabel-token-2-key to cc-langs.el.
Alan Mackenzie [Thu, 3 Nov 2011 21:55:15 +0000 (21:55 +0000)]
Add c-nonlabel-token-2-key to cc-langs.el.

12 years ago(url-cookie-expired-p): Protect against zero-length cookie expiry dates.
Lars Magne Ingebrigtsen [Thu, 3 Nov 2011 21:53:59 +0000 (22:53 +0100)]
(url-cookie-expired-p): Protect against zero-length cookie expiry dates.

12 years ago* srecode.el:
David Engster [Thu, 3 Nov 2011 20:03:45 +0000 (21:03 +0100)]
* srecode.el:
* srecode/texi.el:
* srecode/template.el:
* srecode/java.el:
* srecode/insert.el:
* srecode/document.el:
* srecode/dictionary.el:
* srecode/compile.el:
* semantic/wisent/java-tags.el:
* semantic/texi.el:
* semantic/sort.el:
* semantic/lex-spp.el:
* semantic/idle.el:
* semantic/html.el:
* semantic/db-typecache.el:
* semantic/analyze/complete.el:
* ede/generic.el:
* ede/custom.el:
* ede/cpp-root.el:
* ede/base.el: Fix filenames in comments and headers.

* semantic/db-find.el:
* srecode/insert.el (srecode-insert-include-lookup):
* ede/proj-comp.el (ede-compilation-program): Fix it's -> its in
comments and docstrings.

* semantic/ctxt.el (semantic-end-of-context-default):
* semantic/find.el (semantic-find-tags-by-scope-protection):
* semantic/java.el (semantic-documentation-for-tag): Fix typos in
docstrings.

* semantic/db.el (semanticdb-table, semanticdb-abstract-cache)
(semanticdb-abstract-db-cache):
* semantic/decorate/include.el
(semantic-decoration-unknown-include-describe): Fix filenames in
docstring.

* semantic/ede-grammar.el (semantic-ede-grammar-compiler-wisent):
(semantic-ede-grammar-compiler-bovine): Fix requires that are
added to the grammar-make-script.

12 years ago* lisp/gnus/nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible.
Stefan Monnier [Thu, 3 Nov 2011 19:28:45 +0000 (15:28 -0400)]
* lisp/gnus/nnimap.el (nnimap-open-connection-1): Use tcp-keealive if possible.

12 years agosrc/ChangeLog: Fix entry for last commit.
Eli Zaretskii [Thu, 3 Nov 2011 19:06:42 +0000 (21:06 +0200)]
src/ChangeLog: Fix entry for last commit.

12 years agoFix bug #9943 with abort at shutdown.
Eli Zaretskii [Thu, 3 Nov 2011 19:04:18 +0000 (21:04 +0200)]
Fix bug #9943 with abort at shutdown.

 src/w32fns.c (unwind_create_frame): If needed, free the glyph
 matrices of the partially constructed frame.

12 years agognus-util.el (gnus-bound-and-true-p): Another comment to explain why we don't use...
Teodor Zlatanov [Wed, 2 Nov 2011 22:59:23 +0000 (22:59 +0000)]
gnus-util.el (gnus-bound-and-true-p): Another comment to explain why we don't use `bound-and-true-p'.

12 years ago* lisp/window.el (switch-to-buffer): Use `force-same-window' interactively.
Stefan Monnier [Wed, 2 Nov 2011 12:56:48 +0000 (08:56 -0400)]
* lisp/window.el (switch-to-buffer): Use `force-same-window' interactively.

12 years agoIn quit-window call unrecord-window-buffer later. (Bug#9937)
Martin Rudalics [Wed, 2 Nov 2011 09:39:18 +0000 (10:39 +0100)]
In quit-window call unrecord-window-buffer later.  (Bug#9937)

* window.el (quit-window): Call unrecord-window-buffer after
showing another buffer in the window.  (Bug#9937)
(bury-buffer): Call switch-to-prev-buffer with second argument
'bury.

12 years agoRename `gnus-bound-and-true-dumber-p' to `gnus-bound-and-true-p'.
Teodor Zlatanov [Wed, 2 Nov 2011 07:28:14 +0000 (07:28 +0000)]
Rename `gnus-bound-and-true-dumber-p' to `gnus-bound-and-true-p'.

12 years agoFix typos.
Juanma Barranquero [Wed, 2 Nov 2011 02:05:53 +0000 (03:05 +0100)]
Fix typos.

12 years agoFix bug#9935
Juanma Barranquero [Wed, 2 Nov 2011 01:58:59 +0000 (02:58 +0100)]
Fix bug#9935
* lisp/vc/vc-bzr.el: Accept status with more than 9 shelves.
  Reported by Colin D Bennett <colin@gibibit.com>.

12 years agoChangeLog fixes.
Glenn Morris [Tue, 1 Nov 2011 19:22:57 +0000 (15:22 -0400)]
ChangeLog fixes.

12 years agoRename locals to match their nature.
Eli Zaretskii [Tue, 1 Nov 2011 19:19:07 +0000 (21:19 +0200)]
Rename locals to match their nature.

 src/xdisp.c (mouse_face_from_buffer_pos, note_mouse_highlight): Rename
 cover_string to disp_string.

12 years agoFix mouse highlight in continued lines on a TTY.
Eli Zaretskii [Tue, 1 Nov 2011 18:57:03 +0000 (20:57 +0200)]
Fix mouse highlight in continued lines on a TTY.

 src/xdisp.c (mouse_face_from_buffer_pos): Fix a typo in a comment.
 Don't stop backward scan on the continuation glyph, even though
 its CHARPOS is positive.

12 years agoRemove unused variable temp-buffer-show-specifiers.
Martin Rudalics [Tue, 1 Nov 2011 16:21:41 +0000 (17:21 +0100)]
Remove unused variable temp-buffer-show-specifiers.

* window.c (temp_output_buffer_show): Don't use
Vtemp_buffer_show_specifiers.
(Vtemp_buffer_show_specifiers): Remove unused variable.
* help.el (with-help-window): Don't reference
temp-buffer-show-specifiers in doc-string.

12 years agognus-bound-and-true-dumper-p to fix XEmacs build.
Ted Zlatanov [Mon, 31 Oct 2011 22:55:39 +0000 (22:55 +0000)]
gnus-bound-and-true-dumper-p to fix XEmacs build.

12 years agognus.texi (Other Gnus Versions): Remove.
Katsumi Yamaoka [Mon, 31 Oct 2011 22:26:45 +0000 (22:26 +0000)]
gnus.texi (Other Gnus Versions): Remove.

12 years agognus-registry-enabled fixes to give default value.
Ted Zlatanov [Mon, 31 Oct 2011 22:11:23 +0000 (22:11 +0000)]
gnus-registry-enabled fixes to give default value.

12 years agoFix previous commit.
Eli Zaretskii [Mon, 31 Oct 2011 17:49:10 +0000 (19:49 +0200)]
Fix previous commit.

 config.bat: Use config.in and Makefile.in from src/ and lib/, if
 they exist there, else from autogen/.
 make-dist: Don't add `autogen'.

12 years agoFix distribution tarball for the MS-DOS build.
Eli Zaretskii [Mon, 31 Oct 2011 17:37:39 +0000 (19:37 +0200)]
Fix distribution tarball for the MS-DOS build.

 make-dist (tempdir): Create `autogen'.
 (msdos): Add depfiles.bat and inttypes.h.
 (autogen): Put README, config.in, and Makefile.in ionto the
 distribution, they are needed for the MS-DOS build.
 msdos/sed3v2.inp (insrcdir): Comment out definition.
 $(insrcdir): Edit into MS-DOS existence test.

12 years ago* lisp/subr.el (keymap--menu-item-with-binding): Ignore item if not a
Andreas Schwab [Mon, 31 Oct 2011 10:53:16 +0000 (11:53 +0100)]
* lisp/subr.el (keymap--menu-item-with-binding): Ignore item if not a
menu-item.

12 years agoAuto-commit of generated files.
Glenn Morris [Mon, 31 Oct 2011 10:18:33 +0000 (06:18 -0400)]
Auto-commit of generated files.

12 years agoFix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).
YAMAMOTO Mitsuharu [Mon, 31 Oct 2011 03:08:54 +0000 (12:08 +0900)]
Fix memory leak by y-or-n-p-with-timeout with GUI (Bug#9830).

* xmenu.c (cleanup_widget_value_tree): New function.
(xmenu_show, xdialog_show): Use it in record_unwind_protect instead of
calling free_menubar_widget_value_tree directly (Bug#9830).

12 years agoBump version to 24.0.91. emacs-pretest-24.0.91
Chong Yidong [Mon, 31 Oct 2011 02:25:01 +0000 (10:25 +0800)]
Bump version to 24.0.91.
Regenerate AUTHORS and ldefs-boot.el.

12 years agoAdjust comment.
Vinicius Jose Latorre [Mon, 31 Oct 2011 01:39:04 +0000 (23:39 -0200)]
Adjust comment.

12 years agoBetter code for whitespace-newline-mode.
Vinicius Jose Latorre [Mon, 31 Oct 2011 01:15:40 +0000 (23:15 -0200)]
Better code for whitespace-newline-mode.

12 years ago* admin/grammars/bovine-grammar.el: Avoid using old-style backquotes.
David Engster [Mon, 31 Oct 2011 01:00:32 +0000 (09:00 +0800)]
* admin/grammars/bovine-grammar.el: Avoid using old-style backquotes.

12 years agoDisable whitespace-newline-mode properly.
Vinicius Jose Latorre [Mon, 31 Oct 2011 00:37:09 +0000 (22:37 -0200)]
Disable whitespace-newline-mode properly.

12 years agoFix random crashes while scrolling backwards.
Eli Zaretskii [Sun, 30 Oct 2011 18:07:48 +0000 (20:07 +0200)]
Fix random crashes while scrolling backwards.

 src/xdisp.c (try_cursor_movement): Make sure ROW isn't decremented
 past the beginning of the current glyph matrix.

12 years agoFix bug 9869.
Jan Djärv [Sun, 30 Oct 2011 18:04:13 +0000 (19:04 +0100)]
Fix bug 9869.

xterm.c: Include X11/Xproto.h if HAVE_GTK3.
(x_error_handler): Ignore BadMatch for X_SetInputFocus for
HAVE_GTK3 (Bug#9869).

12 years ago* gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize
Jan Djärv [Sun, 30 Oct 2011 17:31:02 +0000 (18:31 +0100)]
* gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize
type to GDK_NOTHING so valgrind does not complain.

Fixes: debbugs:9901
12 years agoFix hang after C-z in gnome-shell.
Jan Djärv [Sun, 30 Oct 2011 17:17:48 +0000 (18:17 +0100)]
Fix hang after C-z in gnome-shell.

* xterm.c: Declare x_handle_net_wm_state to return int.
(handle_one_xevent): Check if we are iconified but don't have
_NET_WM_STATE_HIDDEN.  If do, treat as deiconify.
(get_current_wm_state): Return non-zero if not hidden,
check for _NET_WM_STATE_HIDDEN (Bug#9893).
(do_ewmh_fullscreen): Ignore return value from get_current_wm_state.
(x_handle_net_wm_state): Return what get_current_wm_state returns.
(x_term_init): Initialize dpyinfo->Xatom_net_wm_state_hidden.

* xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).

12 years agonewsticker: Clean up newsticker--group-manage-orphan-feeds
Ulf Jasper [Sun, 30 Oct 2011 15:21:37 +0000 (16:21 +0100)]
newsticker: Clean up newsticker--group-manage-orphan-feeds

2011-10-30  Ulf Jasper  <ulf.jasper@web.de>

* net/newst-treeview.el: Remove "Time-stamp".
(newsticker--group-manage-orphan-feeds): Do not call
newsticker--treeview-tree-update.
(newsticker-treeview-update, newsticker-treeview): Call
newsticker--treeview-tree-update if necessary.

2011-10-30  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el
(newsticker--group-manage-orphan-feeds): Removed fsetting of
newsticker--treeview-tree-update.

12 years agoRemove "iso-" infix from window combination functions.
Martin Rudalics [Sun, 30 Oct 2011 08:29:56 +0000 (09:29 +0100)]
Remove "iso-" infix from window combination functions.

* window.el (window-iso-combination-p, window-iso-combined-p)
(window-iso-combinations): Remove "iso-" infix.  Suggested by
Chong Yidong.
(window-min-size-1, window-size-fixed-1, window-min-delta-1)
(window-max-delta-1, window-resize, window--resize-siblings)
(window--resize-this-window, adjust-window-trailing-edge)
(split-window, balance-windows-1)
(shrink-window-if-larger-than-buffer):
* calendar/calendar.el (calendar-generate-window):
* help.el (resize-temp-buffer-window): Adjust callers
accordingly.
* windows.texi (Windows and Frames): Remove "iso-" infix from
documentation of window-iso-combined-p.

12 years ago* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Fix last change.
Stefan Monnier [Sun, 30 Oct 2011 08:01:31 +0000 (04:01 -0400)]
* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Fix last change.
(eshell-do-eval): Handle multiple expressions in `while' body.

Fixes: debbugs:9907
12 years ago* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Don't modify the list
Stefan Monnier [Sun, 30 Oct 2011 03:58:48 +0000 (23:58 -0400)]
* lisp/eshell/esh-cmd.el (eshell-rewrite-for-command): Don't modify the list
in place.
(eshell-subcommand-arg-values, eshell-rewrite-named-command)
(eshell-rewrite-if-command, eshell-rewrite-for-command)
(eshell-structure-basic-command, eshell-rewrite-while-command)
(eshell-invokify-arg, eshell-parse-pipeline, eshell-parse-command)
(eshell-parse-subcommand-argument, eshell-parse-lisp-argument)
(eshell-trap-errors, eshell-do-pipelines, eshell-do-eval)
(eshell-do-pipelines-synchronously, eshell-eval-command):
Use backquotes and prefer setq to set.
(eshell-lookup-function, function-p-func, eshell-functionp): Remove.
(eshell-macrop): Use functionp.

Fixes: debbugs:9907
12 years ago* viper-cmd.el (viper-exec-change): Use push-mark not set-mark.
Chong Yidong [Sun, 30 Oct 2011 03:39:11 +0000 (11:39 +0800)]
* viper-cmd.el (viper-exec-change): Use push-mark not set-mark.

Fixes: debbugs:9810
12 years agoRename split-window-{above-each-other|split-window-side-by-side}
Chong Yidong [Sun, 30 Oct 2011 01:56:03 +0000 (09:56 +0800)]
Rename split-window-{above-each-other|split-window-side-by-side}
to split-window-below and split-window-right.

* lisp/window.el (split-window-below, split-window-right): Rename from
split-window-above-each-other and split-window-side-by-side
respectively.  All callers changed.
(split-window-sensibly, split-window-sensibly): Use them.
(split-window-keep-point): Doc fix.

* lisp/isearch.el: Add isearch-scroll property to split-window-below
and split-window-right.

* lisp/follow.el (follow-mode):
* lisp/vc/pcvs-util.el (cvs-pop-to-buffer-same-frame):
* lisp/progmodes/ada-xref.el (ada-gdb-application):
* lisp/emulation/vip.el (vip-buffer-in-two-windows):
* lisp/image-dired.el (image-dired-dired-with-window-configuration):
* lisp/dired-x.el (dired-do-find-marked-files):
* lisp/dired.el (dired-pop-to-buffer):
* lisp/bs.el (bs--show-with-configuration):
* lisp/vc/emerge.el (emerge-setup-windows):
* lisp/textmodes/two-column.el (2C-two-columns):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/progmodes/gdb-mi.el (gdb-setup-windows):
* lisp/progmodes/fortran.el (fortran-window-create):
* lisp/net/newst-treeview.el (newsticker--treeview-window-init):
* lisp/emulation/ws-mode.el (wordstar-C-o-map, wordstar-mode):
* lisp/emulation/tpu-edt.el (tpu-gold-map):
* lisp/emulation/crisp.el (crisp-mode-map):
* lisp/calendar/calendar.el (calendar-basic-setup): Callers changed.

12 years ago* alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE,
Paul Eggert [Sat, 29 Oct 2011 17:25:44 +0000 (10:25 -0700)]
* alloc.c (which_symbols): Declare EXTERNALLY_VISIBLE,

so that this new function doesn't get optimized away by a
whole-program optimizer.  Make the 2nd arg EMACS_INT, not int.

12 years ago* src/frame.h (MOUSE_HL_INFO): Remove excess parens.
Andreas Schwab [Sat, 29 Oct 2011 15:50:30 +0000 (17:50 +0200)]
* src/frame.h (MOUSE_HL_INFO): Remove excess parens.

12 years agonewsticker: Fixed bug#9763, again
Ulf Jasper [Sat, 29 Oct 2011 15:29:16 +0000 (17:29 +0200)]
newsticker: Fixed bug#9763, again

2011-10-29  Ulf Jasper  <ulf.jasper@web.de>

* automated/newsticker-tests.el
(newsticker--group-manage-orphan-feeds): Use fset instead of flet.

12 years agonewsticker: Fixed bug#9763
Ulf Jasper [Sat, 29 Oct 2011 15:17:30 +0000 (17:17 +0200)]
newsticker: Fixed bug#9763

2011-10-29  Ulf Jasper  <ulf.jasper@web.de>

* trunk/test/automated/newsticker-tests.el
(newsticker--group-manage-orphan-feeds): Prevent updating
newsticker treeview. Fixed bug#9763.

12 years agoetc/themes/wombat-theme.el: Add a coding cookie. (Bug#9905)
Eli Zaretskii [Sat, 29 Oct 2011 14:33:42 +0000 (16:33 +0200)]
etc/themes/wombat-theme.el: Add a coding cookie.  (Bug#9905)

12 years agoFix attribution for last commit in src/ChangeLog.
Eli Zaretskii [Sat, 29 Oct 2011 13:38:21 +0000 (15:38 +0200)]
Fix attribution for last commit in src/ChangeLog.

12 years agoFix the `xbytecode' user-defined command in .gdbinit.
Eli Zaretskii [Sat, 29 Oct 2011 13:35:23 +0000 (15:35 +0200)]
Fix the `xbytecode' user-defined command in .gdbinit.

 src/.gdbinit (xprintbytestr): New command.
 (xwhichsymbols): Renamed from `which'; all callers changed.
 (xbytecode): Print the byte-code string as well.
 src/alloc.c (which_symbols): New function.

12 years agoRevert last commit.
Eli Zaretskii [Sat, 29 Oct 2011 10:02:39 +0000 (12:02 +0200)]
Revert last commit.

12 years agoFix bug #9902 with crash caused by clearing mouse highlight.
Eli Zaretskii [Sat, 29 Oct 2011 09:36:42 +0000 (11:36 +0200)]
Fix bug #9902 with crash caused by clearing mouse highlight.

 src/xdisp.c (note_mouse_highlight): Don't clear mouse highlight if
 hlinfo->mouse_face_window is nil.

12 years agoFixes: debbugs:9903
Andreas Schwab [Sat, 29 Oct 2011 08:54:06 +0000 (10:54 +0200)]
Fixes: debbugs:9903
* src/minibuf.c (read_minibuf_noninteractive): Allow reading empty
line.

12 years ago* lisp/subr.el (y-or-n-p): Add code for batch mode.
Chong Yidong [Sat, 29 Oct 2011 08:41:39 +0000 (16:41 +0800)]
* lisp/subr.el (y-or-n-p): Add code for batch mode.

Fixes: debbugs:9818
12 years ago* lisp/mouse.el (mouse-yank-primary): Push the mark.
Chong Yidong [Sat, 29 Oct 2011 06:09:02 +0000 (14:09 +0800)]
* lisp/mouse.el (mouse-yank-primary): Push the mark.

Fixes: debbugs:9894
12 years ago* flyspell.el (flyspell-word): Fix char offset for forged Ispell output.
Chong Yidong [Sat, 29 Oct 2011 04:37:29 +0000 (12:37 +0800)]
* flyspell.el (flyspell-word): Fix char offset for forged Ispell output.

Fixes: debbugs:7904
12 years ago* emacs-lisp/package.el (package-refresh-contents): Add autoload.
Chong Yidong [Sat, 29 Oct 2011 03:42:12 +0000 (11:42 +0800)]
* emacs-lisp/package.el (package-refresh-contents): Add autoload.

12 years ago* etc/NEWS: Document the disappearance of binding caches.
Stefan Monnier [Sat, 29 Oct 2011 00:41:20 +0000 (20:41 -0400)]
* etc/NEWS: Document the disappearance of binding caches.

Fixes: debbugs:9899
12 years ago* lisp/doc-view.el: Avoid ugly errors about not finding nil.
Stefan Monnier [Sat, 29 Oct 2011 00:39:57 +0000 (20:39 -0400)]
* lisp/doc-view.el: Avoid ugly errors about not finding nil.
(doc-view-ghostscript-program, doc-view-dvipdfm-program)
(doc-view-dvipdf-program, doc-view-unoconv-program)
(doc-view-ps2pdf-program, doc-view-pdftotext-program):
Avoid nil or absolute file name as default value.
(doc-view-pdf->txt, doc-view-ps->pdf): Use executable-find here.

12 years agoRevert problematic change to wait_reading_process_output.
Glenn Morris [Sat, 29 Oct 2011 00:12:02 +0000 (20:12 -0400)]
Revert problematic change to wait_reading_process_output.

* src/process.c (wait_reading_process_output): Revert 2009-08-30 change.
Not clear what it was for, and it causes various bugs.  (Bug#9839)

12 years agoFix use of uninitialized variable.
Eli Zaretskii [Fri, 28 Oct 2011 18:41:09 +0000 (20:41 +0200)]
Fix use of uninitialized variable.

 src/xdisp.c (note_mouse_highlight): Initialize `part', to avoid a
 possible random value that matches one of those tested as
 condition to clear the mouse face.

12 years agoIncrement c-version to 5.32.2.
Alan Mackenzie [Fri, 28 Oct 2011 16:16:02 +0000 (16:16 +0000)]
Increment c-version to 5.32.2.

12 years agoAdd and entry to ChangeLog.
Alan Mackenzie [Fri, 28 Oct 2011 15:24:05 +0000 (15:24 +0000)]
Add and entry to ChangeLog.

12 years agoMerge.
Alan Mackenzie [Fri, 28 Oct 2011 15:18:00 +0000 (15:18 +0000)]
Merge.

12 years ago* src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.
Chong Yidong [Fri, 28 Oct 2011 15:17:09 +0000 (23:17 +0800)]
* src/xdisp.c (note_mouse_highlight): Fix use of uninitialized var.

See:
http://lists.gnu.org/archive/html/emacs-devel/2011-10/msg01202.html

12 years agoDocument that UNICOWS.DLL is required to run Emacs on Windows 9X.
Eli Zaretskii [Fri, 28 Oct 2011 15:03:13 +0000 (17:03 +0200)]
Document that UNICOWS.DLL is required to run Emacs on Windows 9X.

 nt/README.W32: Mention UNICOWS.DLL as prerequisite for running
 Emacs on Windows 9X.
 admin/nt/README-ftp-server: Mention UNICOWS.DLL as prerequisite for
 running Emacs on Windows 9X.

Fixes: debbugs:8562
12 years ago* net/rcirc.el (rcirc-mode): Use hard newlines.
Deniz Dogan [Fri, 28 Oct 2011 14:47:50 +0000 (16:47 +0200)]
* net/rcirc.el (rcirc-mode): Use hard newlines.

12 years agoBoring merge.
Alan Mackenzie [Fri, 28 Oct 2011 14:37:05 +0000 (14:37 +0000)]
Boring merge.

12 years agoBoring merge from savannah.
Alan Mackenzie [Fri, 28 Oct 2011 14:35:39 +0000 (14:35 +0000)]
Boring merge from savannah.

12 years agoDTRT for c-beginning/end-of-defun in nested declaration scopes.
Alan Mackenzie [Fri, 28 Oct 2011 14:34:39 +0000 (14:34 +0000)]
DTRT for c-beginning/end-of-defun in nested declaration scopes.

12 years ago* src/window.c (make_window): Initialize phys_cursor_on_p.
Dan Nicolaescu [Fri, 28 Oct 2011 14:34:06 +0000 (08:34 -0600)]
* src/window.c (make_window): Initialize phys_cursor_on_p.