- 662 名前:659 mailto:sage [2005/10/29(土) 00:04:49 ]
- >>660 san
そうですよね。 ;; [ 2005-10-28 (00:38) ] (defun kill-ring-save-visible (beg end) (interactive "r" ) (let ((s "") from to) (save-excursion (save-restriction (narrow-to-region beg end) (setq from (goto-char (point-min))) (while (not (eobp)) (if (point-invisible-p) (progn (setq to (point)) (setq s (concat s (buffer-substring-no-properties from to))) (end-of-visible-line) (setq from (point))) (forward-char))) (if (> (setq to (point)) from) (setq s (concat s (buffer-substring-no-properties from to)))) (kill-new s))))) invisible になるまで1文字ずつ進まないようにしてるので、ここら辺はもうちょっと 速くなるかもしれません。
|

|