From unknown Fri Jun 20 07:09:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#339 <339@debbugs.gnu.org> To: bug#339 <339@debbugs.gnu.org> Subject: Status: ffap attempts to get the whole region Reply-To: bug#339 <339@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:52 +0000 retitle 339 ffap attempts to get the whole region reassign 339 emacs submitter 339 jidanni@jidanni.org severity 339 normal thanks From jidanni@jidanni.org Fri May 30 19:45:35 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.4 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_LOW autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 31 May 2008 02:45:35 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4V2jQs6030816 for ; Fri, 30 May 2008 19:45:28 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2H5y-0003bZ-AN for bug-gnu-emacs@gnu.org; Fri, 30 May 2008 22:45:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2H5v-0003bD-Oe for bug-gnu-emacs@gnu.org; Fri, 30 May 2008 22:45:25 -0400 Received: from [199.232.76.173] (port=49661 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2H5v-0003bA-JN for bug-gnu-emacs@gnu.org; Fri, 30 May 2008 22:45:23 -0400 Received: from lax-green-bigip-5.dreamhost.com ([208.113.200.5]:49691 helo=blingymail-a3.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K2H5v-0003LS-BH for bug-gnu-emacs@gnu.org; Fri, 30 May 2008 22:45:23 -0400 Received: from jidanni1.jidanni.org (122-127-36-11.dynamic.hinet.net [122.127.36.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 2A30914D740 for ; Fri, 30 May 2008 19:45:20 -0700 (PDT) To: bug-gnu-emacs@gnu.org Subject: ffap attempts to get the whole region From: jidanni@jidanni.org Date: Sat, 31 May 2008 10:45:13 +0800 Message-ID: <8763svfayu.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 Because my http://jidanni.org/comp/configuration/.emacs does some transient mark stuff along with ffap, $ cat z http://en.wikipedia.org/wiki/Partyman bla bla $ emacs z #Not -Q this time, sorry. C-x h C-x C-f C-l Thinks the whole region, i.e., the whole file, is the URL I want to get. Obviously all I want is for ffap to just notice the URL of the line I'm on. And furthermore, as this is the first URL of the day, I needed the C-l to wipe the windshield to see what it was prompting. emacs-version "22.2.1". From monnier@iro.umontreal.ca Fri May 30 20:31:42 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.9 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,HELO_LH_HOME,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 339-done) by emacsbugs.donarmstrong.com; 31 May 2008 03:31:43 +0000 Received: from ceviche.home (206-248-174-248.dsl.teksavvy.com [206.248.174.248]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4V3VYAm009661 for <339-done@emacsbugs.donarmstrong.com>; Fri, 30 May 2008 20:31:36 -0700 Received: by ceviche.home (Postfix, from userid 20848) id A6496B41E3; Fri, 30 May 2008 23:31:33 -0400 (EDT) From: Stefan Monnier To: 339-done@debbugs.gnu.org Subject: Re: bug#339: ffap attempts to get the whole region Message-ID: References: <8763svfayu.fsf@jidanni.org> Date: Fri, 30 May 2008 23:31:33 -0400 In-Reply-To: <8763svfayu.fsf@jidanni.org> (jidanni@jidanni.org's message of "Sat, 31 May 2008 10:45:13 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Because my http://jidanni.org/comp/configuration/.emacs does some > transient mark stuff along with ffap, > $ cat z > http://en.wikipedia.org/wiki/Partyman > bla bla > $ emacs z #Not -Q this time, sorry. > C-x h C-x C-f C-l > Thinks the whole region, i.e., the whole file, is the URL I want to > get. Obviously all I want is for ffap to just notice the URL of the > line I'm on. > And furthermore, as this is the first URL of the day, I needed the C-l > to wipe the windshield to see what it was prompting. > emacs-version "22.2.1". Thanks, the mind-reader package is still in the works, Stefan From jidanni@jidanni.org Fri May 30 21:08:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,BAYES_00,FOURLA autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 339) by emacsbugs.donarmstrong.com; 31 May 2008 04:08:32 +0000 Received: from blingymail-a3.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m4V48Trq018525 for <339@emacsbugs.donarmstrong.com>; Fri, 30 May 2008 21:08:30 -0700 Received: from jidanni1.jidanni.org (122-127-36-11.dynamic.hinet.net [122.127.36.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 351D114D661 for <339@emacsbugs.donarmstrong.com>; Fri, 30 May 2008 21:08:28 -0700 (PDT) To: 339@debbugs.gnu.org Subject: Re: bug#339 ffap thinks whole region is URL References: From: jidanni@jidanni.org Date: Sat, 31 May 2008 12:08:22 +0800 Message-ID: <87prr3dsjt.fsf_-_@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Here is a new self contained report. Please try again with it. $ nl -b a myfile 1 http://en.wikipedia.org/wiki/Partyman 2 3 bla bla $ emacs -Q -eval "(and(setq transient-mark-mode 't highlight-nonselected-windows 't)(ffap-bindings))" myfile C-x h C-x C-f C-l ffap thinks the whole region, i.e., the whole file, is the URL I want to get. Obviously all I want is for ffap to just notice the URL of the line I'm on. And furthermore, as this is the first URL of the day, I needed the C-l to wipe the windshield to see what it was prompting. emacs-version "22.2.1". From jidanni@jidanni.org Tue Jun 3 15:43:05 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,VALID_BTS_CONTROL autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 339) by emacsbugs.donarmstrong.com; 3 Jun 2008 22:43:05 +0000 Received: from blingymail-a3.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m53Mgv32026909 for <339@emacsbugs.donarmstrong.com>; Tue, 3 Jun 2008 15:42:58 -0700 Received: from jidanni1.jidanni.org (122-127-33-182.dynamic.hinet.net [122.127.33.182]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a3.g.dreamhost.com (Postfix) with ESMTP id 3B5E514D786 for <339@emacsbugs.donarmstrong.com>; Tue, 3 Jun 2008 15:42:57 -0700 (PDT) To: 339@debbugs.gnu.org Subject: Re: bug#339: ffap thinks whole region is URL References: From: jidanni@jidanni.org Date: Wed, 04 Jun 2008 06:42:54 +0800 Message-ID: <87zlq2nnrl.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii reopen 339 thanks (Hope the above works.) Here is a new self contained report. Please try again with it. $ nl -b a myfile 1 http://en.wikipedia.org/wiki/Partyman 2 3 bla bla $ emacs -Q -eval "(and(setq transient-mark-mode 't highlight-nonselected-windows 't)(ffap-bindings))" myfile C-x h C-x C-f C-l ffap thinks the whole region, i.e., the whole file, is the URL I want to get. Obviously all I want is for ffap to just notice the URL of the line I'm on. And furthermore, as this is the first URL of the day, I needed the C-l to wipe the windshield to see what it was prompting. emacs-version "22.2.1". From monnier@iro.umontreal.ca Tue Jun 3 17:10:39 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL,BAYES_00,FOURLA, HAS_BUG_NUMBER,HELO_LH_HOME,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 339-done) by emacsbugs.donarmstrong.com; 4 Jun 2008 00:10:39 +0000 Received: from ceviche.home (206-248-132-168.dsl.teksavvy.com [206.248.132.168]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m540AWZ8017027 for <339-done@emacsbugs.donarmstrong.com>; Tue, 3 Jun 2008 17:10:33 -0700 Received: by ceviche.home (Postfix, from userid 20848) id 96C45B423C; Tue, 3 Jun 2008 20:10:26 -0400 (EDT) From: Stefan Monnier To: jidanni@jidanni.org Cc: 339-done@debbugs.gnu.org Subject: Re: bug#339: ffap thinks whole region is URL Message-ID: References: <87zlq2nnrl.fsf@jidanni.org> Date: Tue, 03 Jun 2008 20:10:26 -0400 In-Reply-To: <87zlq2nnrl.fsf@jidanni.org> (jidanni@jidanni.org's message of "Wed, 04 Jun 2008 06:42:54 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > reopen 339 > thanks > (Hope the above works.) > Here is a new self contained report. Please try again with it. > $ nl -b a myfile > 1 http://en.wikipedia.org/wiki/Partyman > 2 > 3 bla bla > $ emacs -Q -eval "(and(setq transient-mark-mode 't highlight-nonselected-windows 't)(ffap-bindings))" myfile > C-x h C-x C-f C-l > ffap thinks the whole region, i.e., the whole file, is the URL I want to > get. Obviously all I want is for ffap to just notice the URL of the > line I'm on. No, it's a classic PEBKAC. Just don't do the C-x h. Stefan From jidanni@jidanni.org Thu Jun 5 11:19:16 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 339-done) by emacsbugs.donarmstrong.com; 5 Jun 2008 18:19:16 +0000 Received: from blingymail-a2.g.dreamhost.com (lax-green-bigip-5.dreamhost.com [208.113.200.5]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m55IJA8p022555 for <339-done@emacsbugs.donarmstrong.com>; Thu, 5 Jun 2008 11:19:11 -0700 Received: from jidanni2.jidanni.org (122-127-38-58.dynamic.hinet.net [122.127.38.58]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by blingymail-a2.g.dreamhost.com (Postfix) with ESMTP id 9267840E4E; Thu, 5 Jun 2008 11:19:09 -0700 (PDT) To: monnier@iro.umontreal.ca Cc: 339-done@debbugs.gnu.org Subject: Re: bug#339: ffap thinks whole region is URL References: From: jidanni@jidanni.org Date: Fri, 06 Jun 2008 02:18:59 +0800 Message-ID: <871w3beodo.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In ffap.el, please add a new variable that will allow the user to disable (if (and transient-mark-mode mark-active) (buffer-substring (setcar ffap-string-at-point-region (region-beginning))... Why? 1. The user shouldn't have to worry if he has marks active or not. 2. The goal is probably to allow users to get URLs with (,) and Unicode in them, like Wikipedia's. That goal is better accomplished by (eval-after-load "ffap" '(setcar (cdr (assq 'url ffap-string-at-point-mode-alist)) "--:=&?$+@-Z_[:lower:][:multibyte:]()~#,%;*")) and not snarfing up the whole region, newlines and all, as one big URL. Thank you. From monnier@iro.umontreal.ca Thu Jun 5 12:13:31 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-1.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, HELO_LH_HOME,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 339-done) by emacsbugs.donarmstrong.com; 5 Jun 2008 19:13:31 +0000 Received: from ceviche.home (206-248-132-168.dsl.teksavvy.com [206.248.132.168]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m55JDPis003887 for <339-done@emacsbugs.donarmstrong.com>; Thu, 5 Jun 2008 12:13:26 -0700 Received: by ceviche.home (Postfix, from userid 20848) id 0FCDBB4248; Thu, 5 Jun 2008 15:13:25 -0400 (EDT) From: Stefan Monnier To: jidanni@jidanni.org Cc: 339-done@debbugs.gnu.org Subject: Re: bug#339: ffap thinks whole region is URL Message-ID: References: <871w3beodo.fsf@jidanni.org> Date: Thu, 05 Jun 2008 15:13:25 -0400 In-Reply-To: <871w3beodo.fsf@jidanni.org> (jidanni@jidanni.org's message of "Fri, 06 Jun 2008 02:18:59 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > In ffap.el, please add a new variable that will allow the user to > disable > (if (and transient-mark-mode mark-active) > (buffer-substring > (setcar ffap-string-at-point-region (region-beginning))... > Why? If you want to completely disable the region-feature, then I agree. I've indeed done just that in the CVS trunk. Stefan From unknown Fri Jun 20 07:09:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Jul 2008 14:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator