トップ «前の日(09-11) 最新 次の日(09-13)» 追記

猫熊は燃えつきた?!日記

最近なんにもやっていませんが、なにかやったらこちらに置くようにしています。
2002|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|
2011|09|
2012|02|


2003-09-12 (Fri) 軟弱だからすぐ Windows update しちゃう、わたし

だけど

最近は、Windows update だと途中で止っちゃうからパッチを貰ってくるときが多いな。

なんで

MS-Windows の脆弱性のアナウンスはいやというほど流すけど、この前の MS-Office のはアナウンスされないのだろうか?うちの会社って。。。

よし :-)

URI 公開のお許し(?)がでた。「himi っち日記」こと『読んだものの記録』こちら

なんだか

最近、ずーーと ThinkPAD T.20 がみょーに遅いと思っていたら、どうやら 128MByte x 2 のメインメモリのうち片一方がハズレていて swap が大量に発生したようだ。差し直したら直った。

バックライトの不調とかあるので心の中が「動いていれば幸せ」モードになっていたようだ。まぁ、どっちにしろそろそろ寿命だと思うけど ;_;


2007-09-12 (Wed)

日記

も久しぶりだなぁ〜〜。

出張

先週から今週頭にかけては、途中ちょっと除いて、宇都宮の工場に出張していた。

先週は、木曜日の夜に一度帰る予定だったのだけど、台風来ちゃったから工場を 14:30 に出て自宅に 17:00 に到着。次の日は目黒に出社だったのだけど、午前中半休!にしてしまったので、台風のときには一回も傘をさしていないし、めちゃ混みの電車にも乗らずにすんでしまった。 :-)

今週もずーーとの予定だったのだけど、ノルマが終わったので、火曜日でお終い。

以下、

最近やったことのまとめ。基本的に忙しいのと、いまだにモヤモヤしているので大したことはしていない。

lookup で Wikipedia

伊藤さんの wikipedia-fpw を使って、epwing 化した Wikipedia を作ってみた。ebzip -l 5 をかけて
% du -k WIKIP/
599217	WIKIP/WIKIP/data
1	WIKIP/WIKIP/gaiji
599219	WIKIP/WIKIP
599243	WIKIP
な感じ。なにか他のものを消せば Zaurus にも入るんだけどなぁ。。。どーしよー。

elscreen-server

森島さんの elscreen-server だけど、Emacs CVS Head が multi-tty をサポートして Emacs 23.0.50 になってからエラーするようになった。
ちょっと手抜きのような気もするのだけどパッチ。
--- elscreen-server.el.old	2006-07-25 18:15:36.000000000 +0900
+++ elscreen-server.el	2007-08-31 13:33:05.000000000 +0900
@@ -42,7 +42,8 @@
  ((fboundp 'server-visit-files)
   ;; For server.el distributed with GNU Emacs
   (defadvice server-visit-files (after elscreen-server-visit-files activate)
-    (elscreen-server-visit-files-new-screen (cdr ad-return-value))))
+    (elscreen-server-visit-files-new-screen (or (cdr ad-return-value)
+						ad-return-value))))
  ((fboundp 'gnuserv-edit-files)
   ;; For (current) gnuserv typically used with XEmacs
   (defadvice gnuserv-edit-files (around elscreen-gnuserv-edit-files activate)
ちと忙しくて報告が遅れたが、森島さんが elscreen の話をする ML には報告しておいた。

Mew でメッセージの横スクロール

一回 Mew-dist に出したものの焼き直しだが、summary での <, > が横スクロールになるのは、message buffer が truncate-lines => t のときだけにして、それ以外の場合は、従来の mew-summary-jump-top|bottom が動く。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
(defcustom mew-message-horizontal-scroll-columns 15
  "*Number of steps in columns used when scrolling a message window horizontally."
  :group 'mew-message
  :type '(integer :size 0))
 
(add-hook 'mew-summary-mode-hook
	  (lambda ()
	    (define-key mew-summary-mode-map "<" 'mew-summary-jump-top-or-scroll-right)
	    (define-key mew-summary-mode-map ">" 'mew-summary-jump-bottom-or-scroll-left)))
 
(add-hook 'mew-message-mode-hook
	  (lambda ()
	    (define-key mew-message-mode-map "<" 'mew-message-scroll-right)
	    (define-key mew-message-mode-map ">" 'mew-message-scroll-left)))
 
(cond
 ((boundp 'auto-hscroll-mode) ;; Emacs 21.3.50 or later
  (defsubst mew-hscroll-off ()
    (set (make-local-variable 'auto-hscroll-mode) nil))
  (defsubst mew-hscroll-type ()
    (if auto-hscroll-mode 'on 'off)))
 ((boundp 'automatic-hscrolling) ;; Emacs 21.3 or earlier
  (defsubst mew-hscroll-off ()
    (set (make-local-variable 'automatic-hscrolling) nil))
  (defsubst mew-hscroll-type ()
    (if automatic-hscrolling 'on 'off)))
 (t
  (defsubst mew-hscroll-off () (auto-show-mode 0))
  (defsubst mew-hscroll-type ()
    (if auto-show-mode 'on 'off))))
 
(defvar mew-hscroll-type nil)
(make-variable-buffer-local 'mew-hscroll-type)
 
(defadvice mew-normal-line (before hscroll-off activate)
  (when (eq mew-hscroll-type 'on)
    (mew-hscroll))
  (let ((fld (mew-minfo-get-summary)))
    (when (and fld (get-buffer fld))
      (save-excursion
	(set-buffer fld)
	(when (eq mew-hscroll-type 'on)
	  (mew-hscroll))))))
 
(defun mew-summary-jump-bottom-or-scroll-left (arg)
  "Scroll the message window to the left."
  (interactive "P")
  (unless (and (mew-buffer-message)
	       (get-buffer-window (mew-buffer-message))
	       (mew-summary-msg-or-part
		(unless mew-hscroll-type
		  (setq mew-hscroll-type (mew-hscroll-type)))
		(mew-hscroll-off)
		(let ((win (selected-window))
		      ret)
		  (unwind-protect
		      (progn
			(mew-summary-toggle-disp-msg 'on)
			(if (memq last-command '(mew-summary-jump-bottom-or-scroll-left
						 mew-summary-jump-top-or-scroll-right))
			    (when (get-buffer-window (mew-buffer-message))
			      (select-window (get-buffer-window (mew-buffer-message))))
			  (mew-window-configure 'message))
			(setq ret (mew-message-scroll-left arg)))
		    (select-window win)
		    ret))))
    (call-interactively 'mew-summary-jump-bottom)))
 
(defun mew-summary-jump-top-or-scroll-right (arg)
  "Scroll the message window to the right."
  (interactive "P")
  (unless (and (mew-buffer-message)
	       (get-buffer-window (mew-buffer-message))
	       (mew-summary-msg-or-part
		(unless mew-hscroll-type
		  (setq mew-hscroll-type (mew-hscroll-type)))
		(mew-hscroll-off)
		(let ((win (selected-window))
		      ret)
		  (unwind-protect
		      (progn
			(mew-summary-toggle-disp-msg 'on)
			(if (memq last-command '(mew-summary-jump-bottom-or-scroll-left
						 mew-summary-jump-top-or-scroll-right))
			    (when (get-buffer-window (mew-buffer-message))
			      (select-window (get-buffer-window (mew-buffer-message))))
			  (mew-window-configure 'message))
			(setq ret (mew-message-scroll-right arg)))
		    (select-window win)
		    ret))))
    (call-interactively 'mew-summary-jump-top)))
 
(defun mew-message-scroll-left (arg)
  "Scroll the message window to the left."
  (interactive "P")
  (mew-message-horizontal-scroll
   'left (if arg
	     (prefix-numeric-value arg)
	   mew-message-horizontal-scroll-columns)))
 
(defun mew-message-scroll-right (arg)
  "Scroll the message window to the right."
  (interactive "P")
  (mew-message-horizontal-scroll
   'right (if arg
	      (prefix-numeric-value arg)
	    mew-message-horizontal-scroll-columns)))
 
(defun mew-message-horizontal-scroll (direction ncol)
  "Scroll the message window NCOL columns horizontally to DIRECTION.
DIRECTON should be the symbol `left' which specifies to scroll to the
left, or any other Lisp object meaning to scroll to the right.  NCOL
should be a number. "
  (when truncate-lines
    (let ((inhibit-point-motion-hooks t))
      (unless mew-hscroll-type
	(setq mew-hscroll-type (mew-hscroll-type)))
      (mew-hscroll-off)
      (set-window-hscroll (selected-window)
			  (max 0 (+ (window-hscroll)
				    (if (eq direction 'left) ncol (- ncol)))))
      (let ((hs (window-hscroll)))
	(unless (and (>= (- (current-column) hs) 0)
		     (< (- (current-column) hs) (window-width)))
	  (move-to-column (if (eq direction 'left)
			      hs
			    (+ hs (window-width) -2))))
	hs))))    

書いている人: 白井秀行 (mailto:shirai@meadowy。org)
訪問して下さった人: 今日: 人, 昨日: , 過去: 人 (2007年5月10日から)
RDF Feed