]> git.eshelyaron.com Git - emacs.git/commitdiff
(fringe-indicators): Add fake defvar to avoid compiler warning. Delay
authorLuc Teirlinck <teirllm@auburn.edu>
Sun, 28 Nov 2004 02:31:53 +0000 (02:31 +0000)
committerLuc Teirlinck <teirllm@auburn.edu>
Sun, 28 Nov 2004 02:31:53 +0000 (02:31 +0000)
real definition, which uses `set-fringe-indicators-1' till after the
definition of that function.

lisp/ChangeLog
lisp/fringe.el

index c8b0cdd2942cce3e0ce326547e4f50f343d1eaf6..911c39fd0dff0763714e0214b87b2d7eb1156527 100644 (file)
@@ -1,3 +1,10 @@
+2004-11-27  Luc Teirlinck  <teirllm@auburn.edu>
+
+       * fringe.el (fringe-indicators): Add fake defvar to avoid compiler
+       warning.  Delay real definition, which uses
+       `set-fringe-indicators-1' till after the definition of that
+       function.
+
 2004-11-28  Kim F. Storm  <storm@cua.dk>
 
        * fringe.el (fringe): New defgroup.
index ce207cc85175fd21c3b2f4f32eb10fe47148fe09..3f1e9393136e54a2b1a659c6471bb4e2c0d9a97c 100644 (file)
@@ -1,6 +1,6 @@
 ;;; fringe.el --- change fringes appearance in various ways
 
-;; Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+;; Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
 
 ;; Author: Simon Josefsson <simon@josefsson.org>
 ;; Maintainer: FSF
@@ -257,20 +257,10 @@ SIDE must be the symbol `left' or `right'."
               0)
            (float (frame-char-width))))
 
-
-;;;###autoload
-(defcustom fringe-indicators nil
-  "Visually indicate buffer boundaries and scrolling.
-Setting this variable, changes `default-indicate-buffer-boundaries'."
-  :type '(choice (const :tag "No indicators" nil)
-                (const :tag "On left" left)
-                (const :tag "On right" right)
-                (const :tag "Opposite, no arrows" box)
-                (const :tag "Opposite, arrows right" mixed)
-                (const :tag "Empty lines" empty))
-  :group 'fringe
-  :require 'fringe
-  :set 'set-fringe-indicators-1)
+;; Fake defvar.  Real definition using defcustom is below.  The fake
+;; defvar is necessary because `fringe-indicators' and
+;; `set-fringe-indicators-1' mutually use each other.
+(defvar fringe-indicators)
 
 (defun set-fringe-indicators-1 (ignore value)
   "Set fringe indicators according to VALUE.
@@ -290,6 +280,20 @@ This is usually invoked when setting `fringe-indicators' via customize."
          nil)
         (t nil))))
 
+;;;###autoload
+(defcustom fringe-indicators nil
+  "Visually indicate buffer boundaries and scrolling.
+Setting this variable, changes `default-indicate-buffer-boundaries'."
+  :type '(choice (const :tag "No indicators" nil)
+                (const :tag "On left" left)
+                (const :tag "On right" right)
+                (const :tag "Opposite, no arrows" box)
+                (const :tag "Opposite, arrows right" mixed)
+                (const :tag "Empty lines" empty))
+  :group 'fringe
+  :require 'fringe
+  :set 'set-fringe-indicators-1)
+
 (provide 'fringe)
 
 ;;; arch-tag: 6611ef60-0869-47ed-8b93-587ee7d3ff5d