aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorStefan Monnier2007-10-10 20:01:26 +0000
committerStefan Monnier2007-10-10 20:01:26 +0000
commitc7a4b95b75c99cca2de4cd4207267170cd07846a (patch)
tree60637e285513aef35c703468a47316f347b772dc /src/frame.c
parentef651d13148228be6071da2eb49397ceac5a15d4 (diff)
downloademacs-c7a4b95b75c99cca2de4cd4207267170cd07846a.tar.gz
emacs-c7a4b95b75c99cca2de4cd4207267170cd07846a.zip
* frame.c (Fframe_with_environment): Remove.
(syms_of_frame) <Sframe_with_environment>: Don't declare. * lisp.h (Fframe_with_environment): Don't declare.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/frame.c b/src/frame.c
index 3709b00dfd6..866bd3fa94b 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2608,43 +2608,6 @@ enabled such bindings for that variable with `make-variable-frame-local'. */)
2608 } 2608 }
2609 return Qnil; 2609 return Qnil;
2610} 2610}
2611
2612DEFUN ("frame-with-environment", Fframe_with_environment, Sframe_with_environment, 0, 1, 0,
2613 doc: /* Return the frame that has the environment variable list for FRAME.
2614
2615The frame-local environment variable list is normally shared between
2616frames that were created in the same Emacsclient session. The
2617environment list is stored in a single frame's 'environment parameter;
2618the other frames' 'environment parameter is set to this frame. This
2619function follows the chain of 'environment references to reach the
2620frame that stores the actual local environment list, and returns that
2621frame. */)
2622 (frame)
2623 Lisp_Object frame;
2624{
2625 Lisp_Object hare, tortoise;
2626
2627 if (NILP (frame))
2628 frame = selected_frame;
2629 CHECK_FRAME (frame);
2630
2631 hare = tortoise = get_frame_param (XFRAME (frame), Qenvironment);
2632 while (!NILP (hare) && FRAMEP (hare))
2633 {
2634 frame = hare;
2635 hare = get_frame_param (XFRAME (hare), Qenvironment);
2636 if (NILP (hare) || !FRAMEP (hare))
2637 break;
2638 frame = hare;
2639 hare = get_frame_param (XFRAME (hare), Qenvironment);
2640 tortoise = get_frame_param (XFRAME (tortoise), Qenvironment);
2641 if (EQ (hare, tortoise))
2642 error ("Cyclic frame-local environment indirection");
2643 }
2644
2645 return frame;
2646}
2647
2648 2611
2649DEFUN ("frame-char-height", Fframe_char_height, Sframe_char_height, 2612DEFUN ("frame-char-height", Fframe_char_height, Sframe_char_height,
2650 0, 1, 0, 2613 0, 1, 0,
@@ -4548,7 +4511,6 @@ automatically. */);
4548 defsubr (&Sframe_parameters); 4511 defsubr (&Sframe_parameters);
4549 defsubr (&Sframe_parameter); 4512 defsubr (&Sframe_parameter);
4550 defsubr (&Smodify_frame_parameters); 4513 defsubr (&Smodify_frame_parameters);
4551 defsubr (&Sframe_with_environment);
4552 defsubr (&Sframe_char_height); 4514 defsubr (&Sframe_char_height);
4553 defsubr (&Sframe_char_width); 4515 defsubr (&Sframe_char_width);
4554 defsubr (&Sframe_pixel_height); 4516 defsubr (&Sframe_pixel_height);