From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: eww Date: Tue, 18 Jun 2013 13:23:02 +0200 Message-ID: References: <87d2rkb1pi.fsf@fleche.redhat.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371554612 12070 80.91.229.3 (18 Jun 2013 11:23:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Jun 2013 11:23:32 +0000 (UTC) Cc: ding@gnus.org, emacs-devel To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 18 13:23:31 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uou0X-0004hv-Co for ged-emacs-devel@m.gmane.org; Tue, 18 Jun 2013 13:23:29 +0200 Original-Received: from localhost ([::1]:50280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uou0X-0005RZ-00 for ged-emacs-devel@m.gmane.org; Tue, 18 Jun 2013 07:23:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uou0Q-0005Nk-48 for emacs-devel@gnu.org; Tue, 18 Jun 2013 07:23:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uou0K-0003tj-2x for emacs-devel@gnu.org; Tue, 18 Jun 2013 07:23:22 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:47023) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uou0J-0003sx-Q2 for emacs-devel@gnu.org; Tue, 18 Jun 2013 07:23:16 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Uou06-0006id-KU; Tue, 18 Jun 2013 13:23:02 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEWNPH0eEggOBQJAKCXH xTyEbj+FN3WUQoObSo0UCQSX1MJzAAACWElEQVQ4jVWSPW/bMBCGOUVdT0TS3igWKMDNBM00mUUC XQ2SQEdPbkdv0tip0koGKMB/26NkyzYtHIx7+L73IbG9DTY4E2Jv6J+383r+MuMqoEDR2t5sIFq7 Ake/EH9swNNdawn31kW9nzfgYlV4As64RxBcqNTHGLz+easRa/EYndM6OP37ATgbo47Ag3u9Wv1h JoZg6T7XwPdB34AmJ0t1zEHr2MN4A5S3ffDm4KNX8HYBU1VY6wwP78ZruAPrgEFHrHZb8WlZSZX0 uHda7W5gEdh+756p7cPW1czsqiAf0t4GvAI6us5/V5xWbpeteK+S/nWz8n3dbiQXKPzTfA+ovKe1 K4Nf5ntAg0TO63Dw7wFQ0QPXXHH1qKB9x8OzgRZUeVA4Heq7eM8A7aoY6zMRsN7ohFRiU0xjVfio tUpEsHxcwDgPBA4Kkk6ACPJlSQ/DsGz3ACqRDSB0G6hWRoNGiVjgopgoP8wDix4AySlDkTCS+zSM I4lYVAkxYSpXsJ4zgYJdqioCzSXdENCqtAIVQipiN18FzZn5kpAAGZX8fRinaTjT/aECmbNUqZQk 3+bFnS3R08QtgZQ6+Fx7peQCVCm5FQTIa3fxp/yZQS45Z9XlJEUFjLFVgVkQ4ZJA/jYsZGC1eJGS +oUspChfm1XBqqItSYjcLUAcF8CaBSAURCklli7vWO32vAJaEpbSUZAfR9awZYwVkAhkhyCwplcw sPoRtBJE3Ux3ZOxpRdQupLYVPFNjsntlx6fTBniLkpMIZHo5ndhpJUxx/p4qSCAyP51qviHwH+lu hJT+xQ5iAAAAAElFTkSuQmCC X-Now-Playing: AGF's _Source Voice_: "The Human Condition" X-Hashcash: 1:23:130618:ding@gnus.org::IKTNcsoH5XmkDZ0y:00001go1 X-Hashcash: 1:23:130618:tromey@redhat.com::Z/XrUTg8gRS4Ufay:00000000000000000000000000000000000000000000HAAe X-Hashcash: 1:23:130618:emacs-devel@gnu.org::Ab/trIcZ5wq39Ilx:000000000000000000000000000000000000000000j5Iy In-Reply-To: <87d2rkb1pi.fsf@fleche.redhat.com> (Tom Tromey's message of "Mon, 17 Jun 2013 20:19:05 -0600") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1Uou06-0006id-KU MailScanner-NULL-Check: 1372159383.54995@cz0wUKYFodvkZVTKOiohCA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160560 gmane.emacs.gnus.general:83357 Archived-At: Tom Tromey writes: > It doesn't render parts of the gdb manual very nicely. > For example in the reverse execution node, the info looks like: > > ================================================================ > If you are debugging in a target environment that supports reverse > execution, GDB provides the following commands. > > `reverse-continue [IGNORE-COUNT]' > `rc [IGNORE-COUNT]' > Beginning at the point where your program last stopped, start > executing in reverse. Reverse execution will stop for breakpoints > and synchronous exceptions (signals), just like normal execution. > Behavior of asynchronous signals depends on the target environment. > ================================================================ Heh. This is because the manual uses the
,
and
tags, which I didn't even know existed. :-) I've now added support for this. > Also, please consider the appended patch. It makes eww pick up on > and to give it a more info-ish flavor. I'm > interested in the possibility of replacing info with html+eww. Supporting and is a good idea. The code looks good, but here's a couple of comments: > +(defvar eww-next-url nil) > +(make-variable-buffer-local 'eww-next-url) > +(defvar eww-previous-url nil) > +(make-variable-buffer-local 'eww-previous-url) > +(defvar eww-up-url nil) > +(make-variable-buffer-local 'eww-up-url) > +(defvar eww-top-url nil) > +(make-variable-buffer-local 'eww-top-url) I think that for package-specific variables like this we're supposed to use (set (make-local-variable 'eww-top-url) nil) in the mode setup instead, so that we're not making variables needlessly globally buffer-local. > +(defun eww-open-file (file) > + (interactive "fFile: ") > + (let ((browse-url-browser-function #'eww-browse-url)) > + (browse-url-of-file (expand-file-name file)))) Can't we just prepend "file://" to the file name and call `eww' directly? > +(defun eww-next-url () > + (interactive) > + (if eww-next-url > + (eww-browse-url (shr-expand-url eww-next-url eww-current-url)) > + (error "No `next' on this node"))) Perhaps say "page" instead of "node". -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/