bpt/emacs.git
11 years agoAdd gnus-notifications.el
Julien Danjou [Wed, 29 Aug 2012 22:04:05 +0000 (22:04 +0000)]
Add gnus-notifications.el

11 years ago* lisp/progmodes/compile.el (compilation-always-kill): New var.
Martin Blais [Wed, 29 Aug 2012 18:15:12 +0000 (14:15 -0400)]
* lisp/progmodes/compile.el (compilation-always-kill): New var.
(compilation-start): Use it.

11 years ago* lisp/simple.el (read-only-mode): Move from lisp/files.el for bootstrapping.
Stefan Monnier [Wed, 29 Aug 2012 17:36:49 +0000 (13:36 -0400)]
* lisp/simple.el (read-only-mode): Move from lisp/files.el for bootstrapping.
* files.el (read-only-mode): Move to simple.el.

11 years ago* lisp/files.el (read-only-mode): New minor mode.
Stefan Monnier [Wed, 29 Aug 2012 15:11:51 +0000 (11:11 -0400)]
* lisp/files.el (read-only-mode): New minor mode.
(toggle-read-only): Use it and mark obsolete.
(find-file--read-only):
* lisp/vc/vc.el (vc-next-action, vc-checkout):
* lisp/vc/vc-cvs.el (vc-cvs-checkout):
* lisp/obsolete/vc-mcvs.el (vc-mcvs-update):
* lisp/ffap.el (ffap--toggle-read-only): Update callers.

11 years ago* eshell/esh-ext.el (eshell-external-command): Do not examine
Michael Albinus [Wed, 29 Aug 2012 12:49:44 +0000 (14:49 +0200)]
* eshell/esh-ext.el (eshell-external-command): Do not examine
remote shell scripts.  See
<https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/1035790>.

* net/tramp-sh.el (tramp-remote-path): Add "/sbin" and
"/usr/local/sbin".

11 years ago* cl-lib.el (buffer-string): Simplify last change.
Stefan Monnier [Tue, 28 Aug 2012 20:14:21 +0000 (16:14 -0400)]
* cl-lib.el (buffer-string): Simplify last change.

Fixes: debbugs:12293

11 years ago* lisp/emacs-lisp/cl-lib.el (buffer-string): Fix setter macro.
Stefan Monnier [Tue, 28 Aug 2012 19:35:35 +0000 (15:35 -0400)]
* lisp/emacs-lisp/cl-lib.el (buffer-string): Fix setter macro.

Fixes: debbugs:12293

11 years ago* admin/bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree.
Glenn Morris [Tue, 28 Aug 2012 19:26:41 +0000 (15:26 -0400)]
* admin/bzrmerge.el (bzrmerge-merges): Allow unversioned files in the tree.

11 years ago* admin/charsets/mule-charsets.el (header): Fix typo.
Andreas Schwab [Tue, 28 Aug 2012 16:08:50 +0000 (18:08 +0200)]
* admin/charsets/mule-charsets.el (header): Fix typo.

* etc/charsets/MULE-ethiopic.map: Fix typo in comment.
* etc/charsets/MULE-ipa.map: Likewise.
* etc/charsets/MULE-is13194.map: Likewise.
* etc/charsets/MULE-lviscii.map: Likewise.
* etc/charsets/MULE-sisheng.map: Likewise.
* etc/charsets/MULE-tibetan.map: Likewise.
* etc/charsets/MULE-uviscii.map: Likewise.

11 years agoImprove NS dialogs. Add close button, remove ugly casts.
Jan Djärv [Tue, 28 Aug 2012 16:05:17 +0000 (18:05 +0200)]
Improve NS dialogs.  Add close button, remove ugly casts.

* nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
button_values to NULL. Call setStykeMask so dialogs get a close button.
(windowShouldClose:): Set window_closed.
(dealloc): New member, free button_values.
(process_dialog:): Make member function. Remove window argument,
replace window with self. Count buttons and allocate and store values
in button_values.
(addButton:value:row:): value is int with the name tag.  Call setTag
with tag. Remove return self, declare return value as void.
(addString:row:): Remove return self, declare return value as void.
(addSplit): Remove return self, declare return value as void.
(clicked:): Remove return self, declare return value as void.
Set dialog_return to button_values[seltag]. Code formatting change.
(initFromContents:isQuestion:): Adjust call to process_dialog.
Code formatting change.
(timeout_handler:): Set timer_fired to YES.
(runDialogAt:): Set timer_fired to NO.
Handle click on close button as quit.

* nsterm.h (EmacsDialogPanel): Make timer_fired BOOL.
Add window_closed and button_values.  Add void as return value for
add(Button|String|Split).  addButton takes int instead of Lisp_Object.
Add process_dialog as new member.

11 years agoMerge from emacs-24; up to 2012-05-04T19:17:01Z!monnier@iro.umontreal.ca
Glenn Morris [Tue, 28 Aug 2012 16:01:59 +0000 (09:01 -0700)]
Merge from emacs-24; up to 2012-05-04T19:17:01Z!monnier@iro.umontreal.ca

11 years agoIn Fset_window_configuration install revison of reverted fix.
Martin Rudalics [Tue, 28 Aug 2012 14:09:43 +0000 (16:09 +0200)]
In Fset_window_configuration install revison of reverted fix.

* window.c (Fset_window_configuration): Install revision of reverted
fix.

11 years agoRemove handling of auto-buffer-name window parameter.
Martin Rudalics [Tue, 28 Aug 2012 13:51:09 +0000 (15:51 +0200)]
Remove handling of auto-buffer-name window parameter.

* window.c (Fset_window_configuration): Remove handling of
auto-buffer-name window parameter.

11 years agoDo not allow to set major mode for a dead buffer.
Dmitry Antipov [Tue, 28 Aug 2012 10:59:17 +0000 (14:59 +0400)]
Do not allow to set major mode for a dead buffer.
* buffer.c (Fset_buffer_major_mode): Signal an error
if the buffer is dead.
(Fother_buffer, other_buffer_safely): Remove redundant
nested declaration.

11 years agognus-sum.el (gnus-summary-enter-digest-group): Work for encoding and charset
Katsumi Yamaoka [Tue, 28 Aug 2012 09:40:11 +0000 (09:40 +0000)]
gnus-sum.el (gnus-summary-enter-digest-group): Work for encoding and charset

11 years ago* lisp/info.el (Info-fontify-node): Hide empty lines at the end of the node.
Juri Linkov [Tue, 28 Aug 2012 09:01:54 +0000 (12:01 +0300)]
* lisp/info.el (Info-fontify-node): Hide empty lines at the end of the node.

Fixes: debbugs:12272

11 years agoAlways use set_buffer_if_live to restore original buffer at unwind.
Dmitry Antipov [Tue, 28 Aug 2012 06:20:08 +0000 (10:20 +0400)]
Always use set_buffer_if_live to restore original buffer at unwind.
* buffer.h (record_unwind_current_buffer): New function.
* bytecode.c, dispnew.c, editfns.c, fileio.c, fns.c, insdel.c:
* keyboard.c, keymap.c, minibuf.c, print.c, process.c, textprop.c:
* undo.c, window.c: Adjust users.
* buffer.c (set_buffer_if_live): Fix comment.

11 years agoFix usage of set_buffer_internal.
Dmitry Antipov [Tue, 28 Aug 2012 05:49:02 +0000 (09:49 +0400)]
Fix usage of set_buffer_internal.
* buffer.h (set_buffer_internal): Make it BUFFER_INLINE.
* buffer.c (set_buffer_if_live): Use set_buffer_internal.
* coding.c (decode_coding): Omit redundant test.
* fileio.c (decide_coding_unwind): Likewise.
* fns.c (secure_hash): Likewise.
* insdel.c (modify_region): Likewise.
* keyboard.c (command_loop_1): Likewise.
* print.c (PRINTFINISH): Likewise.
* xdisp.c (run_window_scroll_functions): Use set_buffer_internal.

11 years ago* dispnew.c: Use bool for boolean.
Paul Eggert [Tue, 28 Aug 2012 00:33:56 +0000 (17:33 -0700)]
* dispnew.c: Use bool for boolean.

(frame_garbaged, display_completed, delayed_size_change)
(fonts_changed_p, add_window_display_history)
(add_frame_display_history, verify_row_hash)
(adjust_glyph_matrix, clear_window_matrices, glyph_row_slice_p)
(row_equal_p, realloc_glyph_pool)
(allocate_matrices_for_frame_redisplay)
(showing_window_margins_p)
(adjust_frame_glyphs_for_frame_redisplay)
(build_frame_matrix_from_leaf_window, make_current)
(mirrored_line_dance, mirror_line_dance, update_frame)
(update_window_tree, update_single_window)
(check_current_matrix_flags, update_window, update_text_area)
(update_window_line, set_window_update_flags, scrolling_window)
(update_frame_1, scrolling, buffer_posn_from_coords)
(do_pending_window_change, change_frame_size)
(change_frame_size_1, sit_for):
Use bool for boolean.
(clear_glyph_matrix_rows): Rename from enable_glyph_matrix_rows,
and remove last int (actually boolean) argument, which was always 0.
All callers changed.
* dispextern.h, frame.h, lisp.h: Reflect above API changes.
* dispextern.h (struct composition_it): Use bool for boolean.
(struct glyph_matrix): Don't assume buffer sizes can fit in 'int'.
(struct bidi_it): Use unsigned:1, not int, for boolean prev_was_pdf.
* dired.c (file_name_completion):
Use bool for boolean.  (This was missed in an earlier change.)

11 years agoIn Fset_window_configuration revert first part of last change.
Martin Rudalics [Mon, 27 Aug 2012 21:07:32 +0000 (23:07 +0200)]
In Fset_window_configuration revert first part of last change.

* window.c (Fset_window_configuration): Revert first part of
last change.

11 years ago* nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
Jan Djärv [Mon, 27 Aug 2012 18:53:10 +0000 (20:53 +0200)]
* nsmenu.m (initWithContentRect:styleMask:backing:defer:): Initialize
dialog_return.
(windowShouldClose:): Use stop instead of stopModalWithCode.
(clicked:): Ditto, and also set dialog_return.
(timeout_handler:): Use stop instead of abortModal.  Send a dummy
event.
(runDialogAt:): Make ret Lisp_Object.  Set it from dialog_return when
modal loop returns.

* nsterm.h (NSPanel): New class variable dialog_return.

Fixes: debbugs:12258

11 years ago* composite.c, data.c, dbusbind.c, dired.c: Use bool for booleans.
Paul Eggert [Mon, 27 Aug 2012 17:23:48 +0000 (10:23 -0700)]
* composite.c, data.c, dbusbind.c, dired.c: Use bool for booleans.

* composite.c (find_composition, composition_gstring_p)
(composition_reseat_it, find_automatic_composition):
* data.c (let_shadows_buffer_binding_p)
(let_shadows_global_binding_p, set_internal, make_blv)
(Fmake_variable_buffer_local, Fmake_local_variable)
(Fmake_variable_frame_local, arithcompare, cons_to_unsigned)
(cons_to_signed, arith_driver):
* dbusbind.c (xd_in_read_queued_messages):
* dired.c (directory_files_internal, file_name_completion):
Use bool for booleans.
* dired.c (file_name_completion):
* process.h (fd_callback):
Omit int (actually boolean) argument.  It wasn't being used.
All uses changed.
* composite.h, lisp.h: Reflect above API changes.

11 years ago* cmds.c, coding.c: Use bool for booleans.
Paul Eggert [Mon, 27 Aug 2012 16:19:34 +0000 (09:19 -0700)]
* cmds.c, coding.c: Use bool for booleans.

* cmds.c (move_point, Fself_insert_command):
* coding.h (struct composition status, struct coding_system):
* coding.c (detect_coding_utf_8, encode_coding_utf_8)
(detect_coding_utf_16, encode_coding_utf_16, detect_coding_emacs_mule)
(emacs_mule_char, decode_coding_emacs_mule)
(encode_coding_emacs_mule, detect_coding_iso_2022)
(decode_coding_iso_2022, encode_invocation_designation)
(encode_designation_at_bol, encode_coding_iso_2022)
(detect_coding_sjis, detect_coding_big5, decode_coding_sjis)
(decode_coding_big5, encode_coding_sjis, encode_coding_big5)
(detect_coding_ccl, encode_coding_ccl, decode_coding_raw_text)
(encode_coding_raw_text, detect_coding_charset)
(decode_coding_charset, encode_coding_charset, detect_eol)
(detect_coding, get_translation_table, produce_chars)
(consume_chars, reused_workbuf_in_use)
(make_conversion_work_buffer, code_conversion_save)
(decode_coding_object, encode_coding_object)
(detect_coding_system, char_encodable_p)
(Funencodable_char_position, code_convert_region)
(code_convert_string, code_convert_string_norecord)
(Fset_coding_system_priority):
* fileio.c (Finsert_file_contents):
Use bool for booleans.
* coding.h, lisp.h: Reflect above API changes.
* coding.c: Remove unnecessary static function decls.
(detect_coding): Use unsigned, not signed, to copy an unsigned field.
(decode_coding, encode_coding, decode_coding_gap): Return 'void',
not a boolean 'int', since callers never look at the return value.
(ALLOC_CONVERSION_WORK_AREA): Assume caller returns 'void', not 'int'.
* coding.h (decoding_buffer_size, encoding_buffer_size)
(emacs_mule_string_char): Remove unused extern decls.
(struct iso_2022_spec, struct coding_system):
Use 'unsigned int : 1' for boolean fields, since there's more than one.
(struct emacs_mule_spec): Remove unused field 'full_support'.
All initializations removed.
* cmds.c (internal_self_insert): Don't assume EMACS_INT fits in 'int'.

11 years agoFix broken completion in sh-mode
Leo Liu [Mon, 27 Aug 2012 12:33:05 +0000 (20:33 +0800)]
Fix broken completion in sh-mode

See: http://debbugs.gnu.org/12220

11 years ago* skeleton.el (skeleton-untabify): Change to nil.
Leo Liu [Mon, 27 Aug 2012 11:02:23 +0000 (19:02 +0800)]
* skeleton.el (skeleton-untabify): Change to nil.

Fixes: debbugs:12223

11 years agoChange sh-indent-comment to t
Leo Liu [Mon, 27 Aug 2012 10:51:17 +0000 (18:51 +0800)]
Change sh-indent-comment to t

See: http://debbugs.gnu.org/12267

11 years agoFix spare memory change.
Dmitry Antipov [Mon, 27 Aug 2012 09:30:26 +0000 (13:30 +0400)]
Fix spare memory change.
* alloc.c (mark_maybe_pointer): Handle MEM_TYPE_SPARE.
(valid_lisp_object_p): Likewise.

11 years agoIn dired-pop-to-buffer make window start at beginning of buffer (Bug#12281).
Martin Rudalics [Mon, 27 Aug 2012 09:05:55 +0000 (11:05 +0200)]
In dired-pop-to-buffer make window start at beginning of buffer (Bug#12281).

* dired.el (dired-pop-to-buffer): Make window start at beginning
of buffer (Bug#12281).

11 years agoAddress two problems in Fset_window_configuration (Bug#8789) and (Bug#12208).
Martin Rudalics [Mon, 27 Aug 2012 08:31:19 +0000 (10:31 +0200)]
Address two problems in Fset_window_configuration (Bug#8789) and (Bug#12208).

* window.c (Fset_window_configuration): Record any window's old
buffer if it's replaced (see Bug#8789).  If the new current
buffer doesn't appear in the selected window, go to its old
point (Bug#12208).

11 years agoSpecial MEM_TYPE_SPARE to denote reserved memory.
Dmitry Antipov [Mon, 27 Aug 2012 04:15:33 +0000 (08:15 +0400)]
Special MEM_TYPE_SPARE to denote reserved memory.
* alloc.c (enum mem_type): New memory type.
(refill_memory_reserve): Use new type for spare memory.
This prevents live_cons_p and live_string_p from incorrect
detection of uninitialized objects from spare memory as live.

11 years agoMake special-display-* and display-buffer-reuse-frames obsolete.
Chong Yidong [Sun, 26 Aug 2012 13:42:18 +0000 (21:42 +0800)]
Make special-display-* and display-buffer-reuse-frames obsolete.

* lisp/window.el (special-display-regexps, special-display-frame-alist)
(special-display-buffer-names, special-display-function)
(display-buffer-reuse-frames): Mark as obsolete.

* lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.

* help.el (help-print-return-message): Don't treat
display-buffer-reuse-frames specially.

11 years agoSpelling fixes.
Paul Eggert [Sun, 26 Aug 2012 10:29:37 +0000 (03:29 -0700)]
Spelling fixes.

* Makefile.in (.PHONY): versioclean -> versionclean.

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 26 Aug 2012 10:19:02 +0000 (06:19 -0400)]
Auto-commit of generated files.

11 years agoRemove unused external symbols.
Paul Eggert [Sun, 26 Aug 2012 10:04:27 +0000 (03:04 -0700)]
Remove unused external symbols.

* data.c (Qcons, Qfloat, Qmisc, Qstring, Qvector):
* window.c (Qwindow_valid_p, decode_valid_window):
Now static, not extern.
* data.c (Qinterval): Remove; unused.
(syms_of_data): Do not define 'interval'.
* lisp.h (Qinteger, Qstring, Qmisc, Qvector, Qfloat, Qcons):
* window.h (decode_valid_window):
Remove decls.

11 years ago* fns.c (Fstring_to_unibyte): Adjust to str_to_unibyte change.
Paul Eggert [Sun, 26 Aug 2012 09:26:45 +0000 (02:26 -0700)]
* fns.c (Fstring_to_unibyte): Adjust to str_to_unibyte change.

11 years agoClean up gdb-mi's usage of display-buffer.
Chong Yidong [Sun, 26 Aug 2012 09:16:48 +0000 (17:16 +0800)]
Clean up gdb-mi's usage of display-buffer.

* progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action): New
variable, replacing gdb-frame-parameters.
(gdb-frame-io-buffer, gdb-frame-breakpoints-buffer)
(gdb-frame-threads-buffer, gdb-frame-memory-buffer)
(gdb-frame-disassembly-buffer, gdb-frame-stack-buffer)
(gdb-frame-locals-buffer, gdb-frame-registers-buffer): Use it.
(def-gdb-frame-for-buffer): Macro deleted.  It is easier to define
the functions directly with gdb-display-buffer-other-frame-action.
(gdb-display-breakpoints-buffer, gdb-display-threads-buffer)
(gdb-display-memory-buffer, gdb-display-disassembly-buffer)
(gdb-display-stack-buffer, gdb-display-locals-buffer)
(gdb-display-registers-buffer): Define directly.
(def-gdb-display-buffer): Macro deleted.
(gdb-display-buffer): Remove second and third args, callers don't
use them.  Defer to the default display-buffer behavior, apart
from making windows dedicated.
(gdb-setup-windows): Don't call display-buffer unnecessarily.

* window.el (display-buffer-pop-up-frame): Handle a
pop-up-frame-parameters alist entry.
(display-buffer): Document it.

* progmodes/gud.el (gud-display-line): Just use display-buffer.

11 years ago* character.c, charset.c, chartab.c: Use bool for booleans.
Paul Eggert [Sun, 26 Aug 2012 08:41:36 +0000 (01:41 -0700)]
* character.c, charset.c, chartab.c: Use bool for booleans.

* character.c (lisp_string_width, string_count_byte8)
(string_escape_byte8):
* charset.c (charset_map_loaded, load_charset_map, read_hex):
(load_charset_map_from_file, map_charset_chars)
(Fdefine_charset_internal, define_charset_internal)
(Fdeclare_equiv_charset, find_charsets_in_text)
(Ffind_charset_region, char_charset, Fiso_charset):
* chartab.c (sub_char_table_ref, sub_char_table_ref_and_range)
(sub_char_table_set, sub_char_table_set_range)
(char_table_set_range, optimize_sub_char_table)
(map_sub_char_table):
Use bool for boolean.
* character.c (str_to_unibyte): Omit last boolean argument; it was
always 0.  All callers changed.
* character.h, charset.h: Adjust to match previous changes.
* character.h (char_printable_p): Remove decl of nonexistent function.
* charset.h (struct charset): Members code_linear_p, iso_chars_96,
ascii_compatible_p, supplementary_p, compact_codes_p, unified_p
are all boolean, so make them single-bit bitfields.

11 years ago* lisp.h (ASET): Remove attempt to detect side effects.
Paul Eggert [Sun, 26 Aug 2012 05:21:04 +0000 (22:21 -0700)]
* lisp.h (ASET): Remove attempt to detect side effects.

It was meant to be temporary and it often doesn't work,
because when IDX has side effects the behavior of IDX==IDX
is undefined.  See Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00762.html>.

11 years ago* configure.ac (CFLAGS): Prefer -g3 to -g if -g3 works
Paul Eggert [Sun, 26 Aug 2012 04:37:40 +0000 (21:37 -0700)]
* configure.ac (CFLAGS): Prefer -g3 to -g if -g3 works

and if the user has not specified CFLAGS.  -g3 simplifies
debugging, since it makes macros visible to the debugger.

11 years agoDoc fix for last change.
Chong Yidong [Sun, 26 Aug 2012 04:08:32 +0000 (12:08 +0800)]
Doc fix for last change.

11 years agoMake ordinary isearch obey search-whitespace-regexp too.
Chong Yidong [Sun, 26 Aug 2012 03:57:55 +0000 (11:57 +0800)]
Make ordinary isearch obey search-whitespace-regexp too.

* lisp/isearch.el (search-whitespace-regexp): Make string and nil
values apply to both ordinary and regexp search.  Allow a cons
cell value to distinguish between the two.
(isearch-whitespace-regexp, isearch-search-forward)
(isearch-search-backward): New functions.
(isearch-occur, isearch-search-fun-default, isearch-search)
(isearch-lazy-highlight-new-loop): Use them.
(isearch-forward, isearch-forward-regexp): Doc fix.

11 years ago* src/lisp.h (functionp): New function (extracted from Ffunctionp).
Barry O'Reilly [Sun, 26 Aug 2012 03:30:56 +0000 (23:30 -0400)]
* src/lisp.h (functionp): New function (extracted from Ffunctionp).
(FUNCTIONP): Use it.
* src/eval.c (Ffunctionp): Use it.

11 years ago* faces.el (help-argument-name): Always inherit from italic.
Chong Yidong [Sun, 26 Aug 2012 02:57:07 +0000 (10:57 +0800)]
* faces.el (help-argument-name): Always inherit from italic.

Fixes: debbugs:12213

11 years ago* xgselect.c (xg_select): Use auto storage for the GPollFD buffer
Paul Eggert [Sat, 25 Aug 2012 20:31:04 +0000 (13:31 -0700)]
* xgselect.c (xg_select): Use auto storage for the GPollFD buffer

as that's faster and simpler than static storage.  Don't bother
with the g_main_context_query overhead if g_main_context_pending
says no events are pending.
(gfds, gfds_size): Remove these static vars.
(xgselect_initialize): Remove; no longer needed.
All uses and decls removed.

11 years agoHandle evening window heights more correctly (Bug#11880) and (Bug#12091).
Martin Rudalics [Sat, 25 Aug 2012 14:52:02 +0000 (16:52 +0200)]
Handle evening window heights more correctly (Bug#11880) and (Bug#12091).

* window.el (window--even-window-heights): Even heights when
WINDOW and the selected window form a vertical combination.
(display-buffer-use-some-window): Provide that window used gets
sized back by quit-window.  (Bug#11880) and (Bug#12091)

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

11 years agolib/makefile.w32-in ($(BLD)/execinfo.$(O)): Update dependencies.
Juanma Barranquero [Sat, 25 Aug 2012 10:04:17 +0000 (12:04 +0200)]
lib/makefile.w32-in ($(BLD)/execinfo.$(O)): Update dependencies.

11 years ago* emacs.c (fatal_error_signal_hook): Remove.
Paul Eggert [Sat, 25 Aug 2012 06:38:43 +0000 (23:38 -0700)]
* emacs.c (fatal_error_signal_hook): Remove.

All uses removed.  This leftover from old code was always 0.

11 years ago* casefiddle.c, casetab.c, category.c: Use bool for boolean.
Paul Eggert [Sat, 25 Aug 2012 06:25:00 +0000 (23:25 -0700)]
* casefiddle.c, casetab.c, category.c: Use bool for boolean.

* casefiddle.c (casify_object, casify_region):
* casetab.c (set_case_table):
* category.c, category.h (word_boundary_p):
* category.h (CHAR_HAS_CATEGORY):
Use bool for booleans, instead of int.

11 years agoMS-Windows adaptations for 2012-08-25T04:04:08Z!eggert@cs.ucla.edu and 2012-08-25T04...
Eli Zaretskii [Sat, 25 Aug 2012 05:55:32 +0000 (08:55 +0300)]
MS-Windows adaptations for 2012-08-25T04:04:08Z!eggert@cs.ucla.edu and 2012-08-25T04:27:32Z!eggert@cs.ucla.edu.

 lib/makefile.w32-in ($(BLD)/execinfo.$(O), execinfo.h): New targets.
 (GNULIBOBJS): Add $(BLD)/execinfo.$(O).
 src/makefile.w32-in ($(BLD)/alloc.$(O)): Depend on $(GNU_LIB)/execinfo.h.

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 agoUpdate release logs
Chong Yidong [Fri, 24 Aug 2012 09:53:39 +0000 (17:53 +0800)]
Update release logs

11 years agoFix bug #12242 with crashes in ralloc.c on OpenBSD.
Eli Zaretskii [Fri, 24 Aug 2012 08:26:46 +0000 (11:26 +0300)]
Fix bug #12242 with crashes in ralloc.c on OpenBSD.

 src/ralloc.c (free_bloc): Don't dereference a 'heap' structure if it
 is not one of the heaps we manage.

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 ago* lisp/files.el (safe-local-eval-forms): Fix before-save-hook entry to be
Stefan Monnier [Thu, 23 Aug 2012 12:19:27 +0000 (08:19 -0400)]
* lisp/files.el (safe-local-eval-forms): Fix before-save-hook entry to be
buffer-local; add delete-trailing-whitespace.

Fixes: debbugs:12259

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* lisp/progmodes/hideif.el (hif-compress-define-list): Fix typo. (tiny change)
Jeremy Moore [Wed, 22 Aug 2012 07:17:52 +0000 (00:17 -0700)]
* lisp/progmodes/hideif.el (hif-compress-define-list): Fix typo.  (tiny change)

Fixes: debbugs:11951

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.