bpt/emacs.git
12 years agoMerge from trunk.
Paul Eggert [Mon, 14 Nov 2011 04:35:22 +0000 (20:35 -0800)]
Merge from trunk.

12 years agoSmall executable.el fix related to bug#9879.
Glenn Morris [Mon, 14 Nov 2011 02:14:01 +0000 (18:14 -0800)]
Small executable.el fix related to bug#9879.

* lisp/progmodes/executable.el
(executable-make-buffer-file-executable-if-script-p):
Handle file-modes returning nil.

12 years ago* lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
Glenn Morris [Mon, 14 Nov 2011 02:01:00 +0000 (18:01 -0800)]
* lisp/mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.

12 years agoRmail summary fixes for empty summaries.
Glenn Morris [Mon, 14 Nov 2011 01:43:50 +0000 (17:43 -0800)]
Rmail summary fixes for empty summaries.

* lisp/mail/rmailsum.el (rmail-summary, rmail-new-summary)
(rmail-new-summary-1): Allow empty summaries.
(rmail-new-summary): Remember that rmail-summary-buffer is buffer-local.

Fixes: debbugs:9964

12 years ago* inc/stdint.h (UINT64_MAX, UINT32_MAX): Fix values.
Christoph Scholtes [Sun, 13 Nov 2011 14:43:13 +0000 (07:43 -0700)]
* inc/stdint.h (UINT64_MAX, UINT32_MAX): Fix values.

12 years agoSpelling fixes.
Paul Eggert [Sun, 13 Nov 2011 07:48:23 +0000 (23:48 -0800)]
Spelling fixes.

12 years ago* INSTALL: Tiny updates for disk space used during installation.
Glenn Morris [Sun, 13 Nov 2011 01:03:55 +0000 (17:03 -0800)]
* INSTALL: Tiny updates for disk space used during installation.

12 years agoAllow building temacs with a larger heap on MS-Windows.
Eli Zaretskii [Sat, 12 Nov 2011 12:11:54 +0000 (14:11 +0200)]
Allow building temacs with a larger heap on MS-Windows.

 src/makefile.w32-in (HEAPSIZE): New variable, allows to build temacs
 with user-defined heap size.  Bump the default size of the temacs
 heap to 27MB, to avoid memory warning when running temacs.
 ($(TEMACS)): Use HEAPSIZE instead of a hardcoded value.

12 years agoVerify glyph row's hash values.
Eli Zaretskii [Sat, 12 Nov 2011 11:56:57 +0000 (13:56 +0200)]
Verify glyph row's hash values.

 src/dispnew.c (verify_row_hash) [XASSERTS]: New function.
 (adjust_glyph_matrix, row_equal_p): Use it in xassert to verify
 that the hash value of glyph rows is correct.

12 years agodispnew.c (scrolling_window): Fix index usage.
Eli Zaretskii [Sat, 12 Nov 2011 10:09:38 +0000 (12:09 +0200)]
dispnew.c (scrolling_window): Fix index usage.

 src/dispnew.c (scrolling_window): Fix incorrect indices in accessing
 current_matrix and desired_matrix.  (Bug#9990)

12 years agoDon't handle splits status.
Martin Rudalics [Sat, 12 Nov 2011 09:55:50 +0000 (10:55 +0100)]
Don't handle splits status.

* window.h (window): Remove splits slot.
* window.c (Fwindow_splits, Fset_window_splits): Remove.
(Fdelete_other_windows_internal, make_parent_window)
(make_window, Fsplit_window_internal, Fdelete_window_internal)
(Fset_window_configuration, save_window_save): Don't deal with
split status of windows.
(saved_window): Remove splits slot.
(Vwindow_splits): Rewrite doc-string.
* window.el (window-resize, delete-window): Use window-splits
variable instead of function.
(window-state-get-1, window-state-put-2, window-state-put):
Don't deal with windows' splits status.
* windows.texi (Splitting Windows, Deleting Windows): Remove
references to splits status of windows.

12 years agoapropos.el doc fixes.
Glenn Morris [Sat, 12 Nov 2011 02:13:23 +0000 (21:13 -0500)]
apropos.el doc fixes.

* lisp/apropos.el (apropos-do-all, apropos-library, apropos-value)
(apropos-documentation): Doc fixes.

12 years agoFix more typos.
Juanma Barranquero [Fri, 11 Nov 2011 23:34:43 +0000 (00:34 +0100)]
Fix more typos.

12 years agoFix typos.
Juanma Barranquero [Fri, 11 Nov 2011 23:17:16 +0000 (00:17 +0100)]
Fix typos.

12 years ago* xfns.c (unwind_create_frame):
Jan Djärv [Fri, 11 Nov 2011 18:33:30 +0000 (19:33 +0100)]
* xfns.c (unwind_create_frame):
* nsfns.m (unwind_create_frame):
* w32fns.c (unwind_create_frame): Use Fmemq to check if frame is in
Vframe_list.

Fixes: debbugs:9999

12 years ago* lisp/electric.el: Make electric-indent-mode better behaved.
Stefan Monnier [Fri, 11 Nov 2011 15:55:24 +0000 (10:55 -0500)]
* lisp/electric.el: Make electric-indent-mode better behaved.
* lisp/electric.el (electric-indent-post-self-insert-function): Make it
possible for a char to only indent in some circumstances.
(electric-indent-mode): Simplify.

12 years agoFurther rename and clean up of functions in window.el.
Martin Rudalics [Fri, 11 Nov 2011 10:23:23 +0000 (11:23 +0100)]
Further rename and clean up of functions in window.el.

* window.el (window-size-ignore, window-size-fixed-1)
(window-in-direction-2): Prefix with "window--".
(window-tree-1): Rename to window--subtree, fix doc-string.

12 years agoSpelling fixes.
Paul Eggert [Fri, 11 Nov 2011 10:04:08 +0000 (02:04 -0800)]
Spelling fixes.

12 years agoRename and clean up functions in window.el.
Martin Rudalics [Fri, 11 Nov 2011 09:59:00 +0000 (10:59 +0100)]
Rename and clean up functions in window.el.

* window.el (windows-with-parameter): Remove unused function.
(windows-at-side): Rename to window-at-side-list.
(window-check, window-atom-check, window-atom-check-1)
(window-side-check): Prefix with "window--".

12 years ago* xdisp.c (syms_of_xdisp): Remove duplicated definition of Qtext.
Dmitry Antipov [Fri, 11 Nov 2011 09:18:32 +0000 (01:18 -0800)]
* xdisp.c (syms_of_xdisp): Remove duplicated definition of Qtext.

12 years agocallproc.c (Fcall_process): Set the member dst_multibyte of process_coding.
Kenichi Handa [Fri, 11 Nov 2011 08:09:40 +0000 (17:09 +0900)]
callproc.c (Fcall_process): Set the member dst_multibyte of process_coding.

12 years agomerge trunk
Kenichi Handa [Fri, 11 Nov 2011 07:08:47 +0000 (16:08 +0900)]
merge trunk

12 years agoxdisp.c (fill_composite_glyph_string): Always set s->face, to avoid a crash (bug...
Kenichi Handa [Fri, 11 Nov 2011 07:08:10 +0000 (16:08 +0900)]
xdisp.c (fill_composite_glyph_string): Always set s->face, to avoid a crash (bug#9496).

12 years agoeval-after-load fix for bug#10009
Glenn Morris [Fri, 11 Nov 2011 01:46:03 +0000 (20:46 -0500)]
eval-after-load fix for bug#10009

* lisp/subr.el (eval-after-load): If FILE is already loaded,
evaluate FORM before it gets wrapped in more stuff.

12 years agoStandardize on VIRT_ADDR_VARIES behavior; otherwise, valgrind
Paul Eggert [Thu, 10 Nov 2011 08:14:27 +0000 (00:14 -0800)]
Standardize on VIRT_ADDR_VARIES behavior; otherwise, valgrind

does not work on some platforms.  Problem reported by Andreas Schwab in
<http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00081.html>.
* puresize.h (pure, PURE_P): Always behave as if VIRT_ADDR_VARIES
is set, removing the need for VIRT_ADDRESS_VARIES.
(PURE_P): Use a more-efficient implementation that needs just one
comparison, not two: on x86-64 with GCC 4.6.2, this cut down the
number of instructions from 6 (xorl, cmpq, jge, xorl, cmpq, setge)
to 4 (xorl, subq, cmpq, setbe).
* alloc.c (pure): Always extern now, since that's the
VIRT_ADDR_VARIES behavior.
(PURE_POINTER_P): Use a single comparison, not two, for
consistency with the new puresize.h.
* lisp.h (PNTR_COMPARISON_TYPE): Remove; no longer needed.
* m/ibms390.h, m/intel386.h, m/template.h, s/cygwin.h, s/hpux10-20.h:
Remove VIRT_ADDR_VARIES no longer needed.

12 years agoAlways use svn --non-interactive in vc-svn.el (bug#9993)
Glenn Morris [Thu, 10 Nov 2011 02:36:48 +0000 (21:36 -0500)]
Always use svn --non-interactive in vc-svn.el (bug#9993)

* lisp/vc/vc-svn.el (vc-svn-create-repo, vc-svn-modify-change-comment):
Call svn via vc-svn-command rather than vc-do-command.
(vc-svn-command): Add --non-interactive.
(vc-svn-update, vc-svn-merge-news): No need for --non-interactive.

12 years agotoggle-read-only fixes for bugs#7292, 10006.
Glenn Morris [Thu, 10 Nov 2011 02:17:45 +0000 (21:17 -0500)]
toggle-read-only fixes for bugs#7292, 10006.

* doc/lispref/buffers.texi (Read Only Buffers): Expand a bit on why
toggle-read-only should only be used interactively.

* lisp/files.el (toggle-read-only): Mention that it should only
be used interactively.

* lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
Add toggle-read-only.

12 years agoFix typos.
Juanma Barranquero [Wed, 9 Nov 2011 16:18:33 +0000 (17:18 +0100)]
Fix typos.

12 years ago* lisp/progmodes/compile.el: Adjust regexp for OCaml warnings.
Stefan Monnier [Wed, 9 Nov 2011 15:39:32 +0000 (10:39 -0500)]
* lisp/progmodes/compile.el: Adjust regexp for OCaml warnings.
(compilation-error-regexp-alist-alist): OCaml warnings (can?) have a number.

Fixes: debbugs:9749

12 years ago* lisp/electric.el (electric-pair-post-self-insert-function): Let user
Stefan Monnier [Wed, 9 Nov 2011 15:10:25 +0000 (10:10 -0500)]
* lisp/electric.el (electric-pair-post-self-insert-function): Let user
turn it off buffer-locally.

Fixes: debbugs:9932

12 years ago* lisp/progmodes/python.el (python-beginning-of-statement): Rewrite.
Stefan Monnier [Wed, 9 Nov 2011 15:00:32 +0000 (10:00 -0500)]
* lisp/progmodes/python.el (python-beginning-of-statement): Rewrite.

Fixes: debbugs:2703

12 years agoDocument window-pixel-edges etc in Lisp manual.
Chong Yidong [Wed, 9 Nov 2011 14:37:25 +0000 (22:37 +0800)]
Document window-pixel-edges etc in Lisp manual.

* doc/lispref/windows.texi (Window Sizes): Document window-pixel-edges,
window-inside-pixel-edges. window-absolute-pixel-edges, and
window-inside-absolute-pixel-edges.
(Resizing Windows): shrink-window-if-larger-than-buffer works on
non-full-width windows.

12 years agoDisallow calling window-inside-edges and related functions on internal windows.
Chong Yidong [Wed, 9 Nov 2011 14:29:23 +0000 (22:29 +0800)]
Disallow calling window-inside-edges and related functions on internal windows.

* src/window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges)
(Fwindow_inside_absolute_pixel_edges): Only allow live windows.

12 years ago* lisp/progmodes/compile.el: Better handle TABs.
Stefan Monnier [Wed, 9 Nov 2011 14:04:13 +0000 (09:04 -0500)]
* lisp/progmodes/compile.el: Better handle TABs.
(compilation-internal-error-properties)
(compilation-next-error-function): Obey the target buffer's
compilation-error-screen-columns.

Fixes: debbugs:9749

12 years agoRewrite window-resizable.
Martin Rudalics [Wed, 9 Nov 2011 09:36:05 +0000 (10:36 +0100)]
Rewrite window-resizable.

* window.el (window-size-fixed-p): Rewrite doc-string.
(window-resizable-p): Rename to window--resizable-p.  Update
callers.
(window--resizable): New function.  Make all callers of
window-resizable call window--resizable instead.
(window-resizable): Rewrite in terms of window--resizable.
* windows.texi (Resizing Windows): Rewrite documentation of
window-resizable.

12 years ago* doc/lispref/windows.texi (Splitting Windows): Simplify example.
Chong Yidong [Wed, 9 Nov 2011 07:56:50 +0000 (15:56 +0800)]
* doc/lispref/windows.texi (Splitting Windows): Simplify example.

12 years agoSpelling fixes.
Paul Eggert [Wed, 9 Nov 2011 06:10:51 +0000 (22:10 -0800)]
Spelling fixes.

12 years ago* s/gnu.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS (Bug#9926).
Paul Eggert [Tue, 8 Nov 2011 20:15:17 +0000 (12:15 -0800)]
* s/gnu.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS (Bug#9926).

12 years agoAvoid some portability problems by eschewing 'extern inline' functions.
Paul Eggert [Tue, 8 Nov 2011 20:05:27 +0000 (12:05 -0800)]
Avoid some portability problems by eschewing 'extern inline' functions.

The trivial performance wins aren't worth the portability hassles; see
<http://lists.gnu.org/archive/html/emacs-devel/2011-11/msg00084.html>
et seq.
* 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): Undo previous change,
by removing the "extern"s.
* intervals.c (adjust_intervals_for_insertion)
(adjust_intervals_for_deletion): Undo previous change,
making these static again.
(offset_intervals, temp_set_point_both, temp_set_point)
(copy_intervals_to_string): No longer inline.
* xdisp.c (window_text_bottom_y, window_box_width)
(window_box_height, window_box_left_offset)
(window_box_right_offset, window_box_left, window_box_right)
(window_box): No longer inline.

12 years agodelphi syntax table fix for bug#9994
Glenn Morris [Tue, 8 Nov 2011 19:19:36 +0000 (14:19 -0500)]
delphi syntax table fix for bug#9994

* lisp/progmodes/delphi.el (delphi-mode-syntax-table):
Let define-derived-mode define a proper syntax table.

12 years agoFix doc-string typo in window-min-delta
Martin Rudalics [Tue, 8 Nov 2011 19:06:29 +0000 (20:06 +0100)]
Fix doc-string typo in window-min-delta

12 years ago* lisp/window.el: Stay away from defsubst.
Stefan Monnier [Tue, 8 Nov 2011 16:52:10 +0000 (11:52 -0500)]
* lisp/window.el: Stay away from defsubst.
(window-list-no-nils): Remove.
(window-state-get-1, window-state-get): Use backquote instead.

12 years ago* doc/lispref/windows.texi (Resizing Windows): Simplify introduction.
Chong Yidong [Tue, 8 Nov 2011 15:34:21 +0000 (23:34 +0800)]
* doc/lispref/windows.texi (Resizing Windows): Simplify introduction.
Don't document enlarge-window, shrink-window, enlarge-window-horizontally,
and shrink-window-horizontally; they are no longer preferred for calling
from Lisp, and are already documented in the Emacs manual.

12 years agoUpdate changelog.
thierry volpiatto [Tue, 8 Nov 2011 15:08:59 +0000 (16:08 +0100)]
Update changelog.

12 years ago* emacs-lisp/find-func.el (find-function-read): Fix incorrect use of default argument...
thierry volpiatto [Tue, 8 Nov 2011 15:06:47 +0000 (16:06 +0100)]
* emacs-lisp/find-func.el (find-function-read): Fix incorrect use of default argument in `completing-read'.

12 years agoRemove stale references to help-setup parameter in doc-strings.
Martin Rudalics [Tue, 8 Nov 2011 09:33:22 +0000 (10:33 +0100)]
Remove stale references to help-setup parameter in doc-strings.

* window.el (display-buffer-function, special-display-function):
Mention display-buffer-record-window but do not mention
help-setup parameter in doc-strings.

12 years agoFix permissions inadvertently changed in 2011-10-31T00:37:09Z!viniciusjl@ig.com.br.
Paul Eggert [Tue, 8 Nov 2011 08:11:25 +0000 (00:11 -0800)]
Fix permissions inadvertently changed in 2011-10-31T00:37:09Z!viniciusjl@ig.com.br.

12 years agoEdits to Window Sizes node of Lisp manual.
Chong Yidong [Tue, 8 Nov 2011 07:43:30 +0000 (15:43 +0800)]
Edits to Window Sizes node of Lisp manual.

* doc/lispref/windows.texi (Window Sizes): Copyedits.  Document
window-text-height.  Remove window-min-height and window-min-width
discussion, referring instead to Emacs manual.
(Splitting Windows, Resizing Windows): Add xref to Emacs manual.

12 years agoMove low-level window width/height functions to C, and high-level functions to Lisp.
Chong Yidong [Tue, 8 Nov 2011 07:25:56 +0000 (15:25 +0800)]
Move low-level window width/height functions to C, and high-level functions to Lisp.

* lisp/window.el (window-total-height, window-total-width): Doc fix.
(window-body-size): Move from C.
(window-body-height, window-body-width): Move to C.

* src/window.c (Fwindow_left_column, Fwindow_top_line): Doc fix.
(Fwindow_body_height, Fwindow_body_width): Move from Lisp.  Signal
an error if not a live window.
(Fwindow_total_width, Fwindow_total_height): Move from Lisp.
(Fwindow_total_size, Fwindow_body_size): Move to Lisp.

12 years ago* lisp/window.el: Make special-display like display-buffer-alist.
Stefan Monnier [Tue, 8 Nov 2011 02:57:59 +0000 (21:57 -0500)]
* lisp/window.el: Make special-display like display-buffer-alist.
(display-buffer--special-action): New function, morphed
from display-buffer--special.
(display-buffer): Use it to handle special-display-buffers at higher
priority (just after display-buffer-alist).
(display-buffer-fallback-action, display-buffer--other-frame-action)
(pop-to-buffer-same-window): Remove display-buffer--special.

Fixes: debbugs:9532

12 years agoSmall cal-menu fix for bug#9976
Glenn Morris [Mon, 7 Nov 2011 19:00:54 +0000 (14:00 -0500)]
Small cal-menu fix for bug#9976

* lisp/calendar/cal-menu.el (cal-menu-set-date-title):
Do nothing if not in a calendar.

12 years ago* doc/lispref/windows.texi (Choosing Window): Fix keybinding typo.
Glenn Morris [Mon, 7 Nov 2011 17:49:54 +0000 (09:49 -0800)]
* doc/lispref/windows.texi (Choosing Window): Fix keybinding typo.

12 years agoadmin/unidata/makefile.w32-in (clean): Remove bidimirror.h and biditype.h.
Juanma Barranquero [Mon, 7 Nov 2011 17:17:28 +0000 (18:17 +0100)]
admin/unidata/makefile.w32-in (clean): Remove bidimirror.h and biditype.h.

12 years agosrc/lisp.h (syms_of_abbrev): Remove declaration.
Juanma Barranquero [Mon, 7 Nov 2011 17:04:01 +0000 (18:04 +0100)]
src/lisp.h (syms_of_abbrev): Remove declaration.
Reported by CHENG Gao <chenggao@royau.me>.

12 years agoAllow to run temacs.exe on MS-Windows in GUI mode.
Eli Zaretskii [Mon, 7 Nov 2011 16:42:34 +0000 (18:42 +0200)]
Allow to run temacs.exe on MS-Windows in GUI mode.

 src/w32.c (check_windows_init_file): Don't look for term/w32-win.el
 if Vpurify_flag is non-nil.  Fixes a crash when running w32 build
 of temacs in GUI mode.

12 years ago* lisp/files.el (find-file): Always use selected-window.
Stefan Monnier [Mon, 7 Nov 2011 14:34:02 +0000 (09:34 -0500)]
* lisp/files.el (find-file): Always use selected-window.

12 years agoRemove term "subwindow" from code and documentation.
Martin Rudalics [Mon, 7 Nov 2011 09:51:08 +0000 (10:51 +0100)]
Remove term "subwindow" from code and documentation.

* window.h: Declare delete_all_child_windows instead of
delete_all_subwindows.
* window.c (Fwindow_nest, Fset_window_nest)
(Fset_window_new_total, Fset_window_new_normal)
(Fwindow_resize_apply): Don't use term subwindow in doc-strings.
(delete_all_subwindows): Rename to delete_all_child_windows.
(Fdelete_other_windows_internal, Fset_window_configuration):
Call delete_all_child_windows instead of delete_all_subwindows.
* frame.c (delete_frame): Call delete_all_child_windows instead
of delete_all_subwindows.

* window.el (window-combinations): Make WINDOW argument
mandatory.  Rewrite doc-string.
(walk-window-subtree, window-atom-check, window-min-delta)
(window-max-delta, window--resize-this-window)
(window--resize-root-window-vertically, window-tree)
(balance-windows, window-state-put): Rewrite doc-strings as to
not mention the term "subwindow".
(window--resize-subwindows-skip-p): Rename to
window--resize-child-windows-skip-p.
(window--resize-subwindows-normal): Rename to
window--resize-child-windows-normal.
(window--resize-subwindows): Rename to
window--resize-child-windows.
(window-or-subwindow-p): Rename to window--in-subtree-p.

* windows.texi (Resizing Windows, Splitting Windows)
(Window Configurations): Use "child window" instead of
"subwindow".

12 years ago* alloc.c (DEADP): New macro, for porting to GNU/Hurd (Bug#9926).
Paul Eggert [Mon, 7 Nov 2011 05:37:49 +0000 (21:37 -0800)]
* alloc.c (DEADP): New macro, for porting to GNU/Hurd (Bug#9926).

This is also needed for porting to any host where GC_MARK_STACK is
not GC_MAKE_GCPROS_NOOPS.
(which_symbols): Use it.

12 years agoFix rmail-mbox handling of terminating newlines.
Mark Lillibridge [Mon, 7 Nov 2011 02:52:29 +0000 (10:52 +0800)]
Fix rmail-mbox handling of terminating newlines.

* lisp/mail/rmail.el (rmail-get-new-mail, rmail-insert-inbox-text):
Ensure that mbox format messages end in two newlines.

Fixes: debbugs:9974

12 years agomerge trunk
Kenichi Handa [Mon, 7 Nov 2011 02:00:43 +0000 (11:00 +0900)]
merge trunk

12 years agoSet members of the struct coding_system before accessing them (bug#9910,9911,9912).
Kenichi Handa [Mon, 7 Nov 2011 01:57:07 +0000 (10:57 +0900)]
Set members of the struct coding_system before accessing them (bug#9910,9911,9912).

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.