aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-12-14 02:51:30 -0800
committerPaul Eggert2011-12-14 02:51:30 -0800
commit59815c02506eb39b61e672528ed03885749ba529 (patch)
tree08770ed78fae3dc1a0996250d61e127ebfd135fd /src
parent8f50130c565eaf0ad7c49e4ad044c3291ecdfa71 (diff)
parent898169a2d88c3538cdfd41feb0b16267165065bd (diff)
downloademacs-59815c02506eb39b61e672528ed03885749ba529.tar.gz
emacs-59815c02506eb39b61e672528ed03885749ba529.zip
Merge from trunk.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog16
-rw-r--r--src/ChangeLog.106
-rw-r--r--src/ChangeLog.26
-rw-r--r--src/alloc.c2
-rw-r--r--src/coding.c11
-rw-r--r--src/editfns.c2
-rw-r--r--src/emacs.c2
-rw-r--r--src/fontset.c2
-rw-r--r--src/ftfont.c2
-rw-r--r--src/lastfile.c3
-rw-r--r--src/lread.c2
-rw-r--r--src/nsfont.m2
-rw-r--r--src/region-cache.c4
-rw-r--r--src/region-cache.h4
-rw-r--r--src/termhooks.h4
-rw-r--r--src/window.c17
-rw-r--r--src/xfns.c8
17 files changed, 60 insertions, 33 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f525535e4d8..e2c579459a2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,4 +1,4 @@
12011-12-11 Paul Eggert <eggert@cs.ucla.edu> 12011-12-14 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Fix integer width and related bugs (Bug#9874). 3 Fix integer width and related bugs (Bug#9874).
4 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): 4 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp):
@@ -788,6 +788,20 @@
788 rather than rolling our own approximation. 788 rather than rolling our own approximation.
789 (SCROLL_BAR_VEC_SIZE): Remove; not used. 789 (SCROLL_BAR_VEC_SIZE): Remove; not used.
790 790
7912011-12-13 Martin Rudalics <rudalics@gmx.at>
792
793 * window.c (Vwindow_combination_resize)
794 (Vwindow_combination_limit): Use t instead of non-nil in
795 doc-strings.
796 (Vrecenter_redisplay): Add first sentence of doc-string on
797 separate line.
798 (Frecenter): Fix doc-string typo.
799
8002011-12-11 Kenichi Handa <handa@m17n.org>
801
802 * coding.c (Funencodable_char_position): Pay attention to the
803 buffer text relocation (Bug#9389).
804
7912011-12-10 Jan Djärv <jan.h.d@swipnet.se> 8052011-12-10 Jan Djärv <jan.h.d@swipnet.se>
792 806
793 * xterm.c (x_term_init): Move call to gdk_window_add_filter before 807 * xterm.c (x_term_init): Move call to gdk_window_add_filter before
diff --git a/src/ChangeLog.10 b/src/ChangeLog.10
index e759183724e..53f7a016654 100644
--- a/src/ChangeLog.10
+++ b/src/ChangeLog.10
@@ -15816,14 +15816,14 @@
15816 Add prototypes. 15816 Add prototypes.
15817 15817
15818 * macterm.c (mac_draw_bitmap): Add overlay_p arg. 15818 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
15819 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps; 15819 (x_draw_fringe_bitmap): Handle overlaid fringe bitmaps;
15820 thanks to YAMAMOTO Mitsuharu for advice on how to do this. 15820 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
15821 Use cursor color for displaying cursor in fringe. 15821 Use cursor color for displaying cursor in fringe.
15822 (x_redisplay_interface): Add null handlers for 15822 (x_redisplay_interface): Add null handlers for
15823 define_fringe_bitmap and destroy_fringe_bitmap functions. 15823 define_fringe_bitmap and destroy_fringe_bitmap functions.
15824 15824
15825 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from 15825 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
15826 xterm.c to handle overlayed fringe bitmaps and to use cursor color 15826 xterm.c to handle overlaid fringe bitmaps and to use cursor color
15827 for displaying cursor in fringe. 15827 for displaying cursor in fringe.
15828 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32 15828 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
15829 specific functions to define and destroy fringe bitmaps in fringe_bmp. 15829 specific functions to define and destroy fringe bitmaps in fringe_bmp.
@@ -15849,7 +15849,7 @@
15849 (display_line): Handle cursor in fringe at eob. 15849 (display_line): Handle cursor in fringe at eob.
15850 (display_line): Set row user fringe bitmaps from iterator. 15850 (display_line): Set row user fringe bitmaps from iterator.
15851 15851
15852 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps. 15852 * xterm.c (x_draw_fringe_bitmap): Handle overlaid fringe bitmaps.
15853 Use cursor color for displaying cursor in fringe. 15853 Use cursor color for displaying cursor in fringe.
15854 (x_redisplay_interface): Add null handlers for 15854 (x_redisplay_interface): Add null handlers for
15855 define_fringe_bitmap and destroy_fringe_bitmap functions. 15855 define_fringe_bitmap and destroy_fringe_bitmap functions.
diff --git a/src/ChangeLog.2 b/src/ChangeLog.2
index ba61c337efc..d3be0064610 100644
--- a/src/ChangeLog.2
+++ b/src/ChangeLog.2
@@ -2254,7 +2254,7 @@
2254 Initialize save_color. 2254 Initialize save_color.
2255 2255
2256 * fileio.c, search.c, sysdep.c, filelock.c, editfns.c, process.c: 2256 * fileio.c, search.c, sysdep.c, filelock.c, editfns.c, process.c:
2257 Delete/replace unused/conditionalised variables 2257 Delete/replace unused/conditionalized variables
2258 2258
22591987-01-15 Richard M. Stallman (rms@prep) 22591987-01-15 Richard M. Stallman (rms@prep)
2260 2260
@@ -2632,7 +2632,7 @@
2632 * fns.c: Fding requires an arg; pass Qnil. 2632 * fns.c: Fding requires an arg; pass Qnil.
2633 2633
2634 * m-alliant.h: define TEXT_START as 0x1000. 2634 * m-alliant.h: define TEXT_START as 0x1000.
2635 Don't define LIBS_STANDARD; the default (sharable) library 2635 Don't define LIBS_STANDARD; the default (shareable) library
2636 is said to work now. 2636 is said to work now.
2637 2637
2638 * alloc.c (mark_object): Now pass address of slot being marked. 2638 * alloc.c (mark_object): Now pass address of slot being marked.
@@ -4220,7 +4220,7 @@
4220 Increase PURESIZE again (sigh) 4220 Increase PURESIZE again (sigh)
4221 4221
4222 * unexec.c (write_segment): 4222 * unexec.c (write_segment):
4223 Kludgey coercions ("(int)") to get this line to compile: 4223 Kludgy coercions ("(int)") to get this line to compile:
4224 nwrite = (((int) ptr + 128) & ~127) - (int) ptr; 4224 nwrite = (((int) ptr + 128) & ~127) - (int) ptr;
4225 Also changed incorrect ~128 to ~127. 4225 Also changed incorrect ~128 to ~127.
4226 4226
diff --git a/src/alloc.c b/src/alloc.c
index 84a84df3597..05b681cdafb 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6400,7 +6400,7 @@ If this portion is smaller than `gc-cons-threshold', this is ignored. */);
6400 Vgc_cons_percentage = make_float (0.1); 6400 Vgc_cons_percentage = make_float (0.1);
6401 6401
6402 DEFVAR_INT ("pure-bytes-used", pure_bytes_used, 6402 DEFVAR_INT ("pure-bytes-used", pure_bytes_used,
6403 doc: /* Number of bytes of sharable Lisp data allocated so far. */); 6403 doc: /* Number of bytes of shareable Lisp data allocated so far. */);
6404 6404
6405 DEFVAR_INT ("cons-cells-consed", cons_cells_consed, 6405 DEFVAR_INT ("cons-cells-consed", cons_cells_consed,
6406 doc: /* Number of cons cells that have been consed so far. */); 6406 doc: /* Number of cons cells that have been consed so far. */);
diff --git a/src/coding.c b/src/coding.c
index 74cf232cfb2..a2ea9b302cf 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -8755,6 +8755,7 @@ to the string. */)
8755 } 8755 }
8756 8756
8757 positions = Qnil; 8757 positions = Qnil;
8758 charset_map_loaded = 0;
8758 while (1) 8759 while (1)
8759 { 8760 {
8760 int c; 8761 int c;
@@ -8782,6 +8783,16 @@ to the string. */)
8782 } 8783 }
8783 8784
8784 from++; 8785 from++;
8786 if (charset_map_loaded && NILP (string))
8787 {
8788 p = CHAR_POS_ADDR (from);
8789 pend = CHAR_POS_ADDR (to);
8790 if (from < GPT && to >= GPT)
8791 stop = GPT_ADDR;
8792 else
8793 stop = pend;
8794 charset_map_loaded = 0;
8795 }
8785 } 8796 }
8786 8797
8787 return (NILP (count) ? Fcar (positions) : Fnreverse (positions)); 8798 return (NILP (count) ? Fcar (positions) : Fnreverse (positions));
diff --git a/src/editfns.c b/src/editfns.c
index 16e552afe1d..2a096db727d 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3859,7 +3859,7 @@ usage: (format STRING &rest OBJECTS) */)
3859 enum 3859 enum
3860 { 3860 {
3861 /* Maximum precision for a %f conversion such that the 3861 /* Maximum precision for a %f conversion such that the
3862 trailing output digit might be nonzero. Any precisions 3862 trailing output digit might be nonzero. Any precision
3863 larger than this will not yield useful information. */ 3863 larger than this will not yield useful information. */
3864 USEFUL_PRECISION_MAX = 3864 USEFUL_PRECISION_MAX =
3865 ((1 - DBL_MIN_EXP) 3865 ((1 - DBL_MIN_EXP)
diff --git a/src/emacs.c b/src/emacs.c
index 4c8d3298495..6c96f7eb5e3 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -951,7 +951,7 @@ main (int argc, char **argv)
951 } 951 }
952 952
953 /* Command line option --no-windows is deprecated and thus not mentioned 953 /* Command line option --no-windows is deprecated and thus not mentioned
954 in the manual and usage informations. */ 954 in the manual and usage information. */
955 if (argmatch (argv, argc, "-nw", "--no-window-system", 6, NULL, &skip_args) 955 if (argmatch (argv, argc, "-nw", "--no-window-system", 6, NULL, &skip_args)
956 || argmatch (argv, argc, "-nw", "--no-windows", 6, NULL, &skip_args)) 956 || argmatch (argv, argc, "-nw", "--no-windows", 6, NULL, &skip_args))
957 inhibit_window_system = 1; 957 inhibit_window_system = 1;
diff --git a/src/fontset.c b/src/fontset.c
index b5b36822a2d..7d2cbcafa70 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -645,7 +645,7 @@ fontset_find_font (Lisp_Object fontset, int c, struct face *face, int id, int fa
645 if (font_has_char (f, font_object, c)) 645 if (font_has_char (f, font_object, c))
646 goto found; 646 goto found;
647 647
648 /* Find a font already opened, maching with the current spec, 648 /* Find a font already opened, matching with the current spec,
649 and supporting C. */ 649 and supporting C. */
650 font_def = RFONT_DEF_FONT_DEF (rfont_def); 650 font_def = RFONT_DEF_FONT_DEF (rfont_def);
651 for (; found_index + 1 < ASIZE (vec); found_index++) 651 for (; found_index + 1 < ASIZE (vec); found_index++)
diff --git a/src/ftfont.c b/src/ftfont.c
index 2f0643a31e0..31f3372af5c 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -960,7 +960,7 @@ ftfont_list (Lisp_Object frame, Lisp_Object spec)
960 /* Need fix because this finds any fonts. */ 960 /* Need fix because this finds any fonts. */
961 if (fontset->nfont == 0 && ! NILP (family)) 961 if (fontset->nfont == 0 && ! NILP (family))
962 { 962 {
963 /* Try maching with configuration. For instance, the 963 /* Try matching with configuration. For instance, the
964 configuration may specify "Nimbus Mono L" as an alias of 964 configuration may specify "Nimbus Mono L" as an alias of
965 "Courier". */ 965 "Courier". */
966 FcPattern *pat = FcPatternBuild (0, FC_FAMILY, FcTypeString, 966 FcPattern *pat = FcPatternBuild (0, FC_FAMILY, FcTypeString,
diff --git a/src/lastfile.c b/src/lastfile.c
index d348e4ebb07..ab07e748930 100644
--- a/src/lastfile.c
+++ b/src/lastfile.c
@@ -23,7 +23,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
23 23
24 The files of Emacs are written so as to have no initialized 24 The files of Emacs are written so as to have no initialized
25 data that can ever need to be altered except at the first startup. 25 data that can ever need to be altered except at the first startup.
26 This is so that those words can be dumped as sharable text. 26 This is so that those words can be dumped as shareable text.
27 27
28 It is not possible to exercise such control over library files. 28 It is not possible to exercise such control over library files.
29 So it is necessary to refrain from making their data areas shared. 29 So it is necessary to refrain from making their data areas shared.
@@ -47,4 +47,3 @@ char my_endbss[1];
47 of the bss area used by Emacs. */ 47 of the bss area used by Emacs. */
48static char _my_endbss[1]; 48static char _my_endbss[1];
49char * my_endbss_static = _my_endbss; 49char * my_endbss_static = _my_endbss;
50
diff --git a/src/lread.c b/src/lread.c
index 90bc8c11b96..d38fb515bff 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -2828,7 +2828,7 @@ read1 (register Lisp_Object readcharfun, int *pch, int first_in_list)
2828 So we now use the same heuristic as for backquote: old-style 2828 So we now use the same heuristic as for backquote: old-style
2829 unquotes are only recognized when first on a list, and when 2829 unquotes are only recognized when first on a list, and when
2830 followed by a space. 2830 followed by a space.
2831 Because it's more difficult to peak 2 chars ahead, a new-style 2831 Because it's more difficult to peek 2 chars ahead, a new-style
2832 ,@ can still not be used outside of a `, unless it's in the middle 2832 ,@ can still not be used outside of a `, unless it's in the middle
2833 of a list. */ 2833 of a list. */
2834 if (new_backquote_flag 2834 if (new_backquote_flag
diff --git a/src/nsfont.m b/src/nsfont.m
index 7dfb995dd27..44c427ce0cc 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -630,7 +630,7 @@ nsfont_list (Lisp_Object frame, Lisp_Object font_spec)
630} 630}
631 631
632 632
633/* Return a font entity most closely maching with FONT_SPEC on 633/* Return a font entity most closely matching with FONT_SPEC on
634 FRAME. The closeness is determined by the font backend, thus 634 FRAME. The closeness is determined by the font backend, thus
635 `face-font-selection-order' is ignored here. 635 `face-font-selection-order' is ignored here.
636 Properties to be considered are same as for list(). */ 636 Properties to be considered are same as for list(). */
diff --git a/src/region-cache.c b/src/region-cache.c
index ed7a07a6709..054374eb688 100644
--- a/src/region-cache.c
+++ b/src/region-cache.c
@@ -699,7 +699,7 @@ know_region_cache (struct buffer *buf, struct region_cache *c,
699 699
700/* Return true if the text immediately after POS in BUF is known, for 700/* Return true if the text immediately after POS in BUF is known, for
701 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest 701 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest
702 position after POS where the knownness changes. */ 702 position after POS where the knowledge changes. */
703int 703int
704region_cache_forward (struct buffer *buf, struct region_cache *c, 704region_cache_forward (struct buffer *buf, struct region_cache *c,
705 ptrdiff_t pos, ptrdiff_t *next) 705 ptrdiff_t pos, ptrdiff_t *next)
@@ -736,7 +736,7 @@ region_cache_forward (struct buffer *buf, struct region_cache *c,
736 736
737/* Return true if the text immediately before POS in BUF is known, for 737/* Return true if the text immediately before POS in BUF is known, for
738 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest 738 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest
739 position before POS where the knownness changes. */ 739 position before POS where the knowledge changes. */
740int region_cache_backward (struct buffer *buf, struct region_cache *c, 740int region_cache_backward (struct buffer *buf, struct region_cache *c,
741 ptrdiff_t pos, ptrdiff_t *next) 741 ptrdiff_t pos, ptrdiff_t *next)
742{ 742{
diff --git a/src/region-cache.h b/src/region-cache.h
index 8e1be716776..6758f8bcd08 100644
--- a/src/region-cache.h
+++ b/src/region-cache.h
@@ -97,7 +97,7 @@ extern void invalidate_region_cache (struct buffer *BUF,
97 97
98/* Return true if the text immediately after POS in BUF is known, for 98/* Return true if the text immediately after POS in BUF is known, for
99 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest 99 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest
100 position after POS where the knownness changes. */ 100 position after POS where the knowledge changes. */
101extern int region_cache_forward (struct buffer *BUF, 101extern int region_cache_forward (struct buffer *BUF,
102 struct region_cache *CACHE, 102 struct region_cache *CACHE,
103 ptrdiff_t POS, 103 ptrdiff_t POS,
@@ -105,7 +105,7 @@ extern int region_cache_forward (struct buffer *BUF,
105 105
106/* Return true if the text immediately before POS in BUF is known, for 106/* Return true if the text immediately before POS in BUF is known, for
107 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest 107 the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest
108 position before POS where the knownness changes. */ 108 position before POS where the knowledge changes. */
109extern int region_cache_backward (struct buffer *BUF, 109extern int region_cache_backward (struct buffer *BUF,
110 struct region_cache *CACHE, 110 struct region_cache *CACHE,
111 ptrdiff_t POS, 111 ptrdiff_t POS,
diff --git a/src/termhooks.h b/src/termhooks.h
index ddcbf53eb6f..c8e3f4566cd 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -553,7 +553,7 @@ struct terminal
553 553
554 /* Arrange for all scroll bars on FRAME to be removed at the next call 554 /* Arrange for all scroll bars on FRAME to be removed at the next call
555 to `*judge_scroll_bars_hook'. A scroll bar may be spared if 555 to `*judge_scroll_bars_hook'. A scroll bar may be spared if
556 `*redeem_scroll_bar_hook' is applied to its window before the judgement. 556 `*redeem_scroll_bar_hook' is applied to its window before the judgment.
557 557
558 This should be applied to each frame each time its window tree is 558 This should be applied to each frame each time its window tree is
559 redisplayed, even if it is not displaying scroll bars at the moment; 559 redisplayed, even if it is not displaying scroll bars at the moment;
@@ -565,7 +565,7 @@ struct terminal
565 currently displaying them. */ 565 currently displaying them. */
566 void (*condemn_scroll_bars_hook) (struct frame *frame); 566 void (*condemn_scroll_bars_hook) (struct frame *frame);
567 567
568 /* Unmark WINDOW's scroll bar for deletion in this judgement cycle. 568 /* Unmark WINDOW's scroll bar for deletion in this judgment cycle.
569 Note that it's okay to redeem a scroll bar that is not condemned. */ 569 Note that it's okay to redeem a scroll bar that is not condemned. */
570 void (*redeem_scroll_bar_hook) (struct window *window); 570 void (*redeem_scroll_bar_hook) (struct window *window);
571 571
diff --git a/src/window.c b/src/window.c
index 3b9705444f9..8337ede50d1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4997,7 +4997,7 @@ the selected window; if the variable `recenter-redisplay' is non-nil,
4997also erase the entire frame and redraw it (when `auto-resize-tool-bars' 4997also erase the entire frame and redraw it (when `auto-resize-tool-bars'
4998is set to `grow-only', this resets the tool-bar's height to the minimum 4998is set to `grow-only', this resets the tool-bar's height to the minimum
4999height needed); if `recenter-redisplay' has the special value `tty', 4999height needed); if `recenter-redisplay' has the special value `tty',
5000then only tty frame are redrawn. 5000then only tty frames are redrawn.
5001 5001
5002Just C-u as prefix means put point in the center of the window 5002Just C-u as prefix means put point in the center of the window
5003and redisplay normally--don't erase and redraw the frame. */) 5003and redisplay normally--don't erase and redraw the frame. */)
@@ -6502,28 +6502,31 @@ with the relevant frame selected. */);
6502 Vwindow_configuration_change_hook = Qnil; 6502 Vwindow_configuration_change_hook = Qnil;
6503 6503
6504 DEFVAR_LISP ("recenter-redisplay", Vrecenter_redisplay, 6504 DEFVAR_LISP ("recenter-redisplay", Vrecenter_redisplay,
6505 doc: /* If non-nil, then the `recenter' command with a nil argument 6505 doc: /* Non-nil means `recenter' redraws entire frame.
6506will redraw the entire frame; the special value `tty' causes the 6506If this option is non-nil, then the `recenter' command with a nil
6507frame to be redrawn only if it is a tty frame. */); 6507argument will redraw the entire frame; the special value `tty' causes
6508the frame to be redrawn only if it is a tty frame. */);
6508 Vrecenter_redisplay = Qtty; 6509 Vrecenter_redisplay = Qtty;
6509 6510
6510 DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize, 6511 DEFVAR_LISP ("window-combination-resize", Vwindow_combination_resize,
6511 doc: /* Non-nil means resize window combinations proportionally. 6512 doc: /* If t, resize window combinations proportionally.
6512If this variable is nil, splitting a window gets the entire screen space 6513If this variable is nil, splitting a window gets the entire screen space
6513for displaying the new window from the window to split. Deleting and 6514for displaying the new window from the window to split. Deleting and
6514resizing a window preferably resizes one adjacent window only. 6515resizing a window preferably resizes one adjacent window only.
6515 6516
6516If this variable is non-nil, splitting a window tries to get the space 6517If this variable is t, splitting a window tries to get the space
6517proportionally from all windows in the same combination. This also 6518proportionally from all windows in the same combination. This also
6518allows to split a window that is otherwise too small or of fixed size. 6519allows to split a window that is otherwise too small or of fixed size.
6519Resizing and deleting a window proportionally resize all windows in the 6520Resizing and deleting a window proportionally resize all windows in the
6520same combination. 6521same combination.
6521 6522
6523Other values are reserved for future use.
6524
6522This variable takes no effect if `window-combination-limit' is non-nil. */); 6525This variable takes no effect if `window-combination-limit' is non-nil. */);
6523 Vwindow_combination_resize = Qnil; 6526 Vwindow_combination_resize = Qnil;
6524 6527
6525 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit, 6528 DEFVAR_LISP ("window-combination-limit", Vwindow_combination_limit,
6526 doc: /* Non-nil means splitting a window makes a new parent window. 6529 doc: /* If t, splitting a window makes a new parent window.
6527If this variable is nil, splitting a window will create a new parent 6530If this variable is nil, splitting a window will create a new parent
6528window only if the window has no parent window or the window shall 6531window only if the window has no parent window or the window shall
6529become a combination orthogonal to the one it is part of. 6532become a combination orthogonal to the one it is part of.
diff --git a/src/xfns.c b/src/xfns.c
index 9bbaea37583..642b3602833 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1877,7 +1877,7 @@ static XIMStyle supported_xim_styles[] =
1877#if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT 1877#if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT
1878/* Create an X fontset on frame F with base font name BASE_FONTNAME. */ 1878/* Create an X fontset on frame F with base font name BASE_FONTNAME. */
1879 1879
1880static const char xic_defaut_fontset[] = "-*-*-*-r-normal--14-*-*-*-*-*-*-*"; 1880static const char xic_default_fontset[] = "-*-*-*-r-normal--14-*-*-*-*-*-*-*";
1881 1881
1882/* Create an Xt fontset spec from the name of a base font. 1882/* Create an Xt fontset spec from the name of a base font.
1883 If `motif' is True use the Motif syntax. */ 1883 If `motif' is True use the Motif syntax. */
@@ -1888,7 +1888,7 @@ xic_create_fontsetname (const char *base_fontname, int motif)
1888 char *fontsetname; 1888 char *fontsetname;
1889 1889
1890 /* Make a fontset name from the base font name. */ 1890 /* Make a fontset name from the base font name. */
1891 if (xic_defaut_fontset == base_fontname) 1891 if (xic_default_fontset == base_fontname)
1892 { /* There is no base font name, use the default. */ 1892 { /* There is no base font name, use the default. */
1893 ptrdiff_t len = strlen (base_fontname) + 2; 1893 ptrdiff_t len = strlen (base_fontname) + 2;
1894 fontsetname = xmalloc (len); 1894 fontsetname = xmalloc (len);
@@ -1912,12 +1912,12 @@ xic_create_fontsetname (const char *base_fontname, int motif)
1912 modify it to generalize it to allcs and allfamilies. 1912 modify it to generalize it to allcs and allfamilies.
1913 Use the specified font plus the default. */ 1913 Use the specified font plus the default. */
1914 ptrdiff_t len = 1914 ptrdiff_t len =
1915 strlen (base_fontname) + strlen (xic_defaut_fontset) + 3; 1915 strlen (base_fontname) + strlen (xic_default_fontset) + 3;
1916 fontsetname = xmalloc (len); 1916 fontsetname = xmalloc (len);
1917 memset (fontsetname, 0, len); 1917 memset (fontsetname, 0, len);
1918 strcpy (fontsetname, base_fontname); 1918 strcpy (fontsetname, base_fontname);
1919 strcat (fontsetname, sep); 1919 strcat (fontsetname, sep);
1920 strcat (fontsetname, xic_defaut_fontset); 1920 strcat (fontsetname, xic_default_fontset);
1921 } 1921 }
1922 else 1922 else
1923 { 1923 {