annotate lisp/hscroll.el @ 31801:9de0c3880281

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Thu, 21 Sep 2000 09:07:11 +0000
parents ffb4fe2a1dbc
children c336fb1b43e1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29763
ffb4fe2a1dbc Fix header line.
Dave Love <fx@gnu.org>
parents: 27174
diff changeset
1 ;;; hscroll.el --- automatically scroll truncated lines horizontally
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2 ;;; Copyright (C) 1992, 1993, 1995, 1996 Free Software Foundation, Inc.
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
3
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
4 ;; Author: Wayne Mesard <wmesard@esd.sgi.com>
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
5 ;; Keywords: display
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
6
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7 ;; This file is part of GNU Emacs.
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
11 ;; the Free Software Foundation; either version 2, or (at your option)
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
12 ;; any later version.
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
14 ;; GNU Emacs is distributed in the hope that it will be useful,
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
17 ;; GNU General Public License for more details.
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
18
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
22 ;; Boston, MA 02111-1307, USA.
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
23
23789
7d763e90da82 (hscroll-mode, hscroll-global-mode, hscroll-window-maybe):
Richard M. Stallman <rms@gnu.org>
parents: 21670
diff changeset
24 ;;; Commentary:
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
25 ;;
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
26 ;; This file contains dummy variables and functions only because Emacs
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
27 ;; does hscrolling automatically, now.
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
28
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
29 ;;; Code:
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
30
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
31 ;;;
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
32 ;;; PUBLIC VARIABLES
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
33 ;;;
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
34
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
35 (defvar hscroll-version "0.0")
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
36
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
37 (defgroup hscroll nil
27174
797edf0b0892 (hscroll): Doc fix.
Andreas Schwab <schwab@suse.de>
parents: 25563
diff changeset
38 "This customization group is kept for compatibility only.
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
39 Emacs now does hscrolling automatically. Please remove references
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
40 to hscroll from your init file and code."
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
41 :group 'editing)
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
42
20765
2bdc3877262b (hscroll-global-mode): New customize variable to automatically load the
Stephen Eglen <stephen@gnu.org>
parents: 19420
diff changeset
43
2bdc3877262b (hscroll-global-mode): New customize variable to automatically load the
Stephen Eglen <stephen@gnu.org>
parents: 19420
diff changeset
44 (defcustom hscroll-global-mode nil
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
45 "*Obsolete."
20765
2bdc3877262b (hscroll-global-mode): New customize variable to automatically load the
Stephen Eglen <stephen@gnu.org>
parents: 19420
diff changeset
46 :group 'hscroll
2bdc3877262b (hscroll-global-mode): New customize variable to automatically load the
Stephen Eglen <stephen@gnu.org>
parents: 19420
diff changeset
47 :type 'boolean
21670
808ecc2eaa84 *** empty log message ***
Dan Nicolaescu <done@ece.arizona.edu>
parents: 20765
diff changeset
48 :require 'hscroll
808ecc2eaa84 *** empty log message ***
Dan Nicolaescu <done@ece.arizona.edu>
parents: 20765
diff changeset
49 :version "20.3")
20765
2bdc3877262b (hscroll-global-mode): New customize variable to automatically load the
Stephen Eglen <stephen@gnu.org>
parents: 19420
diff changeset
50
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
51 (defcustom hscroll-margin 5
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
52 "*Obsolete."
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
53 :group 'hscroll
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
54 :type 'integer)
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
55
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
56 (defcustom hscroll-snap-threshold 30
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
57 "*Obsolete."
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
58 :group 'hscroll
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
59 :type 'integer)
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
60
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
61 (defcustom hscroll-step-percent 25
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
62 "*Obsolete."
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
63 :group 'hscroll
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
64 :type 'integer)
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
65
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
66 (defcustom hscroll-mode-name " Hscr"
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
67 "*Obsolete."
19420
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
68 :group 'hscroll
681823a203b6 Customized.
Richard M. Stallman <rms@gnu.org>
parents: 16583
diff changeset
69 :type 'string)
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
70
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
71 ;;;
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
72 ;;; PUBLIC COMMANDS
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
73 ;;;
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
74
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
75 ;;;###autoload
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
76 (defun turn-on-hscroll ()
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
77 "This function is obsolete.")
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
78
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
79 ;;;###autoload
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
80 (defun hscroll-mode (&optional arg)
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
81 "This function is absolete."
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
82 (interactive "P"))
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
83
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
84 ;;;###autoload
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
85 (defun hscroll-global-mode (&optional arg)
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
86 "This function is absolete."
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
87 (interactive "P"))
24939
db6ed843d5e8 (hscroll-minibuffer-hook): New function.
Richard M. Stallman <rms@gnu.org>
parents: 24922
diff changeset
88
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
89 (defun hscroll-window-maybe ()
25563
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
90 "This function is obsolete."
856179ce1645 Remove all code, keep interface.
Gerd Moellmann <gerd@gnu.org>
parents: 24939
diff changeset
91 (interactive))
20765
2bdc3877262b (hscroll-global-mode): New customize variable to automatically load the
Stephen Eglen <stephen@gnu.org>
parents: 19420
diff changeset
92
16583
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
93 (provide 'hscroll)
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
94
483fc45a80b6 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
95 ;;; hscroll.el ends here