1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00
Commit Graph

107351 Commits

Author SHA1 Message Date
Chong Yidong
77f1f99cb0 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.
2012-08-26 21:42:18 +08:00
Paul Eggert
8b2e00a329 Spelling fixes.
* Makefile.in (.PHONY): versioclean -> versionclean.
2012-08-26 03:29:37 -07:00
Glenn Morris
6bd1cda51b Auto-commit of generated files. 2012-08-26 06:19:02 -04:00
Paul Eggert
b52d698579 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.
2012-08-26 03:04:27 -07:00
Paul Eggert
67dbec3344 * fns.c (Fstring_to_unibyte): Adjust to str_to_unibyte change. 2012-08-26 02:26:45 -07:00
Chong Yidong
d97af5a07f 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.
2012-08-26 17:16:48 +08:00
Paul Eggert
d5172d4fbc * 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.
2012-08-26 01:41:36 -07:00
Paul Eggert
6af6451341 * 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>.
2012-08-25 22:21:04 -07:00
Paul Eggert
6e8aca60a8 * 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.
2012-08-25 21:37:40 -07:00
Chong Yidong
2db8bdfcc8 Doc fix for last change. 2012-08-26 12:08:32 +08:00
Chong Yidong
dd7ffad60f 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.
2012-08-26 11:57:55 +08:00
Barry O'Reilly
e1f2934871 * src/lisp.h (functionp): New function (extracted from Ffunctionp).
(FUNCTIONP): Use it.
* src/eval.c (Ffunctionp): Use it.
2012-08-25 23:30:56 -04:00
Chong Yidong
4c47bd1ecb * faces.el (help-argument-name): Always inherit from italic.
Fixes: debbugs:12213
2012-08-26 10:57:07 +08:00
Paul Eggert
0f46bc7515 * 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.
2012-08-25 13:31:04 -07:00
Martin Rudalics
9aba119d72 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)
2012-08-25 16:52:02 +02:00
Glenn Morris
8966cbffe8 Auto-commit of generated files. 2012-08-25 06:17:28 -04:00
Juanma Barranquero
f06029796a lib/makefile.w32-in ($(BLD)/execinfo.$(O)): Update dependencies. 2012-08-25 12:04:17 +02:00
Paul Eggert
ee4c0f690d * emacs.c (fatal_error_signal_hook): Remove.
All uses removed.  This leftover from old code was always 0.
2012-08-24 23:38:43 -07:00
Paul Eggert
17c05d741e * 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.
2012-08-24 23:25:00 -07:00
Eli Zaretskii
391ceac53a 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.
2012-08-25 08:55:32 +03:00
Paul Eggert
7d896ca9f3 * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4: New files. 2012-08-24 21:27:32 -07:00
Paul Eggert
f4a681b077 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.
2012-08-24 21:04:08 -07:00
Paul Eggert
2f221583cf * 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'.
2012-08-24 20:11:12 -07:00
Michael Albinus
aa0ecd9449 * cmdargs.texi (General Variables): Setting
$DBUS_SESSION_BUS_ADDRESS to a dummy value suppresses connections
to the D-Bus session bus.  (Bug#12112)
2012-08-24 14:55:40 +02:00
Paul Eggert
37ef52bb65 * 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.
2012-08-23 21:37:57 -07:00
Paul Eggert
ca5256ad0a 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.
2012-08-23 21:05:25 -07:00
Paul Eggert
2cc2116757 * 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.
2012-08-23 13:31:52 -07:00
Martin Rudalics
7db4ddf400 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.
2012-08-23 10:33:56 +02:00
Paul Eggert
b1bb8011db * atimer.c, atimer.h (turn_on_atimers): Use bool for boolean.
* atimer.h: Include <stdbool.h>.
2012-08-23 01:27:08 -07:00
Juri Linkov
d1c0d176e8 * lisp/info.el (Info-fontify-node): Hide the suffix of the Info file name
in the header line.

Fixes: debbugs:12187
2012-08-23 02:30:47 +03:00
Glenn Morris
141562ffa6 * lisp/calendar/cal-tex.el (cal-tex-weekly-common): Restore leading blank page. 2012-08-22 13:55:19 -04:00
Glenn Morris
1d0f71d37a Bump executable-prefix :version 2012-08-22 13:34:50 -04:00
Glenn Morris
61a48e191d ChangeLog fix 2012-08-22 13:32:51 -04:00
Bastien Guerry
add9ca2d9a misc.el (forward-to-word, backward-to-word): Use (interactive "^p").
Thanks to Le Wang for the patch.
2012-08-22 19:12:35 +02:00
Bastien Guerry
0fcd3d9fa4 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.
2012-08-22 18:58:14 +02:00
Dan Nicolaescu
ff687885ea * 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.
2012-08-22 12:05:04 -04:00
Juanma Barranquero
fe72cdc5b2 nt/config.nt: Sync with autogen/config.in. 2012-08-22 13:30:25 +02:00
Katsumi Yamaoka
3b7bf1d45b [Gnus] Enable posting-style group parameter to hold non-ASCII string values 2012-08-22 10:37:55 +00:00
Glenn Morris
bfef4149cf Auto-commit of generated files. 2012-08-22 06:17:28 -04:00
Jan Djärv
4ce7a13803 * nsterm.m (insertText:): Don't clear modifiers if code is space. 2012-08-22 11:55:35 +02:00
Martin Rudalics
caceae2529 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.
2012-08-22 11:22:08 +02:00
Martin Rudalics
842e3a93aa Rename window--size-ignore to window--size-ignore-p.
* window.el (window--size-ignore): Rename to window--size-ignore-p.
Update callers.
2012-08-22 10:42:34 +02:00
Martin Rudalics
ea95074ef6 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.
2012-08-22 10:30:54 +02:00
Paul Eggert
d733ec6d3d * 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.
2012-08-22 00:20:42 -07:00
Christopher Schmidt
80a51fa01f * help-fns.el (help-fns--key-bindings): Abbreviate non-symbol remap targets.
Fixes: debbugs:12174
2012-08-22 00:02:15 -07:00
Martin Rudalics
fbb6300b6d In dired-mark-remembered don't clobber point (Bug#11795).
* dired.el (dired-mark-remembered): Don't clobber point.
(Bug#11795)
2012-08-22 08:59:38 +02:00
Glenn Morris
5af9cb6be0 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
2012-08-21 23:55:44 -07:00
Glenn Morris
2b2c07948e 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.
2012-08-21 23:47:00 -07:00
Daiki Ueno
37219830c7 Add :safe for js indent variables.
Fixes: debbugs:12257
2012-08-22 14:35:38 +09:00
Josh Feinstein
cb7857924b 2012-08-21 Josh Feinstein <jlf@foxtail.org>
* erc-join.el (erc-autojoin-timing): Fix defcustom type.
2012-08-21 20:45:51 -07:00