bpt/emacs.git
11 years ago* lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4: New files.
Paul Eggert [Sat, 25 Aug 2012 04:27:32 +0000 (21:27 -0700)]
* lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4: New files.

11 years agoOn assertion failure, print backtrace if available.
Paul Eggert [Sat, 25 Aug 2012 04:04:08 +0000 (21:04 -0700)]
On assertion failure, print backtrace if available.

Merge from gnulib, incorporating:
2012-08-24 execinfo: port to FreeBSD
2012-08-22 execinfo: new module
* admin/merge-gnulib (GNULIB_MODULES): Add execinfo.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4: New files.
* src/alloc.c [ENABLE_CHECKING]: Include <execinfo.h>.
(die) [ENABLE_CHECKING]: Print a backtrace if available.
* src/Makefile.in (LIB_EXECINFO): New macro.
(LIBES): Use it.

11 years ago* bytecode.c, callint.c, callproc.c: Use bool for boolean.
Paul Eggert [Sat, 25 Aug 2012 03:11:12 +0000 (20:11 -0700)]
* bytecode.c, callint.c, callproc.c: Use bool for boolean.

* bytecode.c (exec_byte_code):
* callint.c (check_mark, Fcall_interactively):
* callproc.c (Fcall_process, add_env, child_setup, getenv_internal_1)
(getenv_internal, sync_process_alive, call_process_exited):
* lisp.h (USE_SAFE_ALLOCA):
Use bool for booleans, instead of int.
* lisp.h, process.h: Adjust prototypes to match above changes.
* callint.c (Fcall_interactively): Don't assume the mark's
offset fits in 'int'.

11 years ago* cmdargs.texi (General Variables): Setting
Michael Albinus [Fri, 24 Aug 2012 12:55:40 +0000 (14:55 +0200)]
* cmdargs.texi (General Variables): Setting
$DBUS_SESSION_BUS_ADDRESS to a dummy value suppresses connections
to the D-Bus session bus.  (Bug#12112)

11 years ago* buffer.c, buffer.h: Use bool for boolean.
Paul Eggert [Fri, 24 Aug 2012 04:37:57 +0000 (21:37 -0700)]
* buffer.c, buffer.h: Use bool for boolean.

* buffer.c (reset_buffer_local_variables)
(buffer_lisp_local_variables, Fset_buffer_modified_p)
(Frestore_buffer_modified_p, Fset_buffer_multibyte):
(overlays_at, overlays_in, mouse_face_overlay_overlaps)
(overlay_touches_p, overlay_strings, Foverlay_put)
(report_overlay_modification, call_overlay_mod_hooks):
(mmap_enlarge, mmap_set_vars):
* buffer.h (buffer_has_overlays, uppercasep, lowercasep):
Use bool for booleans, instead of int.
* buffer.c (compact_buffer, mmap_free_1): Return void, not int,
since the 1-or-0 return value is always ignored anyway.
(mmap_initialized_p):
* buffer.h (struct buffer_text.inhibit_shrinking): Now bool, not int.
* buffer.h, lisp.h: Adjust prototypes to match above changes.

11 years agoFix file time stamp problem with bzr and CVS (Bug#12001).
Paul Eggert [Fri, 24 Aug 2012 04:05:25 +0000 (21:05 -0700)]
Fix file time stamp problem with bzr and CVS (Bug#12001).

* vc/vc-cvs.el (vc-cvs-parse-entry): Ignore subsecond information
in the file's time stamp, since the version control system loses
that information.

11 years ago* bidi.c: Use bool for boolean.
Paul Eggert [Thu, 23 Aug 2012 20:31:52 +0000 (13:31 -0700)]
* bidi.c: Use bool for boolean.

This is a bit more readable, and makes the text segment of bidi.o
0.4% smaller on my platform (GCC 4.7.1 x86-64, Fedora 15).
Presumably it's faster too.
(bidi_initialized, bidi_ignore_explicit_marks_for_paragraph_level):
Now bool.
(bidi_cache_find_level_change, bidi_cache_iterator_state)
(bidi_unshelve_cache, bidi_init_it, bidi_count_bytes)
(bidi_char_at_pos, bidi_fetch_char, bidi_paragraph_init)
(bidi_explicit_dir_char, bidi_level_of_next_char)
(bidi_find_other_level_edge, bidi_move_to_visually_next):
Use bool for booleans, instead of int.
* dispextern.h (bidi_init_it, bidi_paragraph_init)
(bidi_unshelve_cache): Adjust decls to match code.

11 years agoIn Fposn_at_x_y do not allow internal window as argument.
Martin Rudalics [Thu, 23 Aug 2012 08:33:56 +0000 (10:33 +0200)]
In Fposn_at_x_y do not allow internal window as argument.

* keyboard.c (Fposn_at_x_y): Do not allow internal window as
argument.

11 years ago* atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.
Paul Eggert [Thu, 23 Aug 2012 08:27:08 +0000 (01:27 -0700)]
* atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.

* atimer.h: Include <stdbool.h>.

11 years ago* lisp/info.el (Info-fontify-node): Hide the suffix of the Info file name
Juri Linkov [Wed, 22 Aug 2012 23:30:47 +0000 (02:30 +0300)]
* lisp/info.el (Info-fontify-node): Hide the suffix of the Info file name
in the header line.

Fixes: debbugs:12187

11 years ago* lisp/calendar/cal-tex.el (cal-tex-weekly-common): Restore leading blank page.
Glenn Morris [Wed, 22 Aug 2012 17:55:19 +0000 (13:55 -0400)]
* lisp/calendar/cal-tex.el (cal-tex-weekly-common): Restore leading blank page.

11 years agoBump executable-prefix :version
Glenn Morris [Wed, 22 Aug 2012 17:34:50 +0000 (13:34 -0400)]
Bump executable-prefix :version

11 years agoChangeLog fix
Glenn Morris [Wed, 22 Aug 2012 17:32:51 +0000 (13:32 -0400)]
ChangeLog fix

11 years agomisc.el (forward-to-word, backward-to-word): Use (interactive "^p").
Bastien Guerry [Wed, 22 Aug 2012 17:12:35 +0000 (19:12 +0200)]
misc.el (forward-to-word, backward-to-word): Use (interactive "^p").

Thanks to Le Wang for the patch.

11 years agoSet `executable-prefix' to "#!" instead of "#! ".
Bastien Guerry [Wed, 22 Aug 2012 16:58:14 +0000 (18:58 +0200)]
Set `executable-prefix' to "#!" instead of "#! ".

See http://www.in-ulm.de/~mascheck/various/shebang/#details for details on
why the blank space is never needed.

Thanks to Leo for the patch.

11 years ago* frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_NS_P): Change to
Dan Nicolaescu [Wed, 22 Aug 2012 16:05:04 +0000 (12:05 -0400)]
* frame.h (FRAME_W32_P, FRAME_MSDOS_P, FRAME_NS_P): Change to
compile time tests instead of run time tests on systems that do
not use them.
(FRAME_MAC_P): Remove leftover from deleted code.
* frame.c (syms_of_frame): Remove leftover from deleted code.

11 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Wed, 22 Aug 2012 11:30:25 +0000 (13:30 +0200)]
nt/config.nt: Sync with autogen/config.in.

11 years ago[Gnus] Enable posting-style group parameter to hold non-ASCII string values
Katsumi Yamaoka [Wed, 22 Aug 2012 10:37:55 +0000 (10:37 +0000)]
[Gnus] Enable posting-style group parameter to hold non-ASCII string values

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 22 Aug 2012 10:17:28 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* nsterm.m (insertText:): Don't clear modifiers if code is space.
Jan Djärv [Wed, 22 Aug 2012 09:55:35 +0000 (11:55 +0200)]
* nsterm.m (insertText:): Don't clear modifiers if code is space.

11 years agoRewrite handling of side and atomic windows.
Martin Rudalics [Wed, 22 Aug 2012 09:22:08 +0000 (11:22 +0200)]
Rewrite handling of side and atomic windows.

* window.el (display-buffer-in-atom-window, window--major-non-side-window)
(window--major-side-window, display-buffer-in-major-side-window)
(delete-side-window, display-buffer-in-side-window): New
functions.
(window--side-check, window-deletable-p, delete-window)
(delete-other-windows, split-window): Handle side windows and
atomic windows appropriately.
(window--display-buffer): Call display-buffer-record-window also
when the window buffer did not change.

11 years agoRename window--size-ignore to window--size-ignore-p.
Martin Rudalics [Wed, 22 Aug 2012 08:42:34 +0000 (10:42 +0200)]
Rename window--size-ignore to window--size-ignore-p.

* window.el (window--size-ignore): Rename to window--size-ignore-p.
Update callers.

11 years agoLet walk-window-tree and window-with-parameter operate on minibuffer windows too.
Martin Rudalics [Wed, 22 Aug 2012 08:30:54 +0000 (10:30 +0200)]
Let walk-window-tree and window-with-parameter operate on minibuffer windows too.

* window.el (walk-window-tree, window-with-parameter): New
optional argument MINIBUF to control whether these functions
should run on the minibuffer window.
(window-at-side-list): Don't operate on minibuffer window.
(window-in-direction): Simplify and rewrite doc-string.

11 years ago* fontset.c (FONTSET_ADD): Return void, not Lisp_Object.
Paul Eggert [Wed, 22 Aug 2012 07:20:42 +0000 (00:20 -0700)]
* fontset.c (FONTSET_ADD): Return void, not Lisp_Object.

Otherwise, the compiler complains about (A?B:C) where B is void
and C is Lisp_Object.  This fixes an incompatibility with Sun C 5.12.
(fontset_add): Return void, for FONTSET_ADD.

11 years ago* help-fns.el (help-fns--key-bindings): Abbreviate non-symbol remap targets.
Christopher Schmidt [Wed, 22 Aug 2012 07:02:15 +0000 (00:02 -0700)]
* help-fns.el (help-fns--key-bindings): Abbreviate non-symbol remap targets.

Fixes: debbugs:12174

11 years agoIn dired-mark-remembered don't clobber point (Bug#11795).
Martin Rudalics [Wed, 22 Aug 2012 06:59:38 +0000 (08:59 +0200)]
In dired-mark-remembered don't clobber point (Bug#11795).

* dired.el (dired-mark-remembered): Don't clobber point.
(Bug#11795)

11 years agoAdd option to not create bin/emacs link to bin/emacs-VERSION
Glenn Morris [Wed, 22 Aug 2012 06:55:44 +0000 (23:55 -0700)]
Add option to not create bin/emacs link to bin/emacs-VERSION

* Makefile.in (install-arch-dep): If NO_BIN_LINK is non-null,
do not create the bin/emacs link.

* etc/NEWS: Mention this.

Fixes: debbugs:12011

11 years agoMake bug-reference-bug-regexp customizable
Glenn Morris [Wed, 22 Aug 2012 06:47:00 +0000 (23:47 -0700)]
Make bug-reference-bug-regexp customizable

Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00427.html

* lisp/progmodes/bug-reference.el (bug-reference): New custom group.
(bug-reference-bug-regexp): Make it a defcustom.

11 years agoAdd :safe for js indent variables.
Daiki Ueno [Wed, 22 Aug 2012 05:35:38 +0000 (14:35 +0900)]
Add :safe for js indent variables.

Fixes: debbugs:12257

11 years ago2012-08-21 Josh Feinstein <jlf@foxtail.org>
Josh Feinstein [Wed, 22 Aug 2012 03:45:51 +0000 (20:45 -0700)]
2012-08-21  Josh Feinstein <jlf@foxtail.org>

* erc-join.el (erc-autojoin-timing): Fix defcustom type.

11 years agostrict key encoding for json.el
Edward O'Connor [Wed, 22 Aug 2012 01:29:22 +0000 (21:29 -0400)]
strict key encoding for json.el

Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00642.html

* lisp/json.el (json-key-format): Add error properties.
(json-encode-key): New function.
(json-encode-hash-table, json-encode-alist, json-encode-plist):
Use json-encode-key.

11 years agoCombine two cal-tex functions
Glenn Morris [Wed, 22 Aug 2012 00:39:44 +0000 (20:39 -0400)]
Combine two cal-tex functions

* lisp/calendar/cal-tex.el (cal-tex-longday): New function, replacing...
(cal-tex-leftday, cal-tex-rightday): Remove functions.
(cal-tex-weekly-common, cal-tex-cursor-filofax-2week): Update for above change.

11 years ago* alloc.c: Use bool for booleans.
Paul Eggert [Tue, 21 Aug 2012 23:39:56 +0000 (16:39 -0700)]
* alloc.c: Use bool for booleans.

(gc_in_progress, abort_on_gc)
(setjmp_tested_p) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
(dont_register_blocks) [GC_MALLOC_CHECK]:
(suppress_checking) [ENABLE_CHECKING]: Now bool, not int.
(check_string_bytes, make_specified_string, memory_full)
(live_string_p, live_cons_p, live_symbol_p, live_float_p)
(live_misc_p, live_vector_p, live_buffer_p, mark_maybe_object)
(mark_stack, valid_pointer_p, make_pure_string)
(Fgarbage_collect, survives_gc_p, gc_sweep):
Use bool for booleans, instead of int.
(test_setjmp) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]:
Remove unused local.
* alloc.c (PURE_POINTER_P):
* lisp.h (STRING_MULTIBYTE): Document that it returns a boolean.
* editfns.c (Fformat):
* fileio.c (Fexpand_file_name, Fsubstitute_in_file_name)
(Fdo_auto_save):
* fns.c (sweep_weak_table):
* lisp.h (suppress_checking, push_message, survives_gc_p)
(make_pure_string, gc_in_progress, abort_on_gc):
* lread.c (readchar, read1):
* print.c (Fprin1_to_string):
* xdisp.c (push_message):
Use bool for booleans affected directly or indirectly by
alloc.c's changes.

11 years agoMake recently-introduced setters macros.
Paul Eggert [Tue, 21 Aug 2012 23:09:01 +0000 (16:09 -0700)]
Make recently-introduced setters macros.

* fontset.c (set_fontset_id, set_fontset_name, set_fontset_ascii)
(set_fontset_base, set_fontset_frame, set_fontset_nofont_face)
(set_fontset_default, set_fontset_fallback): Rename from their
upper-case counterparts, and make them functions rather than macros.
This is more consistent with the other recently-introduced setters.
These don't need to be inline, since they're local.

11 years agoFixes: debbugs:11805
Andreas Schwab [Tue, 21 Aug 2012 21:41:35 +0000 (23:41 +0200)]
Fixes: debbugs:11805

* cus-face.el (custom-face-attributes): Fix customize type for the
:underline attribute.

11 years ago* nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in
Jan Djärv [Tue, 21 Aug 2012 20:50:31 +0000 (22:50 +0200)]
* nsterm.m (fd_handler:): Alloc and release a NSAutoreleasePool in
the loop.

Fixes: debbugs:12247

11 years agoRevert accidental deletion from previous change
Glenn Morris [Tue, 21 Aug 2012 19:18:56 +0000 (15:18 -0400)]
Revert accidental deletion from previous change

11 years agoRemove yet more cal-tex code duplication
Glenn Morris [Tue, 21 Aug 2012 18:27:14 +0000 (14:27 -0400)]
Remove yet more cal-tex code duplication

* lisp/calendar/cal-tex.el (cal-tex-weekly-common): New function.
(cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week): Use it.

11 years agoRemove more cal-tex code duplication
Glenn Morris [Tue, 21 Aug 2012 18:15:56 +0000 (14:15 -0400)]
Remove more cal-tex code duplication

* calendar/cal-tex.el (cal-tex-rightday): Add optional funcname arg.
(cal-tex-shortday): New function.
(cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week)
(cal-tex-cursor-filofax-daily): Use the above.

11 years ago* lisp.h (vcopy): Use memcpy rather than our own loop.
Paul Eggert [Tue, 21 Aug 2012 17:18:21 +0000 (10:18 -0700)]
* lisp.h (vcopy): Use memcpy rather than our own loop.

This fixes a performance regression introduced by the recent
addition of vcopy.  This means 'vcopy' will need to be modified
for a copying collector, but that's OK.  Also, tighten the
checking in the assertion.

11 years agoFix bug #11860 with displaying composite RTL characters on MS-Windows.
Eli Zaretskii [Tue, 21 Aug 2012 17:14:08 +0000 (20:14 +0300)]
Fix bug #11860 with displaying composite RTL characters on MS-Windows.

 src/w32uniscribe.c (uniscribe_shape): Fix producing gstring
 components for RTL text.  Adjust X-OFFSET of each non-base glyph
 for the width of the base character, according to what
 x_draw_composite_glyph_string_foreground expects.  Generate
 WADJUST value according to composition_gstring_width's
 expectations, to produce correct width of the composed character.
 Reverse the sign of the DU offset produced by ScriptPlace.

11 years ago* dbusbind.c (xd_remove_watch): Do not assume C99 comments.
Paul Eggert [Tue, 21 Aug 2012 16:54:50 +0000 (09:54 -0700)]
* dbusbind.c (xd_remove_watch): Do not assume C99 comments.

11 years agoMerge from gnulib.
Paul Eggert [Tue, 21 Aug 2012 14:37:56 +0000 (07:37 -0700)]
Merge from gnulib.

11 years agoAvoid direct writes to contents member of struct Lisp_Vector.
Dmitry Antipov [Tue, 21 Aug 2012 10:21:04 +0000 (14:21 +0400)]
Avoid direct writes to contents member of struct Lisp_Vector.
* lisp.h (vcopy): New function to copy data into vector.
* dispnew.c (Fframe_or_buffer_changed_p): Use AREF and ASET.
* fns.c (Ffillarray): Use ASET.
* keyboard.c (timer_check_2): Use AREF and ASET.
(append_tool_bar_item, Frecent_keys): Use vcopy.
* lread.c (read_vector): Use ASET.
* msdos.c (Frecent_doskeys): Use vcopy.
* xface.c (Finternal_copy_lisp_face): Use vcopy.
(Finternal_merge_in_global_face): Use ASET and vcopy.
* xfont.c (xfont_list_pattern): Likewise.

11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 21 Aug 2012 10:17:31 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoDocument recent changes for select-window, window-point and set-window-point.
Martin Rudalics [Tue, 21 Aug 2012 09:50:58 +0000 (11:50 +0200)]
Document recent changes for select-window, window-point and set-window-point.

* windows.texi (Window Point): Document recent changes in
window-point and set-window-point.
(Selecting Windows): Document recent change in select-window.

11 years agoFor selected window have (set-)window-point always operate on buffer's point.
Martin Rudalics [Tue, 21 Aug 2012 09:27:07 +0000 (11:27 +0200)]
For selected window have (set-)window-point always operate on buffer's point.

* window.c (Fwindow_point): For the selected window always return
the position of its buffer's point.
(Fset_window_point): For the selected window always go in its
buffer to the specified position.
* window.el (window-point-1, set-window-point-1): Remove.
(window-in-direction, record-window-buffer)
(set-window-buffer-start-and-point, split-window-below)
(window--state-get-1, display-buffer-record-window): Replace
calls to window-point-1 and set-window-point-1 by calls to
window-point and set-window-point respectively.

11 years agoRemove still more cal-tex code duplication
Glenn Morris [Tue, 21 Aug 2012 07:59:25 +0000 (00:59 -0700)]
Remove still more cal-tex code duplication

* lisp/calendar/cal-tex.el (cal-tex-leftday, cal-tex-rightday): New functions.
(cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week)
(cal-tex-cursor-filofax-week): Use them.

11 years agoerc-match: fix erc-match server buffer exclusion
Julien Danjou [Tue, 21 Aug 2012 07:52:42 +0000 (09:52 +0200)]
erc-match: fix erc-match server buffer exclusion

* erc-match.el (erc-match-message): Use
`erc-match-exclude-server-buffer' not
`erc-track-exclude-server-buffer'.

11 years agoRemove more cal-tex code duplication
Glenn Morris [Tue, 21 Aug 2012 07:46:47 +0000 (00:46 -0700)]
Remove more cal-tex code duplication

* lisp/calendar/cal-tex.el (cal-tex-lefthead, cal-tex-righthead): New constants.
(cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week)
(cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily): Use them.

11 years agoAllow multiple cal-tex-buffer buffers to exist
Glenn Morris [Tue, 21 Aug 2012 07:08:50 +0000 (00:08 -0700)]
Allow multiple cal-tex-buffer buffers to exist

* lisp/calendar/cal-tex.el (cal-tex-preamble): Generate new buffers.
(cal-tex-end-document): Don't rely on buffer name.

11 years agoUse cal-tex-arg more
Glenn Morris [Tue, 21 Aug 2012 07:01:29 +0000 (00:01 -0700)]
Use cal-tex-arg more

* lisp/calendar/cal-tex.el (cal-tex-scriptsize, cal-tex-huge)
(cal-tex-Huge, cal-tex-large): Use cal-tex-arg.

11 years agoUse cal-tex-* functions more
Glenn Morris [Tue, 21 Aug 2012 06:50:55 +0000 (23:50 -0700)]
Use cal-tex-* functions more

* lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year): Use cal-tex-vspace.
(cal-tex-vspace, cal-tex-hspace, cal-tex-em, cal-tex-bf)
(cal-tex-Huge-bf, cal-tex-large-bf): Use cal-tex-cmd.

11 years agoImprove cal-tex-cmd usage
Glenn Morris [Tue, 21 Aug 2012 06:35:48 +0000 (23:35 -0700)]
Improve cal-tex-cmd usage

* lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year)
(cal-tex-cursor-week, cal-tex-cursor-week2)
(cal-tex-cursor-week-iso, cal-tex-cursor-week-at-a-glance)
(cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
(cal-tex-cursor-filofax-daily, cal-tex-cursor-day)
(cal-tex-insert-preamble, cal-tex-b-document)
(cal-tex-e-document, cal-tex-b-center, cal-tex-e-center):
Improve cal-tex-cmd usage.

11 years agoSetter macros for fontsets.
Dmitry Antipov [Tue, 21 Aug 2012 04:46:05 +0000 (08:46 +0400)]
Setter macros for fontsets.
* fontset.c (SET_FONTSET_ID, SET_FONTSET_NAME, SET_FONTSET_ASCII)
(SET_FONTSET_BASE, SET_FONTSET_FRAME, SET_FONTSET_NOFONT_FACE)
(SET_FONTSET_DEFAULT, SET_FONTSET_FALLBACK): New macros.
Adjust users.

11 years agoReduce some cal-tex code duplication
Glenn Morris [Tue, 21 Aug 2012 02:29:25 +0000 (22:29 -0400)]
Reduce some cal-tex code duplication

* lisp/calendar/cal-tex.el (cal-tex-filofax-paper): New function.
(cal-tex-cursor-filofax-year, cal-tex-cursor-filofax-2week)
(cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily): Use it.
(cal-tex-weekly-paper): New function.
(cal-tex-cursor-week, cal-tex-cursor-week2)
(cal-tex-cursor-week-iso, cal-tex-cursor-week-monday)
(cal-tex-cursor-day): Use it.

11 years agoRemove some blank pages from cal-tex output
Glenn Morris [Tue, 21 Aug 2012 01:36:27 +0000 (21:36 -0400)]
Remove some blank pages from cal-tex output

* lisp/calendar/cal-tex.el (cal-tex-cursor-week-at-a-glance)
(cal-tex-cursor-filofax-week): Remove leading blank page.
(Were these supposed to serve some purpose?  Printing?)

11 years agocal-tex-cursor-week-at-a-glance small fixes
Glenn Morris [Tue, 21 Aug 2012 01:32:26 +0000 (21:32 -0400)]
cal-tex-cursor-week-at-a-glance small fixes

* lisp/calendar/cal-tex.el (cal-tex-cursor-week-at-a-glance):
Add autoload cookie.
For now at least, don't use color, since no other cal-tex function does.

11 years agognus-msg.el (gnus-summary-resend-message): Honor posting-style for `name' and `addres...
Katsumi Yamaoka [Tue, 21 Aug 2012 01:23:57 +0000 (01:23 +0000)]
gnus-msg.el (gnus-summary-resend-message): Honor posting-style for `name' and `address' in Resent-From header

11 years agocal-tex small fix
Glenn Morris [Tue, 21 Aug 2012 01:10:27 +0000 (21:10 -0400)]
cal-tex small fix

* lisp/calendar/cal-tex.el (cal-tex-cursor-week-iso)
(cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week)
(cal-tex-cursor-filofax-daily): Correct start date for diary entries.

11 years ago* lisp/info.el (Info-file-attributes): New variable.
Juri Linkov [Tue, 21 Aug 2012 00:12:42 +0000 (03:12 +0300)]
* lisp/info.el (Info-file-attributes): New variable.
(info-insert-file-contents): Add file attributes to
`Info-file-attributes'.  Clear the caches `Info-index-nodes' and
`Info-toc-nodes' when previous modtime of the Info file is less
than new modtime.
(Info-toc-nodes, Info-index-nodes): Move definitions up to the top
of info.el.

Fixes: debbugs:12230

11 years ago* src/Makefile.in: Don't assume that `ln -f' works.
Glenn Morris [Mon, 20 Aug 2012 23:57:35 +0000 (19:57 -0400)]
* src/Makefile.in: Don't assume that `ln -f' works.
Presumably it does work fine on all platforms currently building
Emacs, but the autoconf manual says not to rely on it.

11 years agoUse symlink in installed bin/ directory, where supported
Glenn Morris [Mon, 20 Aug 2012 22:12:35 +0000 (18:12 -0400)]
Use symlink in installed bin/ directory, where supported

* configure.ac (AC_PROG_LN_S): Test for ln.

* Makefile.in (LN_S): New, set by configure.
(install-arch-dep): Use $LN_S.

11 years agoUse display-warning in a few places in calendar
Glenn Morris [Mon, 20 Aug 2012 18:13:03 +0000 (14:13 -0400)]
Use display-warning in a few places in calendar

* lisp/calendar/diary-lib.el (diary-include-files, diary-sexp-entry):
* lisp/calendar/holidays.el (calendar-holiday-list):
Report errors with display-warning rather than beep'n'sleep.

11 years agoAvoid GDB 7.5 warnings about "set main" in src/.gdbinit.
Eli Zaretskii [Mon, 20 Aug 2012 17:32:31 +0000 (20:32 +0300)]
Avoid GDB 7.5 warnings about "set main" in src/.gdbinit.

 src/.gdbinit: Use "set $dummy = ..." to avoid warnings from GDB 7.5
 and later about non-assignments with no effect.  See discussion at
 http://sourceware.org/ml/gdb-patches/2012-08/msg00518.html for
 details.

11 years agoImprove MS-Windows related commentary and log entry for 2012-08-19T21:00:09Z!eggert...
Eli Zaretskii [Mon, 20 Aug 2012 16:48:10 +0000 (19:48 +0300)]
Improve MS-Windows related commentary and log entry for 2012-08-19T21:00:09Z!eggert@cs.ucla.edu.

11 years agoHide specified message types sent by lurkers
Josh Feinstein [Mon, 20 Aug 2012 16:08:51 +0000 (09:08 -0700)]
Hide specified message types sent by lurkers

* erc.el (erc-display-message): Abstract message hiding decision
to new function erc-hide-current-message-p.
(erc-lurker): New customization group.
(erc-lurker-state, erc-lurker-trim-nicks, erc-lurker-ignore-chars)
(erc-lurker-hide-list, erc-lurker-cleanup-interval)
(erc-lurker-threshold-time): New variables.
(erc-lurker-maybe-trim, erc-lurker-initialize, erc-lurker-cleanup)
(erc-hide-current-message-p, erc-canonicalize-server-name)
(erc-lurker-update-status, erc-lurker-p): New functions.  Together
they maintain state about which users have spoken in the last
erc-lurker-threshold-time, with all other users being considered
lurkers whose messages of types in erc-lurker-hide-list will not
be displayed by erc-display-message.

11 years ago* net/tramp.el (tramp-accept-process-output): Accept only output
Michael Albinus [Mon, 20 Aug 2012 14:06:06 +0000 (16:06 +0200)]
* net/tramp.el (tramp-accept-process-output): Accept only output
from PROC.  Otherwise, process filters and sentinels might be
confused.  (Bug#12145)

11 years agoMake C-u C-x = report on empty overlays at point.
Chong Yidong [Mon, 20 Aug 2012 11:12:16 +0000 (19:12 +0800)]
Make C-u C-x = report on empty overlays at point.

* lisp/descr-text.el (describe-text-properties-1): Use overlays-in to
report on empty overlays.

Fixes: debbugs:3322

11 years agoAuto-commit of generated files.
Glenn Morris [Mon, 20 Aug 2012 10:17:51 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoInline setter functions for Lisp_Objects slots of struct specbinding.
Dmitry Antipov [Mon, 20 Aug 2012 09:39:57 +0000 (13:39 +0400)]
Inline setter functions for Lisp_Objects slots of struct specbinding.
* eval.c (set_specpdl_symbol, set_specpdl_old_value): New functions.
Adjust users.

11 years agoIn select_window always make selected window's buffer current.
Martin Rudalics [Mon, 20 Aug 2012 09:28:39 +0000 (11:28 +0200)]
In select_window always make selected window's buffer current.

* window.c (select_window): Always make selected window's buffer
current.

11 years agoUse AREF and ASET for docstrings of category tables.
Dmitry Antipov [Mon, 20 Aug 2012 08:20:25 +0000 (12:20 +0400)]
Use AREF and ASET for docstrings of category tables.
* category.h (CATEGORY_DOCSTRING): Use AREF.
(SET_CATEGORY_DOCSTRING): Use ASET.
* category.c (Fdefine_category): Use SET_CATEGORY_DOCSTRING.

11 years agoInline setter functions for hash table members.
Dmitry Antipov [Mon, 20 Aug 2012 08:07:38 +0000 (12:07 +0400)]
Inline setter functions for hash table members.
* lisp.h (set_hash_key, set_hash_value, set_hash_next)
(set_hash_hash, set_hash_index): Rename with _slot suffix.
(set_hash_key_and_value, set_hash_index, set_hash_next)
(set_hash_hash): New functions.
* charset.c, fns.c: Adjust users.

11 years ago* lisp/mail/rmailout.el (rmail-output-read-file-name): Trap errors
Glenn Morris [Mon, 20 Aug 2012 07:45:10 +0000 (00:45 -0700)]
* lisp/mail/rmailout.el (rmail-output-read-file-name): Trap errors
in rmail-output-file-alist elements, and report them.

11 years agoInline getter and setter functions for per-buffer values.
Dmitry Antipov [Mon, 20 Aug 2012 07:42:06 +0000 (11:42 +0400)]
Inline getter and setter functions for per-buffer values.
* buffer.h (per_buffer_default, set_per_buffer_default)
(per_buffer_value, set_per_buffer_value): New functions.
(PER_BUFFER_VALUE, PER_BUFFER_DEFAULT): Remove.
* buffer.c, data.c: Adjust users.

11 years ago* lisp/font-lock.el (font-lock-add-keywords): Doc fix
Glenn Morris [Mon, 20 Aug 2012 07:30:40 +0000 (00:30 -0700)]
* lisp/font-lock.el (font-lock-add-keywords): Doc fix
(quote face names since most non-font-lock faces are not also variables).

11 years ago* calendar/cal-tex.el (cal-tex-cursor-week-at-a-glance): New function.
Edward Reingold [Mon, 20 Aug 2012 07:23:51 +0000 (00:23 -0700)]
* calendar/cal-tex.el (cal-tex-cursor-week-at-a-glance): New function.
(This is basically cal-tex-cursor-filofax-week with a different
papersize, mini-calendars, and color.)

Fixes: debbugs:12160

11 years agoClarify recent ChangeLog entry.
Paul Eggert [Mon, 20 Aug 2012 04:04:58 +0000 (21:04 -0700)]
Clarify recent ChangeLog entry.

11 years agosrc/makefile.w32-in ($(BLD)/vm-limit.$(O)): Update dependencies.
Juanma Barranquero [Mon, 20 Aug 2012 01:28:35 +0000 (03:28 +0200)]
src/makefile.w32-in ($(BLD)/vm-limit.$(O)): Update dependencies.

11 years agoMerge from gnulib.
Paul Eggert [Sun, 19 Aug 2012 23:31:24 +0000 (16:31 -0700)]
Merge from gnulib.

2012-08-19 ignore-value, stat-time, timespec: omit AC_C_INLINE
2012-08-19 mktime, sys_select: avoid 'static inline'
2012-08-19 gnulib-tool: Fix indentation.

11 years agoRely on <unistd.h> to declare 'environ',
Paul Eggert [Sun, 19 Aug 2012 21:00:09 +0000 (14:00 -0700)]
Rely on <unistd.h> to declare 'environ',

as gnulib does this if the system doesn't.
* lib-src/emacsclient.c (environ): Remove decl.
* src/callproc.c, src/editfns.c, src/process.c (environ) [!USE_CRT_DLL]:
* src/emacs.c (environ) [DOUG_LEA_MALLOC]:
* src/vm-limit.c (environ) [ORDINARY_LINK]: Remove decl.
* src/vm-limit.c: Include <unistd.h>, for 'environ'.

11 years ago* unexaix.c, unexcoff.c: Include "mem-limits.h".
Paul Eggert [Sun, 19 Aug 2012 20:02:24 +0000 (13:02 -0700)]
* unexaix.c, unexcoff.c: Include "mem-limits.h".

(start_of_data): Remove decl; mem-limits.h provides it.

11 years ago* xdisp.c (handle_invisible_prop): Make it a bit faster
Paul Eggert [Sun, 19 Aug 2012 19:22:41 +0000 (12:22 -0700)]
* xdisp.c (handle_invisible_prop): Make it a bit faster

and avoid a gcc -Wmaybe-uninitialized diagnostic.

11 years agoFix previous rmail-output-read-file-name change
Glenn Morris [Sun, 19 Aug 2012 18:41:35 +0000 (11:41 -0700)]
Fix previous rmail-output-read-file-name change

* lisp/mail/rmailout.el (rmail-output-read-file-name):
Fix previous change (when the alist is nil or does not match).

11 years ago* src/xdisp.c (handle_invisible_prop): Fix ellipses at overlay string ends.
Chong Yidong [Sun, 19 Aug 2012 16:19:05 +0000 (00:19 +0800)]
* src/xdisp.c (handle_invisible_prop): Fix ellipses at overlay string ends.

* test/redisplay-testsuite.el (test-redisplay): Use switch-to-buffer.

Fixes: debbugs:3874

11 years ago* .gdbinit: Use call instead of set when calling a function in the
Andreas Schwab [Sun, 19 Aug 2012 10:50:03 +0000 (12:50 +0200)]
* .gdbinit: Use call instead of set when calling a function in the
inferior.

11 years ago* data.c (set_internal): Don't use set_blv_found.
Andreas Schwab [Sun, 19 Aug 2012 08:40:12 +0000 (10:40 +0200)]
* data.c (set_internal): Don't use set_blv_found.
(Fkill_local_variable): Likewise.

11 years ago* xml.el (xml-escape-string): Don't refer to xml-entity-alist.
Chong Yidong [Sun, 19 Aug 2012 06:37:15 +0000 (14:37 +0800)]
* xml.el (xml-escape-string): Don't refer to xml-entity-alist.

Fixes: debbugs:12228

11 years ago* nsfont.m (ns_ascii_average_width): Ensure the string
Alp Aker [Sun, 19 Aug 2012 00:53:29 +0000 (20:53 -0400)]
* nsfont.m (ns_ascii_average_width): Ensure the string
ascii_printable is initialized with a null-terminated character
array.  Otherwise, it can contain undesired extra characters.

11 years agoport new setting code to Sun C 5.8 2005/10/13
Paul Eggert [Sat, 18 Aug 2012 23:53:43 +0000 (16:53 -0700)]
port new setting code to Sun C 5.8 2005/10/13

* chartab.c, lisp.h (char_table_set, char_table_set_range):
Return void, not Lisp_Object.  Otherwise, the compiler
complains about (A?B:C) where B is void and C is Lisp_Object
when compiling CHAR_TABLE_SET, due to the recent change to
the API of sub_char_table_set_contents.

11 years ago* lib/sigprocmask.c, m4/signalblocking.m4: Remove.
Paul Eggert [Sat, 18 Aug 2012 21:36:13 +0000 (14:36 -0700)]
* lib/sigprocmask.c, m4/signalblocking.m4: Remove.

These files have been unused since the 2012-06-22 patch that
introduced high-resolution time stamps.

11 years agoMake display strings obey buffer-invisibility-spec.
Chong Yidong [Sat, 18 Aug 2012 07:23:30 +0000 (15:23 +0800)]
Make display strings obey buffer-invisibility-spec.

* src/xdisp.c (handle_invisible_prop): Obey TEXT_PROP_MEANS_INVISIBLE
for the string case.

* redisplay-testsuite.el (test-redisplay-4): New test.

Fixes: debbugs:3874

11 years ago* buffer.h (BSET): Remove.
Paul Eggert [Sat, 18 Aug 2012 06:06:39 +0000 (23:06 -0700)]
* buffer.h (BSET): Remove.

Replace all uses with calls to new setter functions.
(bset_bidi_paragraph_direction, bset_case_canon_table)
(bset_case_eqv_table, bset_directory, bset_display_count)
(bset_display_time, bset_downcase_table)
(bset_enable_multibyte_characters, bset_filename, bset_keymap)
(bset_last_selected_window, bset_local_var_alist)
(bset_mark_active, bset_point_before_scroll, bset_read_only)
(bset_truncate_lines, bset_undo_list, bset_upcase_table)
(bset_width_table):
* buffer.c (bset_abbrev_mode, bset_abbrev_table)
(bset_auto_fill_function, bset_auto_save_file_format)
(bset_auto_save_file_name, bset_backed_up, bset_begv_marker)
(bset_bidi_display_reordering, bset_buffer_file_coding_system)
(bset_cache_long_line_scans, bset_case_fold_search)
(bset_ctl_arrow, bset_cursor_in_non_selected_windows)
(bset_cursor_type, bset_display_table, bset_extra_line_spacing)
(bset_file_format, bset_file_truename, bset_fringe_cursor_alist)
(bset_fringe_indicator_alist, bset_fringes_outside_margins)
(bset_header_line_format, bset_indicate_buffer_boundaries)
(bset_indicate_empty_lines, bset_invisibility_spec)
(bset_left_fringe_width, bset_major_mode, bset_mark)
(bset_minor_modes, bset_mode_line_format, bset_mode_name)
(bset_name, bset_overwrite_mode, bset_pt_marker)
(bset_right_fringe_width, bset_save_length)
(bset_scroll_bar_width, bset_scroll_down_aggressively)
(bset_scroll_up_aggressively, bset_selective_display)
(bset_selective_display_ellipses, bset_vertical_scroll_bar_type)
(bset_word_wrap, bset_zv_marker):
* category.c (bset_category_table):
* syntax.c (bset_syntax_table):
New setter functions.

Fixes: debbugs:12215

11 years agoAdd yank-handled-properties; use it for `font-lock-face' and `category'
Chong Yidong [Sat, 18 Aug 2012 05:11:38 +0000 (13:11 +0800)]
Add yank-handled-properties; use it for `font-lock-face' and `category'
properties, instead of hard-coding these properties' special handling.

* lisp/simple.el (yank-handled-properties): New defcustom.
(yank-excluded-properties): Add font-lock-face and category.
(yank): Doc fix.

* lisp/subr.el (remove-yank-excluded-properties): Obey
yank-handled-properties.  The special handling of font-lock-face
and category is now done this way, instead of being hard-coded.
(insert-for-yank-1): Remove font-lock-face handling.
(yank-handle-font-lock-face-property)
(yank-handle-category-property): New function.

11 years ago* process.h (PSET): Remove.
Paul Eggert [Sat, 18 Aug 2012 02:49:24 +0000 (19:49 -0700)]
* process.h (PSET): Remove.

Replace all uses with calls to new setter functions.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(PROCESS_INLINE): New macro.
(pset_childp): New setter function.
(pset_gnutls_cred_type) [HAVE_GNUTLS]: New setter function.
* process.c (PROCESS_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
(pset_buffer, pset_command, pset_decode_coding_system)
(pset_decoding_buf, pset_encode_coding_system)
(pset_encoding_buf, pset_filter, pset_log, pset_mark, pset_name)
(pset_plist, pset_sentinel, pset_status, pset_tty_name)
(pset_type, pset_write_queue): New setter functions.

Fixes: debbugs:12215

11 years ago* window.h (WSET): Remove.
Paul Eggert [Sat, 18 Aug 2012 01:42:52 +0000 (18:42 -0700)]
* window.h (WSET): Remove.

Replace all uses with calls to new setter functions.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(WINDOW_INLINE): New macro.
(wset_buffer, wset_frame, wset_left_col, wset_next, wset_prev)
(wset_redisplay_end_trigger, wset_top_line, wset_total_cols)
(wset_total_lines, wset_vertical_scroll_bar)
(wset_window_end_pos, wset_window_end_valid)
(wset_window_end_vpos): New setter functions.
* window.c (WINDOW_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
(wset_combination_limit, wset_dedicated, wset_display_table)
(wset_hchild, wset_left_fringe_width, wset_left_margin_cols)
(wset_new_normal, wset_new_total, wset_next_buffers)
(wset_normal_cols, wset_normal_lines, wset_parent, wset_pointm)
(wset_prev_buffers, wset_right_fringe_width)
(wset_right_margin_cols, wset_scroll_bar_width, wset_start)
(wset_temslot, wset_vchild, wset_vertical_scroll_bar_type)
(wset_window_parameters):
* xdisp.c (wset_base_line_number, wset_base_line_pos)
(wset_column_number_displayed, wset_region_showing):
New setter functions.

Fixes: debbugs:12215

11 years ago* termhooks.h (TSET): Remove.
Paul Eggert [Sat, 18 Aug 2012 00:07:52 +0000 (17:07 -0700)]
* termhooks.h (TSET): Remove.

Replace all uses with calls to new setter functions.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(TERMHOOKS_INLINE): New macro.
(tset_charset_list, tset_selection_alist): New setter functions.
* terminal.c (TERMHOOKS_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
(tset_param_alist): New setter function.

Fixes: debbugs:12215

11 years ago* keyboard.h (KSET): Remove.
Paul Eggert [Fri, 17 Aug 2012 23:38:43 +0000 (16:38 -0700)]
* keyboard.h (KSET): Remove.

Replace all uses with calls to new setter functions.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(KEYBOARD_INLINE): New macro.
(kset_default_minibuffer_frame, kset_defining_kbd_macro)
(kset_input_decode_map, kset_last_command, kset_last_kbd_macro)
(kset_prefix_arg, kset_system_key_alist, kset_window_system):
New setter functions.
* keyboard.c (KEYBOARD_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
(kset_echo_string, kset_kbd_queue)
(kset_keyboard_translate_table, kset_last_prefix_arg)
(kset_last_repeatable_command, kset_local_function_key_map)
(kset_overriding_terminal_local_map, kset_real_last_command)
(kset_system_key_syms): New setter functions.

Fixes: debbugs:12215

11 years ago* frame.h (FSET): Remove (Bug#12215).
Paul Eggert [Fri, 17 Aug 2012 21:52:15 +0000 (14:52 -0700)]
* frame.h (FSET): Remove (Bug#12215).

Replace all uses with calls to new setter functions.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(FRAME_INLINE): New macro.
(fset_buffer_list, fset_buried_buffer_list, fset_condemned_scroll_bars)
(fset_current_tool_bar_string, fset_desired_tool_bar_string)
(fset_face_alist, fset_focus_frame, fset_icon_name, fset_menu_bar_items)
(fset_menu_bar_vector, fset_menu_bar_window, fset_name)
(fset_param_alist, fset_root_window, fset_scroll_bars)
(fset_selected_window, fset_title, fset_tool_bar_items)
(fset_tool_bar_position, fset_tool_bar_window): New functions.
* frame.c (FRAME_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
(fset_buffer_predicate, fset_minibuffer_window): New setter functions.