/[climacs]/climacs/packages.lisp
ViewVC logotype

Contents of /climacs/packages.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.101 - (hide annotations)
Mon Jul 3 15:46:53 2006 UTC (7 years, 9 months ago) by thenriksen
Branch: MAIN
Changes since 1.100: +1 -0 lines
Added `just-n-spaces' function.
1 strandh 1.1 ;;; -*- Mode: Lisp; Package: COMMON-LISP-USER -*-
2    
3 mvilleneuve 1.29 ;;; (c) copyright 2004-2005 by
4 strandh 1.6 ;;; Robert Strandh (strandh@labri.fr)
5 mvilleneuve 1.29 ;;; (c) copyright 2005 by
6     ;;; Matthieu Villeneuve (matthieu.villeneuve@free.fr)
7 strandh 1.1
8     ;;; This library is free software; you can redistribute it and/or
9     ;;; modify it under the terms of the GNU Library General Public
10     ;;; License as published by the Free Software Foundation; either
11     ;;; version 2 of the License, or (at your option) any later version.
12     ;;;
13     ;;; This library is distributed in the hope that it will be useful,
14     ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15     ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16     ;;; Library General Public License for more details.
17     ;;;
18     ;;; You should have received a copy of the GNU Library General Public
19     ;;; License along with this library; if not, write to the
20     ;;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21     ;;; Boston, MA 02111-1307 USA.
22    
23     ;;; Package definitions for the Climacs editor.
24    
25     (defpackage :climacs-buffer
26 abakic 1.41 (:use :clim-lisp :flexichain :binseq)
27 strandh 1.1 (:export #:buffer #:standard-buffer
28     #:mark #:left-sticky-mark #:right-sticky-mark
29     #:standard-left-sticky-mark #:standard-right-sticky-mark
30 rstrandh 1.50 #:clone-mark
31     #:no-such-offset #:offset-before-beginning #:offset-after-end
32     #:invalid-motion #:motion-before-beginning #:motion-after-end
33     #:size #:number-of-lines
34 strandh 1.1 #:offset #:mark< #:mark<= #:mark= #:mark> #:mark>=
35 thenriksen 1.100 #:forward-object
36     #:backward-object
37     #:forward-line-start #:backward-line-start
38     #:forward-line-end #:backward-line-end
39 strandh 1.1 #:beginning-of-buffer #:end-of-buffer
40     #:beginning-of-buffer-p #:end-of-buffer-p
41     #:beginning-of-line #:end-of-line
42     #:beginning-of-line-p #:end-of-line-p
43 mvilleneuve 1.31 #:buffer-line-number #:buffer-column-number
44 strandh 1.1 #:line-number #:column-number
45 strandh 1.3 #:insert-buffer-object #:insert-buffer-sequence
46 thenriksen 1.90 #:buffer-substring
47 abakic 1.24 #:insert-object #:insert-sequence
48 strandh 1.3 #:delete-buffer-range #:delete-range
49 strandh 1.1 #:delete-region
50 strandh 1.3 #:buffer-object #:buffer-sequence
51 rstrandh 1.7 #:object-before #:object-after #:region-to-sequence
52 abakic 1.41 #:low-mark #:high-mark #:modified-p #:clear-modify
53 abakic 1.56 #:binseq-buffer #:obinseq-buffer #:binseq2-buffer
54 abakic 1.51 #:persistent-left-sticky-mark #:persistent-right-sticky-mark
55 abakic 1.56 #:persistent-left-sticky-line-mark #:persistent-right-sticky-line-mark
56     #:p-line-mark-mixin #:buffer-line-offset
57 thenriksen 1.100 #:delegating-buffer #:implementation))
58 abakic 1.51
59 thenriksen 1.100 (defpackage :climacs-kill-ring
60     (:use :clim-lisp :flexichain)
61     (:export #:kill-ring
62     #:kill-ring-length #:kill-ring-max-size
63     #:append-next-p
64     #:reset-yank-position #:rotate-yank-position #:kill-ring-yank
65     #:kill-ring-standard-push #:kill-ring-concatenating-push
66     #:kill-ring-reverse-concatenating-push))
67 strandh 1.1
68     (defpackage :climacs-base
69 thenriksen 1.100 (:use :clim-lisp :climacs-buffer :climacs-kill-ring)
70 mvilleneuve 1.28 (:export #:do-buffer-region
71 thenriksen 1.87 #:do-buffer-region-lines
72 rstrandh 1.25 #:previous-line #:next-line
73 mvilleneuve 1.35 #:empty-line-p
74     #:line-indentation
75 mvilleneuve 1.36 #:buffer-display-column
76 rstrandh 1.11 #:number-of-lines-in-region
77 thenriksen 1.100 #:constituentp
78 thenriksen 1.101 #:just-n-spaces
79 strandh 1.4 #:forward-word #:backward-word
80 mvilleneuve 1.43 #:buffer-region-case
81 rstrandh 1.17 #:input-from-stream #:output-to-stream
82 rstrandh 1.20 #:name-mixin #:name
83 abakic 1.49 #:buffer-looking-at #:looking-at
84 rstrandh 1.20 #:buffer-search-forward #:buffer-search-backward
85 abakic 1.73 #:buffer-re-search-forward #:buffer-re-search-backward
86     #:search-forward #:search-backward
87 thenriksen 1.100 #:re-search-forward #:re-search-backward
88     #:*kill-ring*))
89 strandh 1.1
90 strandh 1.2 (defpackage :climacs-abbrev
91     (:use :clim-lisp :clim :climacs-buffer :climacs-base)
92     (:export #:abbrev-expander #:dictionary-abbrev-expander #:dictionary
93 rstrandh 1.27 #:expand-abbrev #:abbrev-mixin #:possibly-expand-abbrev
94     #:add-abbrev))
95 strandh 1.2
96 rstrandh 1.8 (defpackage :climacs-syntax
97 rstrandh 1.16 (:use :clim-lisp :clim :climacs-buffer :climacs-base :flexichain)
98 rstrandh 1.30 (:export #:syntax #:define-syntax
99 thenriksen 1.88 #:eval-option
100     #:define-option-for-syntax
101 dmurray 1.78 #:syntax-from-name
102 rstrandh 1.32 #:basic-syntax
103 rstrandh 1.46 #:update-syntax #:update-syntax-for-display
104 rstrandh 1.57 #:grammar #:grammar-rule #:add-rule
105     #:parser #:initial-state
106 rstrandh 1.53 #:advance-parse
107 rstrandh 1.57 #:parse-tree #:start-offset #:end-offset
108     #:lexer #:nb-lexemes #:lexeme #:insert-lexeme
109     #:incremental-lexer #:next-lexeme
110     #:delete-invalid-lexemes #:inter-lexeme-object-p
111     #:skip-inter-lexeme-objects #:update-lex
112 rstrandh 1.55 #:parse-stack-top #:target-parse-tree #:parse-state-empty-p
113 rstrandh 1.53 #:parse-stack-next #:parse-stack-symbol
114     #:parse-stack-parse-trees #:map-over-parse-trees
115 rstrandh 1.63 #:no-such-operation #:no-expression
116 dmurray 1.82 #:name-for-info-pane
117 mvilleneuve 1.35 #:syntax-line-indentation
118 rstrandh 1.63 #:forward-expression #:backward-expression
119 rstrandh 1.64 #:eval-defun
120 dmurray 1.74 #:beginning-of-definition #:end-of-definition
121 rstrandh 1.58 #:redisplay-pane-with-syntax
122 dmurray 1.74 #:backward-paragraph #:forward-paragraph
123     #:backward-sentence #:forward-sentence
124 dmurray 1.75 #:forward-list #:backward-list
125     #:down-list #:up-list
126     #:backward-down-list #:backward-up-list
127 rstrandh 1.72 #:syntax-line-comment-string
128     #:line-comment-region #:comment-region
129 thenriksen 1.100 #:line-uncomment-region #:uncomment-region
130     #:word-constituentp
131     #:whitespacep
132     #:page-delimiter
133     #:paragraph-delimiter))
134 ejohnson 1.12
135 rstrandh 1.40 (defpackage :undo
136     (:use :common-lisp)
137     (:export #:no-more-undo
138     #:undo-tree #:standard-undo-tree
139     #:undo-record #:standard-undo-record
140     #:add-undo #:flip-undo-record #:undo #:redo))
141    
142 rstrandh 1.32 (defpackage :climacs-pane
143     (:use :clim-lisp :clim :climacs-buffer :climacs-base :climacs-abbrev
144 dmurray 1.96 :climacs-syntax :flexichain :undo)
145 dmurray 1.92 (:export #:climacs-buffer #:needs-saving
146     #:filepath #:file-saved-p #:file-write-time
147 dmurray 1.79 #:read-only-p #:buffer-read-only
148 rstrandh 1.32 #:climacs-pane #:point #:mark
149 thenriksen 1.89 #:clear-cache
150 rstrandh 1.32 #:redisplay-pane #:full-redisplay
151 dmurray 1.77 #:display-cursor
152 dmurray 1.93 #:display-region
153 rstrandh 1.32 #:page-down #:page-up
154 rstrandh 1.54 #:top #:bot
155     #:tab-space-count #:space-width #:tab-width
156 mvilleneuve 1.35 #:indent-tabs-mode
157 mvilleneuve 1.36 #:auto-fill-mode #:auto-fill-column
158 mvilleneuve 1.44 #:isearch-state #:search-string #:search-mark
159     #:search-forward-p #:search-success-p
160 mvilleneuve 1.38 #:isearch-mode #:isearch-states #:isearch-previous-string
161 mvilleneuve 1.42 #:query-replace-state #:string1 #:string2
162     #:query-replace-mode
163 dmurray 1.93 #:region-visible-p
164 rstrandh 1.40 #:with-undo
165 mretzlaff 1.80 #:url
166     #:climacs-textual-view #:+climacs-textual-view+))
167 rstrandh 1.53
168 thenriksen 1.100 (defpackage :climacs-motion
169     (:use :clim-lisp :clim :climacs-base :climacs-buffer :climacs-syntax)
170     (:export #:forward-to-word-boundary #:backward-to-word-boundary
171     #:define-motion-fns
172     #:beep-limit-action #:revert-limit-action #:error-limit-action
173     #:motion-limit-error
174     #:make-diligent-motor
175    
176     ;; Lines
177     #:forward-one-line
178     #:backward-one-line
179     #:forward-line
180     #:backward-line
181    
182     ;; Words
183     #:forward-one-word
184     #:backward-one-word
185     #:forward-word
186     #:backward-word
187    
188     ;; Pages
189     #:forward-one-page
190     #:backward-one-page
191     #:forward-page
192     #:backward-page
193    
194     ;; Expressions
195     #:forward-one-expression
196     #:backward-one-expression
197     #:forward-expression
198     #:backward-expression
199    
200     ;; Definitions
201     #:forward-one-definition
202     #:backward-one-definition
203     #:forward-definition
204     #:backward-definition
205    
206     ;; Up
207     #:forward-one-up
208     #:backward-one-up
209     #:forward-up
210     #:backward-up
211    
212     ;; Down
213     #:forward-one-down
214     #:backward-one-down
215     #:forward-down
216     #:backward-down
217    
218     ;; Paragraphs
219     #:forward-one-paragraph
220     #:backward-one-paragraph
221     #:forward-paragraph
222     #:backward-paragraph
223    
224     ;; Sentences
225     #:forward-one-sentence
226     #:backward-one-sentence
227     #:forward-sentence
228     #:backward-sentence))
229    
230     (defpackage :climacs-editing
231     (:use :clim-lisp :clim :climacs-base :climacs-buffer
232     :climacs-syntax :climacs-motion :climacs-pane :climacs-kill-ring)
233     (:export #:transpose-objects
234     #:open-line
235    
236     ;; Lines
237     #:forward-delete-line #:backward-delete-line
238     #:forward-kill-line #:backward-kill-line
239     #:transpose-lines
240     #:forward-delete-line-start #:backward-delete-line-start
241     #:forward-kill-line-start #:backward-kill-line-start
242     #:transpose-line-starts
243    
244     ;; Words
245     #:forward-delete-word #:backward-delete-word
246     #:forward-kill-word #:backward-kill-word
247     #:transpose-words
248    
249     ;; Pages
250     #:forward-delete-page #:backward-delete-page
251     #:forward-kill-page #:backward-kill-page
252     #:transpose-page
253    
254     ;; Expressions
255     #:forward-delete-expression #:backward-delete-expression
256     #:forward-kill-expression #:backward-kill-expression
257     #:transpose-expressions
258    
259     ;; Definitions
260     #:forward-delete-definition #:backward-delete-definition
261     #:forward-kill-definition #:backward-kill-definition
262     #:transpose-definitions
263    
264     ;; Paragraphs
265     #:forward-delete-paragraph #:backward-delete-paragraph
266     #:forward-kill-paragraph #:backward-kill-paragraph
267     #:transpose-paragraphs
268    
269     ;; Sentences
270     #:forward-delete-sentence #:backward-delete-sentence
271     #:forward-kill-sentence #:backward-kill-sentence
272     #:transpose-sentences
273    
274     #:downcase-buffer-region #:downcase-region
275     #:upcase-buffer-region #:upcase-region
276     #:downcase-word #:upcase-word
277     #:capitalize-buffer-region #:capitalize-region
278     #:capitalize-word
279     #:tabify-region #:untabify-region
280     #:indent-line
281     #:indent-region
282     #:delete-indentation
283     #:fill-line
284     #:fill-region))
285    
286 thenriksen 1.84 (defpackage :climacs-gui
287 tmoore 1.85 (:use :clim-lisp :clim :climacs-buffer :climacs-base
288 thenriksen 1.100 :climacs-abbrev :climacs-syntax :climacs-motion
289     :climacs-kill-ring :climacs-pane :clim-extensions
290     :undo :esa :climacs-editing :climacs-motion)
291 thenriksen 1.84 ;;(:import-from :lisp-string)
292     (:export :climacs ; Main entry point.
293     ;; GUI functions follow.
294 thenriksen 1.91 :climacs-rv ; Entry point with alternate colors.
295 thenriksen 1.84 :current-window
296 thenriksen 1.99 :current-point
297     :current-buffer
298 thenriksen 1.97 :current-buffer
299 thenriksen 1.84 :point
300     :syntax
301     :mark
302 thenriksen 1.100 :insert-character
303     :base-table
304     :buffer-table
305     :case-table
306     :comment-table
307     :deletion-table
308     :development-table
309     :editing-table
310     :fill-table
311     :indent-table
312     :info-table
313     :marking-table
314     :movement-table
315     :pane-table
316     :search-table
317     :self-insert-table
318     :window-table))
319    
320     (defpackage :climacs-motion-commands
321     (:use :clim-lisp :clim :climacs-base :climacs-buffer
322     :climacs-syntax :climacs-motion :climacs-gui :esa)
323     (:export #:define-motion-commands))
324    
325     (defpackage :climacs-editing-commands
326     (:use :clim-lisp :clim :climacs-base :climacs-buffer
327     :climacs-syntax :climacs-motion :climacs-gui
328     :esa :climacs-editing :climacs-kill-ring)
329     (:export #:define-deletion-commands
330     #:define-editing-commands))
331 thenriksen 1.84
332 thenriksen 1.95 (defpackage :climacs-fundamental-syntax
333     (:use :clim-lisp :clim :climacs-buffer :climacs-base
334     :climacs-syntax :flexichain :climacs-pane)
335     (:export #:fundamental-syntax))
336    
337 rstrandh 1.53 (defpackage :climacs-html-syntax
338     (:use :clim-lisp :clim :climacs-buffer :climacs-base
339     :climacs-syntax :flexichain :climacs-pane))
340 rstrandh 1.32
341 crhodes 1.60 (defpackage :climacs-prolog-syntax
342     (:use :clim-lisp :clim :climacs-buffer :climacs-base
343     :climacs-syntax :flexichain :climacs-pane)
344 tmoore 1.85 (:shadow #:atom #:close #:exp #:integer #:open #:variable))
345 pfong 1.61
346     (defpackage :climacs-cl-syntax
347 rstrandh 1.63 (:use :clim-lisp :clim :climacs-buffer :climacs-base
348     :climacs-syntax :flexichain :climacs-pane)
349     (:export))
350    
351     (defpackage :climacs-lisp-syntax
352 tmoore 1.85 (:use :clim-lisp :clim :clim-extensions :climacs-buffer :climacs-base
353 thenriksen 1.100 :climacs-syntax :flexichain :climacs-pane :climacs-gui :climacs-motion :climacs-editing)
354     (:export :lisp-string))

  ViewVC Help
Powered by ViewVC 1.1.5