[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 2chのread.cgiへ]
Update time : 04/03 09:03 / Filesize : 232 KB / Number-of Response : 750
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

xyzzyの使い方が分からぬやし 励ましあえ その12



612 名前:名無しさん@お腹いっぱい。 mailto:sage [2009/12/10(木) 01:04:48 ID:WGO4TcAu0]
矩形選択がうまく選べないバグがあったので、一応修正版

;;; 左ドラッグで選択した領域の文字数(改行を除く)を
;;; ステータスのところに表示するスクリプト。
(defun selection-char-count ()
(interactive)
(let ((start nil) (end nil) (res 0) (seltype (get-selection-type)))
(unless seltype (return-from selection-char-count nil))
(setf start (selection-mark) end (selection-point))
(if (= seltype 2)
(progn
(setf res (length (remove #\LFD (buffer-substring start end))))
(message "文字数: ~A" res)))
(start-selection seltype t start); 関数呼び出しでセレクションが解除されてしまうため、設定しなおす
(goto-char end)))
(global-set-key #\LBtnUp 'selection-char-count)






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<232KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef