comparison lisp/woman.el @ 73060:5d2e9706764f

(woman0-so): Use `let*', not `let'. (woman-horizontal-line): Remove unbalanced parenthesis.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 22 Sep 2006 21:32:25 +0000
parents 1837e6621075
children 959e3f79c94d bb0e318b7c53
comparison
equal deleted inserted replaced
73059:1837e6621075 73060:5d2e9706764f
2655 ;; Cannot find the file, so ... 2655 ;; Cannot find the file, so ...
2656 (kill-buffer (current-buffer)) 2656 (kill-buffer (current-buffer))
2657 (error "File `%s' not found" name)) 2657 (error "File `%s' not found" name))
2658 (beginning-of-line) 2658 (beginning-of-line)
2659 (woman-delete-line 1) 2659 (woman-delete-line 1)
2660 (let ((from (point)) 2660 (let* ((from (point))
2661 (length (woman-insert-file-contents filename 0)) 2661 (length (woman-insert-file-contents filename 0))
2662 (to (copy-marker (+ from length) t))) 2662 (to (copy-marker (+ from length) t)))
2663 (woman-pre-process-region from to) 2663 (woman-pre-process-region from to)
2664 (set-marker to nil) 2664 (set-marker to nil)
2665 (goto-char from) 2665 (goto-char from)
2666 ))) 2666 )))
2667 2667
3969 "\\l'Nc' -- Draw a horizontal line of length N using character c, default _." 3969 "\\l'Nc' -- Draw a horizontal line of length N using character c, default _."
3970 (delete-char -1) 3970 (delete-char -1)
3971 (delete-char 1) 3971 (delete-char 1)
3972 (looking-at "\\(.\\)\\(.*\\)\\1") 3972 (looking-at "\\(.\\)\\(.*\\)\\1")
3973 (forward-char 1) 3973 (forward-char 1)
3974 (let* ((to (match-end 2))) 3974 (let* ((to (match-end 2))
3975 (from (match-beginning 0)) 3975 (from (match-beginning 0))
3976 (N (woman-parse-numeric-arg)) 3976 (N (woman-parse-numeric-arg))
3977 (c (if (< (point) to) (following-char) ?_))) 3977 (c (if (< (point) to) (following-char) ?_)))
3978 (delete-region from to) 3978 (delete-region from to)
3979 (delete-char 1) 3979 (delete-char 1)