From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19556: eww: make URI rewriting fully customizable Date: Sat, 10 Jan 2015 14:40:57 +0000 Message-ID: <87lhla1yx2.fsf@violet.siamics.net> References: <87sifi22rg.fsf@violet.siamics.net> <831tn27m78.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1420900941 21671 80.91.229.3 (10 Jan 2015 14:42:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2015 14:42:21 +0000 (UTC) To: 19556@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 10 15:42:17 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 1Y9xF2-0002og-Pu for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2015 15:42:16 +0100 Original-Received: from localhost ([::1]:55239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9xF2-00017J-2l for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jan 2015 09:42:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9xEu-000171-Tu for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 09:42:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9xEo-0003wQ-KY for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 09:42:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9xEo-0003wK-6w for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 09:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y9xEn-00047t-RB for bug-gnu-emacs@gnu.org; Sat, 10 Jan 2015 09:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jan 2015 14:42: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.142090087015750 (code B ref 19556); Sat, 10 Jan 2015 14:42:01 +0000 Original-Received: (at 19556) by debbugs.gnu.org; 10 Jan 2015 14:41:10 +0000 Original-Received: from localhost ([127.0.0.1]:41633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9xDy-00045v-2q for submit@debbugs.gnu.org; Sat, 10 Jan 2015 09:41:10 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:48764) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y9xDv-00045k-UR for 19556@debbugs.gnu.org; Sat, 10 Jan 2015 09:41:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=PrAQCXm2ZNnl6kbs8xYyrmdVf0peatMV9anfpxP+xi4=; b=Q2SNDpldsj8BRoMErYEdZsuGcJkk30teHXzXQecGBF/C5yNh6ZrI3PUBAef1slKIkyuoTVEEu79/OteGDn9MWkuK4w6LRtmR8rib8dofD7RIqbQj8pRF0MRG5K8YXWv4lW2UTiePgq52+iPp7gEEoxW0diS3/p/KdCbLaBu8dfk=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Y9xDt-0001fj-P4 for 19556@debbugs.gnu.org; Sat, 10 Jan 2015 14:41:06 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1Y9xDm-0002hN-Eu for 19556@debbugs.gnu.org; Sat, 10 Jan 2015 21:40:58 +0700 Mail-Followup-To: 19556@debbugs.gnu.org In-Reply-To: <831tn27m78.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 10 Jan 2015 16:19:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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:98175 Archived-At: >>>>> Eli Zaretskii writes: >>>>> From: Ivan Shmakov Date: Sat, 10 Jan 2015 13:17:55 +0000 [=E2=80=A6] > Why put the "standard" rules into the defcustom? So to make the tricks played by EWW on unsuspecting URIs more obvious to the user. Cf. eww-suggest-uris, BTW. > why not leave them in place as "plan B", and leave the hook for > customizations only? It=E2=80=99s certainly a possibility; frankly, I have no strong preference for doing it either way. > 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, =E2=80=93 which I=E2=80=99d consider pretty much a prerequisite for the =E2=80=9Cdefault=E2=80=9D behavior. 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. > E. g., with your suggestion, what happens if someone customizes the > value to nil? That=E2=80=99s simple: M-x eww will assume that the URIs it=E2=80=99s given never need any special treatment. One consequence I=E2=80=99ve already mentioned: >> FWIW, removing eww-search-words from the hook allows one to type >> something like https://en.wikipedia.org/wiki/Free software RET (note >> the blank) at the prompt and be with that. Removing just eww-search-words leads to more or less the same effect. Dropping eww-uri-not-supported resolves #17959. And so on. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A