lightcyan.area51 | 1 Sep 2010 13:11
Picon

[emacs-w3m:11328] sb-yahoo.el と sb-nikkei.el が動いていないようです。

lightcyanです。

sb-yahoo.el と sb-nikkei.el が記事を取って来れなくなったようです。
sb-cnn-jp.elもサイトの方で更新があったようです。
申し訳ございませんが、確認と修正をお願いいたします。

僕が見ても分からないのでよろしくお願いします(_ _)

--

-- 
lightcyan

Katsumi Yamaoka | 1 Sep 2010 14:16
Favicon
Gravatar

[emacs-w3m:11329] Re: sb-yahoo.el と sb-nikkei.el が動いていないようです。

匿名さま <lightcyan.area51 <at> gmail.com> wrote:
> 僕が見ても分からないのでよろしくお願いします(_ _)

以前から作者さまがたに代わってメンテしておりましたが、たいへん申
し訳ないことに、自分が使う 2〜3 のモジュール以外に手を出す余裕が
ありません。この際ですから匿名さまにも Lisper 目指して頑張ってみ
ることをお勧め申し上げます。
--

-- 
山岡

ishi soichi | 2 Sep 2010 10:01
Picon

[emacs-w3m:11330] w3mが起動しない。MacOS

MacOS 10.6.4

Cocoa Emacs 23

finkによってw3mをインストールしました。
fink list |grep w3m
   emacs-w3m 1.4.4-1006 Simple Emacs interface to w3m
 i w3m 0.5.2-1004 Text-mode WWW browser with tables/frames

emacs-w3m-1.4.4は自分でダウンロードし、./configure , make , sudo make install しました。

.emacsファイルには
(require 'w3m-load)
を書き込んでありますが、Emacsを立ち上げると、

File error: Cannot open load file, w3m-load

というエラーが出ます。なぜなんでしょうか…他に必要なパスなどがありますか?

soichi

lightcyan.area51 | 2 Sep 2010 15:15
Picon

[emacs-w3m:11331] sb-yahoo.el 変更に挑戦しましたが…

lightcyanです。

匿名なので気分を害されましたでしょうか。
でしたら申し訳ございませんでした。
ただ、いろいろな人の目があるので匿名にせざる得ないのです。

正規表現さえ何とかなればできるかもと思いemacs-lispに挑戦してみました。
変更はこれだけです。

--- sb-yahoo.el	2010-09-02 15:11:41.093750000 +0900
+++ sb-yahoo.el.~1~	2009-05-15 01:01:54.531250000 +0900
 <at>  <at>  -47,7 +47,7  <at>  <at> 
 		   (concat
 		    "<a" s1 "href=\"\\(?:[^\"]+\\)?"
 		    ;; 1. url
-		    "\\(hl\\?a="
+		    "\\(http://headlines\\.yahoo\\.co\\.jp/hl\\?a="
 		    ;; 2. serial number
 		    "\\("
 		    ;; 3. year

これで記事の見出しは取ってこれるようになりましたが、Xref: が

Xref: hl?a=20100902-00000009-rcdc-cn

となってしまい記事の内容を取ってくることが出来ません。Xref:を設定しているところが
どこだかわからないので、教えていただけないでしょうか。よろしくお願いします。

--

-- 
lightcyan

Katsumi Yamaoka | 6 Sep 2010 05:40
X-Face
Favicon
Gravatar

[emacs-w3m:11332] Re: w3m-goto-url cursor placement

In [emacs-w3m : No.11288] jidanni <at> jidanni.org wrote:
> -----v                 The g command puts the cursor here.
> URL: http://www.bdsm.com.tw/phorum/read.php?1,32718,page=1
> URL: http://www.bdsm.com.tw/phorum/read.php?1,32718,page=1
> ------------^       Wouldn't it be better to put it there?

Done.  Thanks for the suggestion.

Andrey Kotlarski | 6 Sep 2010 16:01
Picon

[emacs-w3m:11333] Re: [PATCH] w3m-lnum add highlight

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.w3m as well.

Hello again,
I made a few little changes.  Sometimes when numbering appears, desired
link number may run out of sight.  So I added keys to scroll page while
entering link number.  Again, have a look if this is ok with XEmacs
too.  Here's a ChangeLog:

2010-09-06  Andrey Kotlarski  <m00naticus <at> gmail.com>

	* w3m-lnum.el (w3m-linknum-remove-overlays): Simplified.
	(w3m-link-numbering-mode): Using `or' instead of `unless'.
	(w3m-read-int-interactive): Added ability to scroll page while
	selecting number.

Here's the diff:

--- w3m-lnum-cvs.el             2010-07-31 01:57:15.727342157 +0300
+++ w3m-lnum.el         	2010-08-07 19:52:45.668371247 +0300
 <at>  <at>  -125,19 +125,12  <at>  <at> 
   (push (cons 'w3m-link-numbering-mode w3m-link-numbering-mode-map)
 	minor-mode-map-alist))

-(defun w3m-linknum-remove-overlays (&optional arg)
-  "Remove numbering and match overlays.
-With ARG remove only temporary match"
-  (if arg
-      (catch 'done
-	(dolist (overlay (overlays-in (point-min) (point-max)))
-	  (when (overlay-get overlay 'w3m-linknum-match)
-	    (delete-overlay overlay)
-	    (throw 'done nil))))
-    (dolist (overlay (overlays-in (point-min) (point-max)))
-      (if (or (overlay-get overlay 'w3m-link-numbering-overlay)
-	      (overlay-get overlay 'w3m-linknum-match))
-	  (delete-overlay overlay)))))
+(defun w3m-linknum-remove-overlays ()
+  "Remove numbering and match overlays."
+  (dolist (overlay (overlays-in (point-min) (point-max)))
+    (if (or (overlay-get overlay 'w3m-link-numbering-overlay)
+	    (overlay-get overlay 'w3m-linknum-match))
+	(delete-overlay overlay))))

 ;;;###autoload
 (defun w3m-link-numbering-mode (&optional arg)
 <at>  <at>  -147,16 +140,16  <at>  <at> 
   (interactive "P")
   (let ((w3m-linknum-status w3m-link-numbering-mode))
     ;; find current numbering status of w3m buffers
-    (unless (eq major-mode 'w3m-mode)
-      (save-current-buffer
-	(setq w3m-linknum-status
-	      (catch 'found-w3m
-		(dolist (buf (buffer-list))
-		  (set-buffer buf)
-		  (if (eq major-mode 'w3m-mode)
-		      (throw 'found-w3m w3m-link-numbering-mode)))))))
-    (setq arg (not (if arg
-		       (zerop arg)
+    (or (eq major-mode 'w3m-mode)
+	(save-current-buffer
+	  (setq w3m-linknum-status
+		(catch 'found-w3m
+		  (dolist (buf (buffer-list))
+		    (set-buffer buf)
+		    (if (eq major-mode 'w3m-mode)
+			(throw 'found-w3m
+			       w3m-link-numbering-mode)))))))
+    (setq arg (not (if arg (zerop arg)
 		     w3m-linknum-status)))
     (unless (eq arg w3m-linknum-status)	; if change of mode status
       (if arg
 <at>  <at>  -234,6 +227,11  <at>  <at> 
 	       (setq num (/ num 10)
 		     temp-prompt (format "%s%d" prompt num))
 	       (funcall fun num))
+	      ((eq ch 32) (w3m-scroll-up-or-next-url nil)) ;space
+	      ((eq ch 'delete)				   ;delete
+	       (w3m-scroll-down-or-previous-url nil))
+	      ((eq ch 60) (w3m-scroll-right nil)) ;<
+	      ((eq ch 62) (w3m-scroll-left nil))  ;>
 	      ((and (w3m-static-if (featurep 'xemacs)
 			(characterp ch)
 		      (numberp ch))

Katsumi Yamaoka | 7 Sep 2010 01:32
X-Face
Favicon
Gravatar

[emacs-w3m:11334] Re: [PATCH] w3m-lnum add highlight

In [emacs-w3m : No.11333] Andrey Kotlarski wrote:
> Hello again,
> I made a few little changes.  Sometimes when numbering appears, desired
> link number may run out of sight.  So I added keys to scroll page while
> entering link number.  Again, have a look if this is ok with XEmacs
> too.  Here's a ChangeLog:

Thank you for the patch.  I've installed it with a slight modification
to work for XEmacs (see the ChangeLog).

Regards,

jidanni | 7 Sep 2010 01:59
Favicon
Gravatar

[emacs-w3m:11335] nnrss now unusable

nnrss is now unusable.

$ apt-cache policy emacs-snapshot 
emacs-snapshot:
  Installed: 1:20100829-1 <=== Works fine
  Candidate: 1:20100903-2 <=== Ruined
        500 http://emacs.orebokech.com/ sid/main i386 Packages

Here's what happens while reading ANY group,

Debugger entered--Lisp error: (wrong-number-of-arguments #[(handle)
"p\214``}\210\212	\306\307!rB\316 A <at> \317\"\211\203g\320!\211\203g\321=\204g\322\323 \"\324
\210\325
\210c\210\326ed\327\33\330\331\332\333\334\335\334\336\337\336\340\341\342\343^N)\"\344\342\343*\"\336\345\346\347&\210.	\350
*\207" [article-buffer handle temp-buffer coding-system-for-read coding-system-for-write
default-process-coding-system generate-new-buffer " *temp*" ((byte-code "\30!\203
\30!\210\301\207" [temp-buffer buffer-name^O\^Nkill-buffer]
2))^O1^Nmm-disable-multibyte^OA^Ninsert-buffer-substring
mm-decode-content-transfer-encoding 2 utf-8 mail-content-type-get charset
mm-charset-to-coding-system ascii mm-decode-coding-string buffer-string erase-buffer
mm-enable-multibyte call-process-region "w3m" nil "-halfdump" "-no-cookie" "-I" "UTF-8" "-O" "-o"
"ext_halfdump=1" "pre_conv=1" "-t" format "%s" "-cols" "display_image=on" "-T" "text/html"
gnus-html-wash-tags tab-width gnus-html-frame-width] 26] 0)
  gnus-article-html()
  nnrss-request-article(36 "Sexual liberation . BDSM" "" #<buffer *Article nnrss:Sexual liberation . BDSM*>)
  gnus-request-article(36 "nnrss:Sexual liberation . BDSM" #<buffer *Article nnrss:Sexual liberation
. BDSM*>)
  gnus-request-article-this-buffer(36 "nnrss:Sexual liberation . BDSM")
  gnus-article-prepare(36 nil)
  gnus-summary-display-article(36 nil)
  gnus-summary-select-article(nil nil pseudo)
  gnus-summary-scroll-up(1)
  call-interactively(gnus-summary-scroll-up nil nil)^O

Seen on
http://www.couchsurfing.org/feeds/group_rss.php?gid=1300&replies=1 .
My configuration files are on http://jidanni.org/comp/configuration/ .

Katsumi Yamaoka | 7 Sep 2010 02:30
X-Face
Favicon
Gravatar

[emacs-w3m:11336] Re: nnrss now unusable

In [emacs-w3m : No.11335] jidanni <at> jidanni.org wrote:
> nnrss is now unusable.

> $ apt-cache policy emacs-snapshot
> emacs-snapshot:
>   Installed: 1:20100829-1 <=== Works fine
>   Candidate: 1:20100903-2 <=== Ruined
>         500 http://emacs.orebokech.com/ sid/main i386 Packages

> Here's what happens while reading ANY group,

> Debugger entered--Lisp error: (wrong-number-of-arguments #[(handle)...
> ...
>   gnus-article-html()
[...]
> Seen on
> http://www.couchsurfing.org/feeds/group_rss.php?gid=1300&replies=1 .
> My configuration files are on http://jidanni.org/comp/configuration/ .

No problem here.  I'm using Gnus of the bleeding edge.

Lars Magne Ingebrigtsen | 7 Sep 2010 02:32
Face
Picon
Favicon
Gravatar

[emacs-w3m:11337] Re: nnrss now unusable

jidanni <at> jidanni.org writes:

> nnrss is now unusable.

This was fixed in git Gnus earlier today.

--

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi <at> gnus.org * Lars Magne Ingebrigtsen


Gmane