Changeset 7564


Ignore:
Timestamp:
09/05/04 00:12:25 (19 years ago)
Author:
piso
Message:

POINT => CURRENT-POINT
MARKER => MARK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/examples/complete.lisp

    r6483 r7564  
    22;;;
    33;;; Copyright (C) 2004 Peter Graves
    4 ;;; $Id: complete.lisp,v 1.1 2004-04-13 15:22:08 piso Exp $
     4;;; $Id: complete.lisp,v 1.2 2004-09-05 00:12:25 piso Exp $
    55;;;
    66;;; This program is free software; you can redistribute it and/or
     
    5151(defun completion-prefix ()
    5252  (let* ((string (line-chars (current-line)))
    53          (end (marker-charpos (point))))
     53         (end (mark-charpos (current-point))))
    5454    (do ((start (1- end) (1- start)))
    5555        ((< start 0) (subseq string 0 end))
     
    7575  (when *completions*
    7676    (let ((completion (string-downcase (nth *completion-index* *completions*)))
    77           (point (point)))
     77          (point (current-point)))
    7878      (with-single-undo
    79         (goto-char (make-marker (marker-line point)
    80                                 (- (marker-charpos point) (length *prefix*))))
     79        (goto-char (make-mark (mark-line point)
     80                              (- (mark-charpos point) (length *prefix*))))
    8181        (set-mark point)
    8282        (delete-region)
Note: See TracChangeset for help on using the changeset viewer.