annotate lisp/obsolete/hscroll.el @ 54051:668c0f8ab92b

*** empty log message ***
author Kim F. Storm <storm@cua.dk>
date Tue, 17 Feb 2004 21:06:22 +0000
parents 695cf19ef79e
children 18a818a2ee7c 375f2633d815
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34421
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
1 ;;; hscroll.el --- automatically scroll truncated lines horizontally
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
2 ;;; Copyright (C) 1992, 1993, 1995, 1996 Free Software Foundation, Inc.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
3
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
4 ;; Author: Wayne Mesard <wmesard@esd.sgi.com>
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
5 ;; Keywords: display
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
6
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
7 ;; This file is part of GNU Emacs.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
8
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
12 ;; any later version.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
13
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
14 ;; GNU Emacs is distributed in the hope that it will be useful,
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
17 ;; GNU General Public License for more details.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
18
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
22 ;; Boston, MA 02111-1307, USA.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
23
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
24 ;;; Commentary:
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
25 ;;
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
26 ;; This file contains dummy variables and functions only because Emacs
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
27 ;; does hscrolling automatically, now.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
28
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
29 ;;; Code:
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
30
49598
0d8b17d428b5 Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 34421
diff changeset
31 ;;;
34421
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
32 ;;; PUBLIC VARIABLES
49598
0d8b17d428b5 Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 34421
diff changeset
33 ;;;
34421
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
34
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
35 (defvar hscroll-version "0.0")
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
36
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
37 (defgroup hscroll nil
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
38 "This customization group is kept for compatibility only.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
39 Emacs now does hscrolling automatically. Please remove references
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
40 to hscroll from your init file and code."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
41 :group 'editing)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
42
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
43
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
44 (defcustom hscroll-global-mode nil
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
45 "*Obsolete."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
46 :group 'hscroll
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
47 :type 'boolean
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
48 :require 'hscroll
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
49 :version "20.3")
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
50
49598
0d8b17d428b5 Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 34421
diff changeset
51 (defcustom hscroll-margin 5
34421
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
52 "*Obsolete."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
53 :group 'hscroll
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
54 :type 'integer)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
55
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
56 (defcustom hscroll-snap-threshold 30
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
57 "*Obsolete."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
58 :group 'hscroll
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
59 :type 'integer)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
60
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
61 (defcustom hscroll-step-percent 25
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
62 "*Obsolete."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
63 :group 'hscroll
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
64 :type 'integer)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
65
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
66 (defcustom hscroll-mode-name " Hscr"
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
67 "*Obsolete."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
68 :group 'hscroll
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
69 :type 'string)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
70
49598
0d8b17d428b5 Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 34421
diff changeset
71 ;;;
34421
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
72 ;;; PUBLIC COMMANDS
49598
0d8b17d428b5 Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 34421
diff changeset
73 ;;;
34421
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
74
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
75 ;;;###autoload
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
76 (defun turn-on-hscroll ()
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
77 "This function is obsolete.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
78 Emacs now does hscrolling automatically, if `truncate-lines' is non-nil.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
79 Also see `automatic-hscrolling'.")
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
80
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
81 ;;;###autoload
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
82 (defun hscroll-mode (&optional arg)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
83 "This function is obsolete.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
84 Emacs now does hscrolling automatically, if `truncate-lines' is non-nil.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
85 Also see `automatic-hscrolling'."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
86 (interactive "P"))
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
87
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
88 ;;;###autoload
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
89 (defun hscroll-global-mode (&optional arg)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
90 "This function is obsolete.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
91 Emacs now does hscrolling automatically, if `truncate-lines' is non-nil.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
92 Also see `automatic-hscrolling'."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
93 (interactive "P"))
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
94
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
95 (defun hscroll-window-maybe ()
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
96 "This function is obsolete.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
97 Emacs now does hscrolling automatically, if `truncate-lines' is non-nil.
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
98 Also see `automatic-hscrolling'."
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
99 (interactive))
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
100
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
101 (provide 'hscroll)
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
102
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49598
diff changeset
103 ;;; arch-tag: 48377520-e5ca-401d-b360-3881b2d5a05a
34421
6c79e7c27d9b Moved here from lisp/.
Gerd Moellmann <gerd@gnu.org>
parents:
diff changeset
104 ;;; hscroll.el ends here