diff options
| author | Dan Nicolaescu | 2009-11-11 06:10:42 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2009-11-11 06:10:42 +0000 |
| commit | a4ada374d6f96b5a7b9fe8df57307fae3fcd3351 (patch) | |
| tree | a574ca978f9298d0866d1181223566fc932a52a6 /src | |
| parent | 04991a1c0d1e23391f5d88d3e5007e352c1ab3cb (diff) | |
| download | emacs-a4ada374d6f96b5a7b9fe8df57307fae3fcd3351.tar.gz emacs-a4ada374d6f96b5a7b9fe8df57307fae3fcd3351.zip | |
* xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
* xterm.c (syms_of_xterm):
* xfaces.c (syms_of_xfaces):
* xdisp.c (syms_of_xdisp):
* lread.c (syms_of_lread):
* keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
build_string.
* doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/doc.c | 1 | ||||
| -rw-r--r-- | src/keyboard.c | 2 | ||||
| -rw-r--r-- | src/lread.c | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 20 | ||||
| -rw-r--r-- | src/xfaces.c | 2 | ||||
| -rw-r--r-- | src/xfns.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
8 files changed, 28 insertions, 16 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c9634e7f4c6..933752178f2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string. | ||
| 4 | * xterm.c (syms_of_xterm): | ||
| 5 | * xfaces.c (syms_of_xfaces): | ||
| 6 | * xdisp.c (syms_of_xdisp): | ||
| 7 | * lread.c (syms_of_lread): | ||
| 8 | * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of | ||
| 9 | build_string. | ||
| 10 | * doc.c (Fsnarf_documentation): Purecopy Vbuild_files. | ||
| 11 | |||
| 1 | 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca> | 12 | 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 13 | ||
| 3 | * fns.c (Fplist_get): Merge the active and the uncommented code. | 14 | * fns.c (Fplist_get): Merge the active and the uncommented code. |
| @@ -619,6 +619,7 @@ the same file name is found in the `doc-directory'. */) | |||
| 619 | if (len > 0) | 619 | if (len > 0) |
| 620 | Vbuild_files = Fcons (make_string (beg, len), Vbuild_files); | 620 | Vbuild_files = Fcons (make_string (beg, len), Vbuild_files); |
| 621 | } | 621 | } |
| 622 | Vbuild_files = Fpurecopy (Vbuild_files); | ||
| 622 | } | 623 | } |
| 623 | 624 | ||
| 624 | fd = emacs_open (name, O_RDONLY, 0); | 625 | fd = emacs_open (name, O_RDONLY, 0); |
diff --git a/src/keyboard.c b/src/keyboard.c index 872bd81ed40..3b4f0c54eb7 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -11729,7 +11729,7 @@ syms_of_keyboard () | |||
| 11729 | pending_funcalls = Qnil; | 11729 | pending_funcalls = Qnil; |
| 11730 | staticpro (&pending_funcalls); | 11730 | staticpro (&pending_funcalls); |
| 11731 | 11731 | ||
| 11732 | Vlispy_mouse_stem = build_string ("mouse"); | 11732 | Vlispy_mouse_stem = make_pure_c_string ("mouse"); |
| 11733 | staticpro (&Vlispy_mouse_stem); | 11733 | staticpro (&Vlispy_mouse_stem); |
| 11734 | 11734 | ||
| 11735 | /* Tool-bars. */ | 11735 | /* Tool-bars. */ |
diff --git a/src/lread.c b/src/lread.c index a75836f0462..a3cb505f723 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -4330,8 +4330,8 @@ otherwise to default specified by file `epaths.h' when Emacs was built. */); | |||
| 4330 | This list should not include the empty string. | 4330 | This list should not include the empty string. |
| 4331 | `load' and related functions try to append these suffixes, in order, | 4331 | `load' and related functions try to append these suffixes, in order, |
| 4332 | to the specified file name if a Lisp suffix is allowed or required. */); | 4332 | to the specified file name if a Lisp suffix is allowed or required. */); |
| 4333 | Vload_suffixes = Fcons (build_string (".elc"), | 4333 | Vload_suffixes = Fcons (make_pure_c_string (".elc"), |
| 4334 | Fcons (build_string (".el"), Qnil)); | 4334 | Fcons (make_pure_c_string (".el"), Qnil)); |
| 4335 | DEFVAR_LISP ("load-file-rep-suffixes", &Vload_file_rep_suffixes, | 4335 | DEFVAR_LISP ("load-file-rep-suffixes", &Vload_file_rep_suffixes, |
| 4336 | doc: /* List of suffixes that indicate representations of \ | 4336 | doc: /* List of suffixes that indicate representations of \ |
| 4337 | the same file. | 4337 | the same file. |
diff --git a/src/xdisp.c b/src/xdisp.c index 5b6fdf83fe7..46cd45a9eba 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -24782,7 +24782,7 @@ syms_of_xdisp () | |||
| 24782 | staticpro (&echo_area_buffer[0]); | 24782 | staticpro (&echo_area_buffer[0]); |
| 24783 | staticpro (&echo_area_buffer[1]); | 24783 | staticpro (&echo_area_buffer[1]); |
| 24784 | 24784 | ||
| 24785 | Vmessages_buffer_name = build_string ("*Messages*"); | 24785 | Vmessages_buffer_name = make_pure_c_string ("*Messages*"); |
| 24786 | staticpro (&Vmessages_buffer_name); | 24786 | staticpro (&Vmessages_buffer_name); |
| 24787 | 24787 | ||
| 24788 | mode_line_proptrans_alist = Qnil; | 24788 | mode_line_proptrans_alist = Qnil; |
| @@ -24852,7 +24852,7 @@ See also `overlay-arrow-string'. */); | |||
| 24852 | DEFVAR_LISP ("overlay-arrow-string", &Voverlay_arrow_string, | 24852 | DEFVAR_LISP ("overlay-arrow-string", &Voverlay_arrow_string, |
| 24853 | doc: /* String to display as an arrow in non-window frames. | 24853 | doc: /* String to display as an arrow in non-window frames. |
| 24854 | See also `overlay-arrow-position'. */); | 24854 | See also `overlay-arrow-position'. */); |
| 24855 | Voverlay_arrow_string = build_string ("=>"); | 24855 | Voverlay_arrow_string = make_pure_c_string ("=>"); |
| 24856 | 24856 | ||
| 24857 | DEFVAR_LISP ("overlay-arrow-variable-list", &Voverlay_arrow_variable_list, | 24857 | DEFVAR_LISP ("overlay-arrow-variable-list", &Voverlay_arrow_variable_list, |
| 24858 | doc: /* List of variables (symbols) which hold markers for overlay arrows. | 24858 | doc: /* List of variables (symbols) which hold markers for overlay arrows. |
| @@ -24953,14 +24953,14 @@ and is used only on frames for which no explicit name has been set | |||
| 24953 | \(see `modify-frame-parameters'). */); | 24953 | \(see `modify-frame-parameters'). */); |
| 24954 | Vicon_title_format | 24954 | Vicon_title_format |
| 24955 | = Vframe_title_format | 24955 | = Vframe_title_format |
| 24956 | = Fcons (intern_c_string ("multiple-frames"), | 24956 | = pure_cons (make_pure_c_string ("multiple-frames"), |
| 24957 | Fcons (build_string ("%b"), | 24957 | pure_cons (make_pure_c_string ("%b"), |
| 24958 | Fcons (Fcons (empty_unibyte_string, | 24958 | pure_cons (pure_cons (empty_unibyte_string, |
| 24959 | Fcons (intern_c_string ("invocation-name"), | 24959 | pure_cons (intern_c_string ("invocation-name"), |
| 24960 | Fcons (build_string ("@"), | 24960 | pure_cons (make_pure_c_string ("@"), |
| 24961 | Fcons (intern_c_string ("system-name"), | 24961 | pure_cons (intern_c_string ("system-name"), |
| 24962 | Qnil)))), | 24962 | Qnil)))), |
| 24963 | Qnil))); | 24963 | Qnil))); |
| 24964 | 24964 | ||
| 24965 | DEFVAR_LISP ("message-log-max", &Vmessage_log_max, | 24965 | DEFVAR_LISP ("message-log-max", &Vmessage_log_max, |
| 24966 | doc: /* Maximum number of lines to keep in the message log buffer. | 24966 | doc: /* Maximum number of lines to keep in the message log buffer. |
diff --git a/src/xfaces.c b/src/xfaces.c index 9da3cc7f325..4c7f2d969d5 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -6952,7 +6952,7 @@ that number of fonts when searching for a matching font. */); | |||
| 6952 | This stipple pattern is used on monochrome displays | 6952 | This stipple pattern is used on monochrome displays |
| 6953 | instead of shades of gray for a face background color. | 6953 | instead of shades of gray for a face background color. |
| 6954 | See `set-face-stipple' for possible values for this variable. */); | 6954 | See `set-face-stipple' for possible values for this variable. */); |
| 6955 | Vface_default_stipple = build_string ("gray3"); | 6955 | Vface_default_stipple = make_pure_c_string ("gray3"); |
| 6956 | 6956 | ||
| 6957 | DEFVAR_LISP ("tty-defined-color-alist", &Vtty_defined_color_alist, | 6957 | DEFVAR_LISP ("tty-defined-color-alist", &Vtty_defined_color_alist, |
| 6958 | doc: /* An alist of defined terminal colors and their RGB values. */); | 6958 | doc: /* An alist of defined terminal colors and their RGB values. */); |
diff --git a/src/xfns.c b/src/xfns.c index 8fd46fa1a0e..9d4c1f80637 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -5932,7 +5932,7 @@ the tool bar buttons. */); | |||
| 5932 | char gtk_version[40]; | 5932 | char gtk_version[40]; |
| 5933 | g_snprintf (gtk_version, sizeof (gtk_version), "%u.%u.%u", | 5933 | g_snprintf (gtk_version, sizeof (gtk_version), "%u.%u.%u", |
| 5934 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | 5934 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
| 5935 | Vgtk_version_string = build_string (gtk_version); | 5935 | Vgtk_version_string = make_pure_string (gtk_version, strlen (gtk_version), strlen (gtk_version), 0); |
| 5936 | } | 5936 | } |
| 5937 | #endif /* USE_GTK */ | 5937 | #endif /* USE_GTK */ |
| 5938 | 5938 | ||
diff --git a/src/xterm.c b/src/xterm.c index 545f3a5254d..9936e98b1ed 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -10847,7 +10847,7 @@ syms_of_xterm () | |||
| 10847 | last_mouse_press_frame = Qnil; | 10847 | last_mouse_press_frame = Qnil; |
| 10848 | 10848 | ||
| 10849 | #ifdef USE_GTK | 10849 | #ifdef USE_GTK |
| 10850 | xg_default_icon_file = build_string ("icons/hicolor/scalable/apps/emacs.svg"); | 10850 | xg_default_icon_file = make_pure_c_string ("icons/hicolor/scalable/apps/emacs.svg"); |
| 10851 | staticpro (&xg_default_icon_file); | 10851 | staticpro (&xg_default_icon_file); |
| 10852 | 10852 | ||
| 10853 | Qx_gtk_map_stock = intern_c_string ("x-gtk-map-stock"); | 10853 | Qx_gtk_map_stock = intern_c_string ("x-gtk-map-stock"); |