Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
climacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
climacs
climacs
Commits
36079d56
Commit
36079d56
authored
Sep 04, 2006
by
Troels Henriksen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `move-to-column' function to CLIMACS-BASE.
parent
dc9cac28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
base.lisp
base.lisp
+11
-0
packages.lisp
packages.lisp
+1
-0
No files found.
base.lisp
View file @
36079d56
...
...
@@ -266,6 +266,17 @@ spaces. `Mark' will be moved to after any spaces inserted."
(
-
existing-spaces
n
))
mark1
))))))
(
defun
move-to-column
(
mark
column
&optional
force
)
"Move the position of `mark' to column number `column'. If the
line is too short, put `mark' at end of line, unless `force' is
non-NIL, in which case spaces will be added to the end of the
line."
(
let
((
set-column
(
setf
(
column-number
mark
)
column
)))
(
when
(
and
(
not
(
=
set-column
column
))
force
)
(
insert-sequence
mark
(
make-string
(
-
column
set-column
)
:initial-element
#\Space
)))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Character case
...
...
packages.lisp
View file @
36079d56
...
...
@@ -89,6 +89,7 @@
#:number-of-lines-in-region
#:constituentp
#:just-n-spaces
#:move-to-column
#:buffer-whitespacep
#:buffer-region-case
#:name-mixin
#:name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment