From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19556: eww: make URI rewriting fully customizable Date: Sat, 10 Jan 2015 18:01:17 +0200 Message-ID: <83vbke62wi.fsf@gnu.org> References: <87sifi22rg.fsf@violet.siamics.net> <831tn27m78.fsf@gnu.org> <87lhla1yx2.fsf@violet.siamics.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1420905738 26669 80.91.229.3 (10 Jan 2015 16:02:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2015 16:02:18 +0000 (UTC) Cc: 19556@debbugs.gnu.org To: Ivan Shmakov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 10 17:02:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Y9yUL-0006L6-Ve for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2015 17:02:10 +0100 Original-Received: from localhost ([::1]:55404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9yUL-00016A-FZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2015 11:02:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9yUH-00015u-8E for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 11:02:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9yUE-0004WQ-3K for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 11:02:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9yUE-0004WM-0C for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 11:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y9yUD-00076n-Iy for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 11:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jan 2015 16:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19556 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19556-submit@debbugs.gnu.org id=B19556.142090568227241 (code B ref 19556); Sat, 10 Jan 2015 16:02:01 +0000 Original-Received: (at 19556) by debbugs.gnu.org; 10 Jan 2015 16:01:22 +0000 Original-Received: from localhost ([127.0.0.1]:41966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9yTZ-00075J-T9 for submit@debbugs.gnu.org; Sat, 10 Jan 2015 11:01:22 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:54947) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9yTW-000755-Tg for 19556@debbugs.gnu.org; Sat, 10 Jan 2015 11:01:20 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NHY00600XPEO500@a-mtaout20.012.net.il> for 19556@debbugs.gnu.org; Sat, 10 Jan 2015 18:01:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHY006R2XU4BFA0@a-mtaout20.012.net.il>; Sat, 10 Jan 2015 18:01:17 +0200 (IST) In-reply-to: <87lhla1yx2.fsf@violet.siamics.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98181 Archived-At: > From: Ivan Shmakov > Date: Sat, 10 Jan 2015 14:40:57 +0000 > > >>>>> Eli Zaretskii writes: > >>>>> From: Ivan Shmakov Date: Sat, 10 Jan 2015 13:17:55 +0000 > > […] > > > Why put the "standard" rules into the defcustom? > > So to make the tricks played by EWW on unsuspecting URIs more > obvious to the user. How does that make it more obvious? > > That's what hooks are normally for -- _modifying_ the default > > behavior, not supplanting it. > > Are they? For instance, when run with -Q, my find-file-hooks > includes ange-ftp-set-buffer-mode, epa-file-find-file-hook, > vc-find-file-hook None of these replace the default behavior of their hookee functions. They _add_ something to it. The default behavior is not in the hook, it's in the code that calls the hook. And anyway, I said "normally", so a couple of examples to the contrary doesn't yet invalidate what I said. > With these functions being explicitly listed, however, I could > easily drop everything but vc-find-file-hook off the list to get > rid of the functionality that tends to get in my way. It sounds like we have some deep disagreement about what the hooks are for. You want a hook to _remove_ some behaviors, but that's not what hooks are for. > > > E. g., with your suggestion, what happens if someone customizes the > > value to nil? > > That’s simple: M-x eww will assume that the URIs it’s given > never need any special treatment. Which is clearly wrong with some URIs. Please let's not go that way.