aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-11-28 02:31:53 +0000
committerLuc Teirlinck2004-11-28 02:31:53 +0000
commit9e66b14a65aaf2951e2b4ff763b4cfb7dc3e8d02 (patch)
treeea5ea0b525ebf6d65c3790dbd43491cfb84e1348
parentf748174960b647c3673762385412c625521845df (diff)
downloademacs-9e66b14a65aaf2951e2b4ff763b4cfb7dc3e8d02.tar.gz
emacs-9e66b14a65aaf2951e2b4ff763b4cfb7dc3e8d02.zip
(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.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/fringe.el34
2 files changed, 26 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c8b0cdd2942..911c39fd0df 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12004-11-27 Luc Teirlinck <teirllm@auburn.edu>
2
3 * fringe.el (fringe-indicators): Add fake defvar to avoid compiler
4 warning. Delay real definition, which uses
5 `set-fringe-indicators-1' till after the definition of that
6 function.
7
12004-11-28 Kim F. Storm <storm@cua.dk> 82004-11-28 Kim F. Storm <storm@cua.dk>
2 9
3 * fringe.el (fringe): New defgroup. 10 * fringe.el (fringe): New defgroup.
diff --git a/lisp/fringe.el b/lisp/fringe.el
index ce207cc8517..3f1e9393136 100644
--- a/lisp/fringe.el
+++ b/lisp/fringe.el
@@ -1,6 +1,6 @@
1;;; fringe.el --- change fringes appearance in various ways 1;;; fringe.el --- change fringes appearance in various ways
2 2
3;; Copyright (C) 2002, 2003 Free Software Foundation, Inc. 3;; Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
4 4
5;; Author: Simon Josefsson <simon@josefsson.org> 5;; Author: Simon Josefsson <simon@josefsson.org>
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -257,20 +257,10 @@ SIDE must be the symbol `left' or `right'."
257 0) 257 0)
258 (float (frame-char-width)))) 258 (float (frame-char-width))))
259 259
260 260;; Fake defvar. Real definition using defcustom is below. The fake
261;;;###autoload 261;; defvar is necessary because `fringe-indicators' and
262(defcustom fringe-indicators nil 262;; `set-fringe-indicators-1' mutually use each other.
263 "Visually indicate buffer boundaries and scrolling. 263(defvar fringe-indicators)
264Setting this variable, changes `default-indicate-buffer-boundaries'."
265 :type '(choice (const :tag "No indicators" nil)
266 (const :tag "On left" left)
267 (const :tag "On right" right)
268 (const :tag "Opposite, no arrows" box)
269 (const :tag "Opposite, arrows right" mixed)
270 (const :tag "Empty lines" empty))
271 :group 'fringe
272 :require 'fringe
273 :set 'set-fringe-indicators-1)
274 264
275(defun set-fringe-indicators-1 (ignore value) 265(defun set-fringe-indicators-1 (ignore value)
276 "Set fringe indicators according to VALUE. 266 "Set fringe indicators according to VALUE.
@@ -290,6 +280,20 @@ This is usually invoked when setting `fringe-indicators' via customize."
290 nil) 280 nil)
291 (t nil)))) 281 (t nil))))
292 282
283;;;###autoload
284(defcustom fringe-indicators nil
285 "Visually indicate buffer boundaries and scrolling.
286Setting this variable, changes `default-indicate-buffer-boundaries'."
287 :type '(choice (const :tag "No indicators" nil)
288 (const :tag "On left" left)
289 (const :tag "On right" right)
290 (const :tag "Opposite, no arrows" box)
291 (const :tag "Opposite, arrows right" mixed)
292 (const :tag "Empty lines" empty))
293 :group 'fringe
294 :require 'fringe
295 :set 'set-fringe-indicators-1)
296
293(provide 'fringe) 297(provide 'fringe)
294 298
295;;; arch-tag: 6611ef60-0869-47ed-8b93-587ee7d3ff5d 299;;; arch-tag: 6611ef60-0869-47ed-8b93-587ee7d3ff5d