aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2013-01-13 00:03:43 +0100
committerJoakim Verona2013-01-13 00:03:43 +0100
commitec43cd5d7289dd1a994dc3517fccce1611966f89 (patch)
treea52fa958b4c50e92932bcf5381f749a1846a908f /src
parentc655adbbab4baf73b652c86dcc53a2fc049ea7a5 (diff)
parent71c661e4e6ab3857804113bc41fc2310343c9169 (diff)
downloademacs-ec43cd5d7289dd1a994dc3517fccce1611966f89.tar.gz
emacs-ec43cd5d7289dd1a994dc3517fccce1611966f89.zip
auto upstream
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog23
-rw-r--r--src/alloc.c5
-rw-r--r--src/editfns.c1
-rw-r--r--src/indent.c4
-rw-r--r--src/insdel.c4
-rw-r--r--src/keyboard.c6
-rw-r--r--src/lisp.h6
-rw-r--r--src/window.c5
8 files changed, 39 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 13a1f1a3858..13b53e922ed 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,26 @@
12013-01-12 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * indent.c (Fvertical_motion): Remove now-incorrect GCPROs
4 for old_charpos and old_bytepos.
5
62013-01-12 Paul Eggert <eggert@cs.ucla.edu>
7
8 Fix bug with set-time-zone-rule and LOCALTIME_CACHE (Bug#13415).
9 * editfns.c (set_time_zone_rule) [LOCALTIME_CACHE]:
10 Clear tzvalbuf_in_environ if this workaround is in effect.
11 Problem and fix reported by Kazuhiro Ito.
12
132013-01-11 Aaron S. Hawley <Aaron.Hawley@vtinfo.com>
14
15 * insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
16 ambiguous doc string cross-reference(s).
17
18 * keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous
19 doc string cross-reference(s).
20
21 * window.c (Fwindow_point, syms_of_window): Fix ambiguous doc
22 string cross-reference(s).
23
12013-01-11 Dmitry Antipov <dmantipov@yandex.ru> 242013-01-11 Dmitry Antipov <dmantipov@yandex.ru>
2 25
3 Avoid unnecessary byte position calculation for the gap movement. 26 Avoid unnecessary byte position calculation for the gap movement.
diff --git a/src/alloc.c b/src/alloc.c
index 8dc3f11e80a..b147aa20723 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4446,11 +4446,6 @@ mark_memory (void *start, void *end)
4446 } 4446 }
4447} 4447}
4448 4448
4449/* setjmp will work with GCC unless NON_SAVING_SETJMP is defined in
4450 the GCC system configuration. In gcc 3.2, the only systems for
4451 which this is so are i386-sco5 non-ELF, i386-sysv3 (maybe included
4452 by others?) and ns32k-pc532-min. */
4453
4454#if !defined GC_SAVE_REGISTERS_ON_STACK && !defined GC_SETJMP_WORKS 4449#if !defined GC_SAVE_REGISTERS_ON_STACK && !defined GC_SETJMP_WORKS
4455 4450
4456static bool setjmp_tested_p; 4451static bool setjmp_tested_p;
diff --git a/src/editfns.c b/src/editfns.c
index 64269bab8df..bf19acb42a8 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2188,6 +2188,7 @@ set_time_zone_rule (const char *tzstring)
2188 xputenv (set_time_zone_rule_tz[1]); 2188 xputenv (set_time_zone_rule_tz[1]);
2189 } 2189 }
2190 tzset (); 2190 tzset ();
2191 tzvalbuf_in_environ = 0;
2191#endif 2192#endif
2192 2193
2193 if (!tzstring) 2194 if (!tzstring)
diff --git a/src/indent.c b/src/indent.c
index 4a30c00dd27..45b6afbd395 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1970,7 +1970,7 @@ whether or not it is currently displayed in some window. */)
1970 struct window *w; 1970 struct window *w;
1971 Lisp_Object old_buffer; 1971 Lisp_Object old_buffer;
1972 EMACS_INT old_charpos IF_LINT (= 0), old_bytepos IF_LINT (= 0); 1972 EMACS_INT old_charpos IF_LINT (= 0), old_bytepos IF_LINT (= 0);
1973 struct gcpro gcpro1, gcpro2, gcpro3; 1973 struct gcpro gcpro1;
1974 Lisp_Object lcols = Qnil; 1974 Lisp_Object lcols = Qnil;
1975 double cols IF_LINT (= 0); 1975 double cols IF_LINT (= 0);
1976 void *itdata = NULL; 1976 void *itdata = NULL;
@@ -1987,7 +1987,7 @@ whether or not it is currently displayed in some window. */)
1987 w = decode_live_window (window); 1987 w = decode_live_window (window);
1988 1988
1989 old_buffer = Qnil; 1989 old_buffer = Qnil;
1990 GCPRO3 (old_buffer, old_charpos, old_bytepos); 1990 GCPRO1 (old_buffer);
1991 if (XBUFFER (w->buffer) != current_buffer) 1991 if (XBUFFER (w->buffer) != current_buffer)
1992 { 1992 {
1993 /* Set the window's buffer temporarily to the current buffer. */ 1993 /* Set the window's buffer temporarily to the current buffer. */
diff --git a/src/insdel.c b/src/insdel.c
index c2a3cd42821..303247816ca 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -2084,7 +2084,7 @@ Fcombine_after_change_execute_1 (Lisp_Object val)
2084 2084
2085DEFUN ("combine-after-change-execute", Fcombine_after_change_execute, 2085DEFUN ("combine-after-change-execute", Fcombine_after_change_execute,
2086 Scombine_after_change_execute, 0, 0, 0, 2086 Scombine_after_change_execute, 0, 0, 0,
2087 doc: /* This function is for use internally in `combine-after-change-calls'. */) 2087 doc: /* This function is for use internally in the function `combine-after-change-calls'. */)
2088 (void) 2088 (void)
2089{ 2089{
2090 ptrdiff_t count = SPECPDL_INDEX (); 2090 ptrdiff_t count = SPECPDL_INDEX ();
@@ -2176,7 +2176,7 @@ syms_of_insdel (void)
2176 combine_after_change_buffer = Qnil; 2176 combine_after_change_buffer = Qnil;
2177 2177
2178 DEFVAR_LISP ("combine-after-change-calls", Vcombine_after_change_calls, 2178 DEFVAR_LISP ("combine-after-change-calls", Vcombine_after_change_calls,
2179 doc: /* Used internally by the `combine-after-change-calls' macro. */); 2179 doc: /* Used internally by the function `combine-after-change-calls' macro. */);
2180 Vcombine_after_change_calls = Qnil; 2180 Vcombine_after_change_calls = Qnil;
2181 2181
2182 DEFVAR_BOOL ("inhibit-modification-hooks", inhibit_modification_hooks, 2182 DEFVAR_BOOL ("inhibit-modification-hooks", inhibit_modification_hooks,
diff --git a/src/keyboard.c b/src/keyboard.c
index b74084f63e6..baa69a089b3 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10189,7 +10189,7 @@ DEFUN ("command-execute", Fcommand_execute, Scommand_execute, 1, 4, 0,
10189 doc: /* Execute CMD as an editor command. 10189 doc: /* Execute CMD as an editor command.
10190CMD must be a symbol that satisfies the `commandp' predicate. 10190CMD must be a symbol that satisfies the `commandp' predicate.
10191Optional second arg RECORD-FLAG non-nil 10191Optional second arg RECORD-FLAG non-nil
10192means unconditionally put this command in `command-history'. 10192means unconditionally put this command in the variable `command-history'.
10193Otherwise, that is done only if an arg is read using the minibuffer. 10193Otherwise, that is done only if an arg is read using the minibuffer.
10194The argument KEYS specifies the value to use instead of (this-command-keys) 10194The argument KEYS specifies the value to use instead of (this-command-keys)
10195when reading the arguments; if it is nil, (this-command-keys) is used. 10195when reading the arguments; if it is nil, (this-command-keys) is used.
@@ -12078,8 +12078,8 @@ This takes effect only when Transient Mark mode is enabled. */);
12078 Vsaved_region_selection, 12078 Vsaved_region_selection,
12079 doc: /* Contents of active region prior to buffer modification. 12079 doc: /* Contents of active region prior to buffer modification.
12080If `select-active-regions' is non-nil, Emacs sets this to the 12080If `select-active-regions' is non-nil, Emacs sets this to the
12081text in the region before modifying the buffer. The next 12081text in the region before modifying the buffer. The next call to
12082`deactivate-mark' call uses this to set the window selection. */); 12082the function `deactivate-mark' uses this to set the window selection. */);
12083 Vsaved_region_selection = Qnil; 12083 Vsaved_region_selection = Qnil;
12084 12084
12085 DEFVAR_LISP ("selection-inhibit-update-commands", 12085 DEFVAR_LISP ("selection-inhibit-update-commands",
diff --git a/src/lisp.h b/src/lisp.h
index 16f9c89e3cd..d4d34ac19ba 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2222,8 +2222,12 @@ struct gcpro
2222 2 Mark the stack, and check that everything GCPRO'd is 2222 2 Mark the stack, and check that everything GCPRO'd is
2223 marked. 2223 marked.
2224 3 Mark using GCPRO's, mark stack last, and count how many 2224 3 Mark using GCPRO's, mark stack last, and count how many
2225 dead objects are kept alive. */ 2225 dead objects are kept alive.
2226 2226
2227 Formerly, method 0 was used. Currently, method 1 is used unless
2228 otherwise specified by hand when building, e.g.,
2229 "make CPPFLAGS='-DGC_MARK_STACK=GC_USE_GCPROS_AS_BEFORE'".
2230 Methods 2 and 3 are present mainly to debug the transition from 0 to 1. */
2227 2231
2228#define GC_USE_GCPROS_AS_BEFORE 0 2232#define GC_USE_GCPROS_AS_BEFORE 0
2229#define GC_MAKE_GCPROS_NOOPS 1 2233#define GC_MAKE_GCPROS_NOOPS 1
diff --git a/src/window.c b/src/window.c
index eafd6ef9e40..d38f4c10671 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1437,7 +1437,7 @@ window were selected.
1437 1437
1438Note that, when WINDOW is selected, the value returned is the same as 1438Note that, when WINDOW is selected, the value returned is the same as
1439that returned by `point' for WINDOW's buffer. It would be more strictly 1439that returned by `point' for WINDOW's buffer. It would be more strictly
1440correct to return the `top-level' value of `point', outside of any 1440correct to return the top-level value of `point', outside of any
1441`save-excursion' forms. But that is hard to define. */) 1441`save-excursion' forms. But that is hard to define. */)
1442 (Lisp_Object window) 1442 (Lisp_Object window)
1443{ 1443{
@@ -6797,7 +6797,8 @@ same combination.
6797 6797
6798Other values are reserved for future use. 6798Other values are reserved for future use.
6799 6799
6800This variable takes no effect if `window-combination-limit' is non-nil. */); 6800This variable takes no effect if the variable `window-combination-limit' is
6801non-nil. */);
6801 Vwindow_combination_resize = Qnil; 6802 Vwindow_combination_resize = Qnil;
6802 6803
6803 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit, 6804 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit,