1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

32273 commits

Author SHA1 Message Date
Kenichi Handa
76470ad1a0 coding.c (encode_coding_ccl): Check (charbuf < charbuf_end) after the loop to call ccl_driver at least once. 2011-12-08 14:54:20 +09:00
Kenichi Handa
745fff94a0 ftfont.c (get_adstyle_property): Fix previous change (Bug#10233). 2011-12-08 11:34:09 +09:00
Juanma Barranquero
6e44397c4a src/w32.c: Implement --no-site-lisp on Windows (bug#10208). 2011-12-08 00:14:13 +01:00
Glenn Morris
7efa6272f0 Small init_lread fix for bug#10208
* src/lread.c (init_lread): If no_site_lisp, exclude site-lisp/ in
installation and source directories as well.
2011-12-06 21:16:53 -05:00
Chong Yidong
f6fc4d8702 * src/minibuf.c (Fread_from_minibuffer): Doc fix.
Fixes: debbugs:10228
2011-12-06 16:50:46 +08:00
Glenn Morris
2bf2618007 * src/process.c (start_process_unwind): Treat any pid <= 0, except -2,
as an error, not just -1.
For example, make_process inits the pid to 0.

Fixes: debbugs:10217
2011-12-06 00:17:35 -08:00
Juanma Barranquero
a98edce9ec Fix typos. 2011-12-06 02:30:54 +01:00
Chong Yidong
3a6ad4f050 Handle X selection requests in input-pending-p.
* src/keyboard.c (process_special_events): New function.
(swallow_events, Finput_pending_p): Use it.

Fixes: debbugs:10195
2011-12-05 23:21:48 +08:00
Paul Eggert
75a3b399a3 * coding.c (encode_designation_at_bol): Don't use uninitialized
local variable (Bug#9318).
2011-12-05 01:05:10 -08:00
Paul Eggert
fa46310344 Spelling fixes. 2011-12-05 00:55:25 -08:00
Kenichi Handa
c3c9e25e5d ftfont.c (get_adstyle_property): If the font is not BDF nor PCF, return Qnil (Bug#8046, Bug#10193). 2011-12-05 16:48:29 +09:00
Kenichi Handa
2ab04b9565 merge trunk 2011-12-05 16:03:31 +09:00
Kenichi Handa
a79703f53c src/ChangeLog: Fix previous change. 2011-12-05 16:02:09 +09:00
Kenichi Handa
5eb05ea3f9 Pay attetion to the buffer relocation on encoding (Bug#9318). 2011-12-05 15:39:26 +09:00
Juanma Barranquero
7dbda6dfe8 src/lisp.h (process_quit_flag): Fix external declaration. 2011-12-05 01:15:15 +01:00
Stefan Monnier
6d5eb5b0d2 Don't macro-inline non-performance-critical code.
* src/eval.c (process_quit_flag): New function.
* src/lisp.h (QUIT): Use it.
2011-12-04 10:46:07 -05:00
Jan Djärv
a0c3fad023 * nsfns.m (get_geometry_from_preferences): New function.
(Fx_create_frame): Call get_geometry_from_preferences.

Fixes: debbugs:10103
2011-12-04 14:25:16 +01:00
Andreas Schwab
6c07aac283 Don't call Lisp in signal handler
* emacs.c (Qkill_emacs): Define.
(syms_of_emacs): Initialize it.
* keyboard.c (interrupt_signal): Don't call Fkill_emacs here, set
Qquit_flag to `kill-emacs' instead.
(quit_throw_to_read_char): Add parameter `from_signal'.  All
callers changed.  Call Fkill_emacs if requested and safe.
* lisp.h (QUIT): Call Fkill_emacs if requested.
2011-12-04 10:26:30 +01:00
Paul Eggert
c80e3b4aed Spelling fixes. 2011-12-04 00:02:42 -08:00
Jan Djärv
c052ead41f * widget.c (update_wm_hints): Return if wmshell is null.
(widget_update_wm_size_hints): New function.

* widget.h (widget_update_wm_size_hints): Declare.

* xterm.c (x_wm_set_size_hint): If USE_X_TOOLKIT, call
widget_update_wm_size_hints.

Fixes: debbugs:10104
2011-12-03 20:15:20 +01:00
Eli Zaretskii
e9a494263c Fix bug #10192 with assertion violation when scrolling.
src/xdisp.c (redisplay_window): Don't let `margin' become negative.
 This could happen when scroll-margin is zero and scroll-*-aggressively
 is a small float number.
2011-12-03 11:55:27 +02:00
Eli Zaretskii
9e49252b2d Fix parts 1 & 2 of bug #10183 with RTL headings in Org mode.
src/xdisp.c (handle_invisible_prop): If the invisible text ends just
 before a newline, prepare the bidi iterator for consuming the
 newline, and keep the current paragraph direction.
2011-12-03 09:59:23 +02:00
Juri Linkov
02b16839f5 Change wordify' to word-search-regexp'.
* lisp/isearch.el (isearch-occur): Use `word-search-regexp' for
`isearch-word'.
(isearch-search-and-update): Add condition for `isearch-word' and
call `word-search-regexp'. 

* src/search.c (Fword_search_regexp): New Lisp function created from
`wordify'.  Change type of arg `lax' from `int' to `Lisp_Object'.
(Fword_search_backward, Fword_search_forward)
(Fword_search_backward_lax, Fword_search_forward_lax):
Use `Fword_search_regexp' instead of `wordify'.  Doc fix.
(syms_of_search): Define `Sword_search_regexp'.

Fixes: debbugs:10145
2011-12-02 12:19:49 +02:00
Stefan Monnier
0068070eb0 * src/fileio.c (Finsert_file_contents): Move after-change-function call
to before the "handled:" label, since all "goto handled" appear in
cases where the *-change-functions have already been properly called.

Fixes: debbugs:10117
2011-12-01 15:19:38 -05:00
Andreas Schwab
3360a3fcb0 Fixes: debbugs:10169
* src/keyboard.c (interrupt_signal): Don't call kill-emacs when
waiting for input.
2011-12-01 19:27:52 +01:00
Eli Zaretskii
73d6c093dc REALLY fix bug #10164 with crashes when linum-mode is turned on.
src/dispnew.c (adjust_glyph_matrix): Remove the assertion that
 verifies glyph row's hash code--we have just reallocated the
 glyphs, so their contents can be complete garbage.
2011-11-30 18:50:38 +02:00
Juanma Barranquero
5c32d3f2f9 Fix typos. 2011-11-30 17:33:05 +01:00
Juanma Barranquero
febe6beadc src/dispnew.c (adjust_glyph_matrix) [XASSERTS]: Add missing check. 2011-11-30 13:58:42 +01:00
Eli Zaretskii
801a431304 Fix bug #10164 with assertion violations in linum-mode.
src/dispnew.c (adjust_glyph_matrix) [XASSERTS]: Ensure ROW's
 attributes are tested _before_ calling verify_row_hash, to protect
 against GCC re-ordering of the tests.
2011-11-30 07:25:09 -05:00
Jan Djärv
2b56b87e02 * xterm.c (handle_one_xevent): Only set async_visible and friends
if net_wm_state_hidden_seen is non-zero
(get_current_wm_state):  Set net_wm_state_hidden_seen to 1 if
_NET_WM_STATE_HIDDEN is in NET_WM_STATE.

* xterm.h (struct x_output): net_wm_state_hidden_seen is new.

Fixes: debbugs:10002
2011-11-29 19:08:53 +01:00
Paul Eggert
dbf312256d Remove GCPRO-related macros that exist only to avoid shadowing locals.
* lisp.h (GCPRO1_VAR, GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR)
(GCPRO6_VAR, UNGCPRO_VAR): Remove.  See
<http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
All uses changed to use GCPRO1 etc.
(GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6, UNGCPRO):
Revert to old implementation (i.e., before 2011-03-11).
2011-11-28 00:20:58 -08:00
YAMAMOTO Mitsuharu
1305621bc2 Truncate scroll runs that copy to where we copied to.
* dispnew.c (scrolling_window): Truncate overlaps in copy destination
of scroll runs so as to avoid assigning disabled bogus rows and
unnecessary graphics copy operations.
2011-11-28 10:07:01 +09:00
Eli Zaretskii
8c9afb4694 Fix MS-Windows build with MSVC compiler.
Parts of the changes by Fabrice Popineau  <fabrice.popineau@supelec.fr>.

 lib-src/makefile.w32-in (LOCAL_FLAGS): Add $(EMACS_EXTRA_C_FLAGS).
 lib-src/emacsclient.c (main) <environ>: Remove declaration, already
 pulled in by unistd.h on Posix hosts and stdlib.h on MS-Windows.
 nt/inc/stdint.h (uint32_t, uint64_t) [_WIN64]: New typedefs.
 (UINT64_MAX) [_WIN64]: Fix definition.
 (uintmax_t, intmax_t): Fix definitions.
 nt/inc/inttypes.h (strtoumax, strtoimax) [!__MINGW32__]: Provide
 correct definitions.
 nt/config.nt (HAVE_DECL_STRTOLL): Define.
 (va_copy) [_WIN64]: Provide a better definition.
 src/s/ms-w32.h (utimbuf) [_MSC_VER]: Don't define.
 (snprintf) [_MSC_VER]: Redirect to _snprintf.
 (strtoll) [_MSC_VER]: Redirect to _strtoi64.
 (malloc, free, realloc, calloc): Redirect to e_* only when
 compiling Emacs.
 src/lisp.h (GCTYPEBITS): Move before first use.
 (ALIGN_GCTYPEBITS) [_MSC_VER]: Define.
 (DECL_ALIGN) [_MSC_VER]: Use it, as MSVC doesn't like bit ops in
 this macro definition.
 (tzname): Redirect to _tzname for all values of _MSC_VER.

Fixes: debbugs:9960
2011-11-27 20:52:53 +02:00
Jan Djärv
54e9e3bf84 Work around an Ubuntu 11.10 bug where Emacs loops forever when started.
* configure.in: Check for gtk_window_set_has_resize_grip.

* src/gtkutil.c (xg_create_frame_widgets): Call
gtk_window_set_has_resize_grip (FALSE) if that function is
present with Gtk+ 2.0.
2011-11-27 19:33:17 +01:00
Paul Eggert
e9a452d9cd Spelling fixes (mostly "inactive" vs "deactivate"). 2011-11-27 10:17:40 -08:00
Paul Eggert
e47695319f Spelling fixes. 2011-11-26 20:43:11 -08:00
Paul Eggert
83aca1cb69 * fileio.c (Finsert_file_contents): Undo previous change.
See <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
2011-11-26 13:40:41 -08:00
Eli Zaretskii
394305db34 src/dispnew.c (update_window): Fix outdated commentary. 2011-11-26 15:11:03 +02:00
Paul Eggert
b0b199744d Spelling fixes. 2011-11-26 00:26:37 -08:00
Paul Eggert
5b76caa476 Rename locals to avoid shadowing.
* fileio.c (Finsert_file_contents):
Rename inner 'gcpro1' to 'inner_gcpro1' to avoid shadowing.
* process.c (wait_reading_process_output):
Rename inner 'proc' to 'p' to avoid shadowing.
Indent for consistency with usual Emacs style.
2011-11-25 23:42:44 -08:00
Eli Zaretskii
91b4a71898 Fix bug #10119 with C-e and whitespace-mode.
src/xdisp.c (start_display): Don't move to the next line if the display
 should start at a newline that is part of a display vector or an overlay
 string.
2011-11-25 21:52:46 +02:00
Eli Zaretskii
5c730f48c5 Fix a thinko in 2011-11-25T11:32:14Z!eliz@gnu.org. 2011-11-25 17:22:30 +02:00
Juanma Barranquero
e9fce1acd8 Fix typos. 2011-11-25 14:26:30 +01:00
Eli Zaretskii
8c535114e2 Fix bug #10105 with Isearch triggered scrolling under scroll-conservatively.
src/xdisp.c (redisplay_window): If cursor row is not fully visible
 after recentering, and scroll-conservatively is set to a large
 number, scroll window by a few more lines to make the cursor fully
 visible and out of scroll-margin.
2011-11-25 13:32:14 +02:00
Paul Eggert
e4920bc99d Spelling fixes. 2011-11-24 23:14:48 -08:00
Juri Linkov
fa4fdb5ca5 * src/image.c (imagemagick_load_image): Move `MagickSetResolution' down
after the `MagickPingImage' call.

Fixes: debbugs:10112
2011-11-24 21:02:39 +02:00
Juanma Barranquero
20db1522fe Fix typos. 2011-11-24 02:58:14 +01:00
Chong Yidong
90ec88df9f * src/window.c (Fcoordinates_in_window_p): Accept only live windows. 2011-11-24 00:09:08 +08:00
Martin Rudalics
56e2e794b0 In Fkill_buffer do replace_buffer_in_windows before Fset_buffer. (Bug#10114)
* buffer.c (Fkill_buffer): Run replace_buffer_in_windows before
making another buffer current.  (Bug#10114)
2011-11-23 10:57:27 +01:00
Glenn Morris
b6e64c4136 * src/font.c (font_find_for_lface) [HAVE_NS]: Ignore case.
Fixes: debbugs:2526
2011-11-22 23:09:27 -08:00