aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2007-10-13 05:53:03 +0000
committerMiles Bader2007-10-13 05:53:03 +0000
commit2b42d458a45eaf9767da327f76a40a1cf9c77c23 (patch)
treef896828e65199d043ea7ab366fffea8bd315a986 /src
parent3e88ae627ef8d827b3f79e4e6f14aaad7adfe322 (diff)
parente2cfa9afa691fb8b7a554cb685c16ff3d4e1ff2b (diff)
downloademacs-2b42d458a45eaf9767da327f76a40a1cf9c77c23.tar.gz
emacs-2b42d458a45eaf9767da327f76a40a1cf9c77c23.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 880-885) - Remove RCS keywords from doc/misc/cc-mode.texi - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-264
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog39
-rw-r--r--src/callproc.c1
-rw-r--r--src/frame.c59
-rw-r--r--src/frame.h1
-rw-r--r--src/indent.c9
-rw-r--r--src/lisp.h1
-rw-r--r--src/lread.c6
-rw-r--r--src/macfns.c2
-rw-r--r--src/puresize.h2
9 files changed, 42 insertions, 78 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4160a53e9d7..c928977d68b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,15 +1,41 @@
12007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
2
3 * macfns.c (x_create_tip_frame): Set terminal for frame.
4
52007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
6
7 * frame.c (Qenvironment): Remove.
8 (syms_of_frame) <Qenvironment>: Don't initialize.
9 (Fdelete_frame): Don't treat the `environment' param specially.
10 * frame.h (Qenvironment): Don't declare.
11 * callproc.c (set_initial_environment): Don't set unused frame param.
12
13 * frame.c (Fframe_with_environment): Remove.
14 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15
16 * lisp.h (Fframe_with_environment): Don't declare.
17
182007-10-10 Juanma Barranquero <lekktu@gmail.com>
19
20 * indent.c (indent_tabs_mode, last_known_column)
21 (last_known_column_modified): Make static.
22 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23
242007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25
26 * puresize.h (BASE_PURESIZE): Increase to 1170000.
27
12007-10-08 Martin Rudalics <rudalics@gmx.at> 282007-10-08 Martin Rudalics <rudalics@gmx.at>
2 29
3 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input 30 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
4 when there's an unread command event. 31 when there's an unread command event.
5 32
6 * frame.c (focus_follows_mouse): Moved here from frame.el to allow 33 * frame.c (focus_follows_mouse): Move here from frame.el to allow
7 window autoselection act appropriately when leaving selected frame. 34 window autoselection act appropriately when leaving selected frame.
8 (syms_of_frame): Initialize focus_follows_mouse. 35 (syms_of_frame): Initialize focus_follows_mouse.
9 * frame.h (focus_follows_mouse): Extern it. 36 * frame.h (focus_follows_mouse): Extern it.
10 * macterm.c (XTread_socket): When focus_follows_mouse is nil 37 * macterm.c (XTread_socket): When focus_follows_mouse is nil
11 make SELECT_WINDOW_EVENT only if we don't leave the selected 38 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
12 frame.
13 * msdos.c (dos_rawgetc): Likewise. 39 * msdos.c (dos_rawgetc): Likewise.
14 * w32term.c (w32_read_socket): Likewise. 40 * w32term.c (w32_read_socket): Likewise.
15 * xterm.c (handle_one_xevent): Likewise. 41 * xterm.c (handle_one_xevent): Likewise.
@@ -39,7 +65,7 @@
39 65
402007-10-08 Richard Stallman <rms@gnu.org> 662007-10-08 Richard Stallman <rms@gnu.org>
41 67
42 * image.c (our_memory_buffer): Renamed from omfib_buffer. 68 * image.c (our_memory_buffer): Rename from omfib_buffer.
43 69
442007-10-08 Richard Stallman <rms@gnu.org> 702007-10-08 Richard Stallman <rms@gnu.org>
45 71
@@ -82,7 +108,7 @@
82 108
832007-10-09 Stefan Monnier <monnier@iro.umontreal.ca> 1092007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
84 110
85 Add new `input-decode-map' keymap and use it for temrinal 111 Add new `input-decode-map' keymap and use it for terminal
86 escape sequences. 112 escape sequences.
87 * keyboard.h (struct kboard): Add Vinput_decode_map. 113 * keyboard.h (struct kboard): Add Vinput_decode_map.
88 Remove Vlocal_key_translation_map. 114 Remove Vlocal_key_translation_map.
@@ -295,8 +321,7 @@
295 321
2962007-09-22 Eli Zaretskii <eliz@gnu.org> 3222007-09-22 Eli Zaretskii <eliz@gnu.org>
297 323
298 * term.c (DEV_TTY): New macro. Provide a definition for 324 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
299 MS-Windows.
300 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero. 325 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
301 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty) 326 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
302 (init_tty): Use DEV_TTY instead of "/dev/tty". 327 (init_tty): Use DEV_TTY instead of "/dev/tty".
diff --git a/src/callproc.c b/src/callproc.c
index 5560f32173c..8a8052c0019 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1663,7 +1663,6 @@ set_initial_environment ()
1663 for (envp = environ; *envp; envp++) 1663 for (envp = environ; *envp; envp++)
1664 Vprocess_environment = Fcons (build_string (*envp), 1664 Vprocess_environment = Fcons (build_string (*envp),
1665 Vprocess_environment); 1665 Vprocess_environment);
1666 store_frame_param (SELECTED_FRAME(), Qenvironment, Vprocess_environment);
1667 /* Ideally, the `copy' shouldn't be necessary, but it seems it's frequent 1666 /* Ideally, the `copy' shouldn't be necessary, but it seems it's frequent
1668 to use `delete' and friends on process-environment. */ 1667 to use `delete' and friends on process-environment. */
1669 Vinitial_environment = Fcopy_sequence (Vprocess_environment); 1668 Vinitial_environment = Fcopy_sequence (Vprocess_environment);
diff --git a/src/frame.c b/src/frame.c
index 8314ad7a398..5f4e12cd705 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -114,7 +114,6 @@ Lisp_Object Qbuffer_predicate, Qbuffer_list, Qburied_buffer_list;
114Lisp_Object Qtty_color_mode; 114Lisp_Object Qtty_color_mode;
115Lisp_Object Qtty, Qtty_type; 115Lisp_Object Qtty, Qtty_type;
116Lisp_Object Qwindow_system; 116Lisp_Object Qwindow_system;
117Lisp_Object Qenvironment;
118 117
119Lisp_Object Qfullscreen, Qfullwidth, Qfullheight, Qfullboth; 118Lisp_Object Qfullscreen, Qfullwidth, Qfullheight, Qfullboth;
120#ifdef USE_FONT_BACKEND 119#ifdef USE_FONT_BACKEND
@@ -1479,24 +1478,6 @@ The functions are run with one arg, the frame to be deleted. */)
1479 if (EQ (f->minibuffer_window, echo_area_window)) 1478 if (EQ (f->minibuffer_window, echo_area_window))
1480 echo_area_window = sf->minibuffer_window; 1479 echo_area_window = sf->minibuffer_window;
1481 1480
1482 /* Don't allow other frames to refer to a deleted frame in their
1483 'environment parameter. */
1484 {
1485 Lisp_Object tail, frame1;
1486 Lisp_Object env = get_frame_param (XFRAME (frame), Qenvironment);
1487 FOR_EACH_FRAME (tail, frame1)
1488 {
1489 if (EQ (frame, frame1) || !FRAME_LIVE_P (XFRAME (frame1)))
1490 continue;
1491 if (EQ (frame, get_frame_param (XFRAME (frame1), Qenvironment)))
1492 {
1493 store_frame_param (XFRAME (frame1), Qenvironment, env);
1494 if (!FRAMEP (env))
1495 env = frame1;
1496 }
1497 }
1498 }
1499
1500 /* Clear any X selections for this frame. */ 1481 /* Clear any X selections for this frame. */
1501#ifdef HAVE_X_WINDOWS 1482#ifdef HAVE_X_WINDOWS
1502 if (FRAME_X_P (f)) 1483 if (FRAME_X_P (f))
@@ -2618,43 +2599,6 @@ enabled such bindings for that variable with `make-variable-frame-local'. */)
2618 } 2599 }
2619 return Qnil; 2600 return Qnil;
2620} 2601}
2621
2622DEFUN ("frame-with-environment", Fframe_with_environment, Sframe_with_environment, 0, 1, 0,
2623 doc: /* Return the frame that has the environment variable list for FRAME.
2624
2625The frame-local environment variable list is normally shared between
2626frames that were created in the same Emacsclient session. The
2627environment list is stored in a single frame's 'environment parameter;
2628the other frames' 'environment parameter is set to this frame. This
2629function follows the chain of 'environment references to reach the
2630frame that stores the actual local environment list, and returns that
2631frame. */)
2632 (frame)
2633 Lisp_Object frame;
2634{
2635 Lisp_Object hare, tortoise;
2636
2637 if (NILP (frame))
2638 frame = selected_frame;
2639 CHECK_FRAME (frame);
2640
2641 hare = tortoise = get_frame_param (XFRAME (frame), Qenvironment);
2642 while (!NILP (hare) && FRAMEP (hare))
2643 {
2644 frame = hare;
2645 hare = get_frame_param (XFRAME (hare), Qenvironment);
2646 if (NILP (hare) || !FRAMEP (hare))
2647 break;
2648 frame = hare;
2649 hare = get_frame_param (XFRAME (hare), Qenvironment);
2650 tortoise = get_frame_param (XFRAME (tortoise), Qenvironment);
2651 if (EQ (hare, tortoise))
2652 error ("Cyclic frame-local environment indirection");
2653 }
2654
2655 return frame;
2656}
2657
2658 2602
2659DEFUN ("frame-char-height", Fframe_char_height, Sframe_char_height, 2603DEFUN ("frame-char-height", Fframe_char_height, Sframe_char_height,
2660 0, 1, 0, 2604 0, 1, 0,
@@ -4455,8 +4399,6 @@ syms_of_frame ()
4455 staticpro (&Qtty_type); 4399 staticpro (&Qtty_type);
4456 Qwindow_system = intern ("window-system"); 4400 Qwindow_system = intern ("window-system");
4457 staticpro (&Qwindow_system); 4401 staticpro (&Qwindow_system);
4458 Qenvironment = intern ("environment");
4459 staticpro (&Qenvironment);
4460 4402
4461 Qface_set_after_frame_default = intern ("face-set-after-frame-default"); 4403 Qface_set_after_frame_default = intern ("face-set-after-frame-default");
4462 staticpro (&Qface_set_after_frame_default); 4404 staticpro (&Qface_set_after_frame_default);
@@ -4656,7 +4598,6 @@ automatically. */);
4656 defsubr (&Sframe_parameters); 4598 defsubr (&Sframe_parameters);
4657 defsubr (&Sframe_parameter); 4599 defsubr (&Sframe_parameter);
4658 defsubr (&Smodify_frame_parameters); 4600 defsubr (&Smodify_frame_parameters);
4659 defsubr (&Sframe_with_environment);
4660 defsubr (&Sframe_char_height); 4601 defsubr (&Sframe_char_height);
4661 defsubr (&Sframe_char_width); 4602 defsubr (&Sframe_char_width);
4662 defsubr (&Sframe_pixel_height); 4603 defsubr (&Sframe_pixel_height);
diff --git a/src/frame.h b/src/frame.h
index e48dd646da3..e9be84d8558 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -796,7 +796,6 @@ typedef struct frame *FRAME_PTR;
796extern Lisp_Object Qframep, Qframe_live_p; 796extern Lisp_Object Qframep, Qframe_live_p;
797extern Lisp_Object Qtty, Qtty_type; 797extern Lisp_Object Qtty, Qtty_type;
798extern Lisp_Object Qterminal, Qterminal_live_p; 798extern Lisp_Object Qterminal, Qterminal_live_p;
799extern Lisp_Object Qenvironment;
800 799
801extern struct frame *last_nonminibuf_frame; 800extern struct frame *last_nonminibuf_frame;
802 801
diff --git a/src/indent.c b/src/indent.c
index 2a4fe1e5e72..3f528749570 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -39,7 +39,7 @@ Boston, MA 02110-1301, USA. */
39/* Indentation can insert tabs if this is non-zero; 39/* Indentation can insert tabs if this is non-zero;
40 otherwise always uses spaces. */ 40 otherwise always uses spaces. */
41 41
42int indent_tabs_mode; 42static int indent_tabs_mode;
43 43
44#define CR 015 44#define CR 015
45 45
@@ -49,7 +49,7 @@ int indent_tabs_mode;
49 Some things in set last_known_column_point to -1 49 Some things in set last_known_column_point to -1
50 to mark the memorized value as invalid. */ 50 to mark the memorized value as invalid. */
51 51
52double last_known_column; 52static double last_known_column;
53 53
54/* Value of point when current_column was called. */ 54/* Value of point when current_column was called. */
55 55
@@ -57,7 +57,7 @@ EMACS_INT last_known_column_point;
57 57
58/* Value of MODIFF when current_column was called. */ 58/* Value of MODIFF when current_column was called. */
59 59
60int last_known_column_modified; 60static int last_known_column_modified;
61 61
62static double current_column_1 P_ ((void)); 62static double current_column_1 P_ ((void));
63static double position_indentation P_ ((int)); 63static double position_indentation P_ ((int));
@@ -2159,8 +2159,7 @@ void
2159syms_of_indent () 2159syms_of_indent ()
2160{ 2160{
2161 DEFVAR_BOOL ("indent-tabs-mode", &indent_tabs_mode, 2161 DEFVAR_BOOL ("indent-tabs-mode", &indent_tabs_mode,
2162 doc: /* *Indentation can insert tabs if this is non-nil. 2162 doc: /* *Indentation can insert tabs if this is non-nil. */);
2163Setting this variable automatically makes it local to the current buffer. */);
2164 indent_tabs_mode = 1; 2163 indent_tabs_mode = 1;
2165 2164
2166 defsubr (&Scurrent_indentation); 2165 defsubr (&Scurrent_indentation);
diff --git a/src/lisp.h b/src/lisp.h
index 578cc3a6410..50750af3c4f 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3029,7 +3029,6 @@ EXFUN (Fvisible_frame_list, 0);
3029EXFUN (Fframe_parameter, 2); 3029EXFUN (Fframe_parameter, 2);
3030EXFUN (Fframe_parameters, 1); 3030EXFUN (Fframe_parameters, 1);
3031EXFUN (Fmodify_frame_parameters, 2); 3031EXFUN (Fmodify_frame_parameters, 2);
3032EXFUN (Fframe_with_environment, 1);
3033EXFUN (Fset_frame_height, 3); 3032EXFUN (Fset_frame_height, 3);
3034EXFUN (Fset_frame_width, 3); 3033EXFUN (Fset_frame_width, 3);
3035EXFUN (Fset_frame_size, 3); 3034EXFUN (Fset_frame_size, 3);
diff --git a/src/lread.c b/src/lread.c
index 3975c0bfcd0..1bcad4672f0 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3821,8 +3821,8 @@ defalias (sname, string)
3821#endif /* NOTDEF */ 3821#endif /* NOTDEF */
3822 3822
3823/* Define an "integer variable"; a symbol whose value is forwarded 3823/* Define an "integer variable"; a symbol whose value is forwarded
3824 to a C variable of type int. Sample call: */ 3824 to a C variable of type int. Sample call:
3825 /* DEFVAR_INT ("indent-tabs-mode", &indent_tabs_mode, "Documentation"); */ 3825 DEFVAR_INT ("emacs-priority", &emacs_priority, "Documentation"); */
3826void 3826void
3827defvar_int (namestring, address) 3827defvar_int (namestring, address)
3828 char *namestring; 3828 char *namestring;
@@ -3837,7 +3837,7 @@ defvar_int (namestring, address)
3837} 3837}
3838 3838
3839/* Similar but define a variable whose value is t if address contains 1, 3839/* Similar but define a variable whose value is t if address contains 1,
3840 nil if address contains 0 */ 3840 nil if address contains 0. */
3841void 3841void
3842defvar_bool (namestring, address) 3842defvar_bool (namestring, address)
3843 char *namestring; 3843 char *namestring;
diff --git a/src/macfns.c b/src/macfns.c
index 71eae699f9a..0330ccd0d44 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -3855,6 +3855,8 @@ x_create_tip_frame (dpyinfo, parms, text)
3855 the frame is live, as per FRAME_LIVE_P. If we get a signal 3855 the frame is live, as per FRAME_LIVE_P. If we get a signal
3856 from this point on, x_destroy_window might screw up reference 3856 from this point on, x_destroy_window might screw up reference
3857 counts etc. */ 3857 counts etc. */
3858 f->terminal = dpyinfo->terminal;
3859 f->terminal->reference_count++;
3858 f->output_method = output_mac; 3860 f->output_method = output_mac;
3859 f->output_data.mac = 3861 f->output_data.mac =
3860 (struct mac_output *) xmalloc (sizeof (struct mac_output)); 3862 (struct mac_output *) xmalloc (sizeof (struct mac_output));
diff --git a/src/puresize.h b/src/puresize.h
index 4b88283d8dd..f5b675055b8 100644
--- a/src/puresize.h
+++ b/src/puresize.h
@@ -43,7 +43,7 @@ Boston, MA 02110-1301, USA. */
43#endif 43#endif
44 44
45#ifndef BASE_PURESIZE 45#ifndef BASE_PURESIZE
46#define BASE_PURESIZE (1164000 + SYSTEM_PURESIZE_EXTRA + SITELOAD_PURESIZE_EXTRA) 46#define BASE_PURESIZE (1170000 + SYSTEM_PURESIZE_EXTRA + SITELOAD_PURESIZE_EXTRA)
47#endif 47#endif
48 48
49/* Increase BASE_PURESIZE by a ratio depending on the machine's word size. */ 49/* Increase BASE_PURESIZE by a ratio depending on the machine's word size. */