Changeset 4210 for trunk/lisp/textmodes/ispell.el
- Timestamp:
- 06/02/07 09:29:41 (1 year ago)
- Files:
-
- trunk/lisp/textmodes/ispell.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/textmodes/ispell.el
r4196 r4210 1670 1670 ;; into a single place. 1671 1671 (ispell-insert-word new-word) 1672 (delete-region (point) (+ (point) (- end start)))1672 (delete-region (point) end) 1673 1673 ;; It is meaningless to preserve the cursor position 1674 1674 ;; inside a word that has changed. … … 1752 1752 (list "" (point) (point)) 1753 1753 (error "No word found to check!")) 1754 (setq start ( match-beginning 0)1755 end (point )1754 (setq start (copy-marker (match-beginning 0)) 1755 end (point-marker) 1756 1756 word (buffer-substring-no-properties start end)) 1757 1757 (list word start end)))) … … 2484 2484 "Start the ispell process, with support for no asynchronous processes. 2485 2485 Keeps argument list for future ispell invocations for no async support." 2486 (let (args) 2486 (let ((default-directory default-directory) 2487 args) 2488 (unless (and (file-directory-p default-directory) 2489 (file-readable-p default-directory)) 2490 ;; Defend against bad `default-directory'. 2491 (setq default-directory (expand-file-name "~/"))) 2487 2492 ;; Local dictionary becomes the global dictionary in use. 2488 2493 (setq ispell-current-dictionary
