Changeset 7564
- Timestamp:
- 09/05/04 00:12:25 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/examples/complete.lisp
r6483 r7564 2 2 ;;; 3 3 ;;; Copyright (C) 2004 Peter Graves 4 ;;; $Id: complete.lisp,v 1. 1 2004-04-13 15:22:08piso Exp $4 ;;; $Id: complete.lisp,v 1.2 2004-09-05 00:12:25 piso Exp $ 5 5 ;;; 6 6 ;;; This program is free software; you can redistribute it and/or … … 51 51 (defun completion-prefix () 52 52 (let* ((string (line-chars (current-line))) 53 (end (mark er-charpos (point))))53 (end (mark-charpos (current-point)))) 54 54 (do ((start (1- end) (1- start))) 55 55 ((< start 0) (subseq string 0 end)) … … 75 75 (when *completions* 76 76 (let ((completion (string-downcase (nth *completion-index* *completions*))) 77 (point ( point)))77 (point (current-point))) 78 78 (with-single-undo 79 (goto-char (make-mark er (marker-line point)80 (- (marker-charpos point) (length *prefix*))))79 (goto-char (make-mark (mark-line point) 80 (- (mark-charpos point) (length *prefix*)))) 81 81 (set-mark point) 82 82 (delete-region)
Note: See TracChangeset
for help on using the changeset viewer.