From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.bugs Subject: bug#6082: [PATCH] rcirc: rcirc-browse-url: Use only URLs before point and exclude consecutive duplicate URLs Date: Mon, 3 May 2010 01:09:24 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001485f44ff8676e450485a49216 X-Trace: dough.gmane.org 1272842767 31174 80.91.229.12 (2 May 2010 23:26:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 May 2010 23:26:07 +0000 (UTC) Cc: Ryan Yeske To: 6082@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 03 01:26:06 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O8iY1-0001jU-Ci for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 May 2010 01:26:05 +0200 Original-Received: from localhost ([127.0.0.1]:43559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8iY0-00010Z-Ks for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 May 2010 19:26:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8iXw-00010U-4r for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:26:00 -0400 Original-Received: from [140.186.70.92] (port=48734 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8iXu-00010M-QL for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:25:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8iXt-0005OP-R2 for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:25:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8iXt-0005OL-Mt for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:25:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O8iIU-0004d0-TC; Sun, 02 May 2010 19:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Deniz Dogan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 May 2010 23:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6082 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127284179717779 (code B ref -1); Sun, 02 May 2010 23:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 May 2010 23:09:57 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8iIP-0004ci-63 for submit@debbugs.gnu.org; Sun, 02 May 2010 19:09:57 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8iIM-0004cb-SS for submit@debbugs.gnu.org; Sun, 02 May 2010 19:09:55 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:47430) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O8iII-0008Du-R7 for submit@debbugs.gnu.org; Sun, 02 May 2010 19:09:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8iII-0006Lm-Fe for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:09:50 -0400 Original-Received: from [140.186.70.92] (port=34192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8iIG-0006L1-EA for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:09:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8iIE-0003pg-UL for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:09:48 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:36349) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8iIE-0003pb-J3 for bug-gnu-emacs@gnu.org; Sun, 02 May 2010 19:09:46 -0400 Original-Received: by wwg30 with SMTP id 30so531620wwg.0 for ; Sun, 02 May 2010 16:09:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:cc:content-type; bh=uSDU8Kb+xzmNDigfZfWXsTH9jhrZHbIE4H//rtRER8U=; b=OguBU2GtZLAtg+14y6nmi3u9jrFpdIsDdKVvdbSxU4XGCUlNrkfuMVT+i43RIirQtl jGdCXO7NuLxDpT1DJXa8lRfL1aXAN/Wa2axIJtzE9K9n2j1Z+HvvUUSRhB8kd/1nyruW bwrx3SkCXv27JhaEzfQaw5pWFZ/Uv0Eh/D+SY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=ryrcPwMhriMLPjSNJ9f4Y6cuQAfaxFcJfE0UNrpi9csWWTwFyHGvO1hglVL906gOYZ AXriblrWG9koEKlImvAAu5fumJhjrnUrCEDnFlnCzxhSuL9YyYWGBZn/KeNiuUYuLQyX zae4nxpY9Z8w+yKTzBuYZYHmtd/lZ6GI2XeWM= Original-Received: by 10.216.157.134 with SMTP id o6mr5241278wek.201.1272841784221; Sun, 02 May 2010 16:09:44 -0700 (PDT) Original-Received: by 10.216.229.83 with HTTP; Sun, 2 May 2010 16:09:24 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 02 May 2010 19:10:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36649 Archived-At: --001485f44ff8676e450485a49216 Content-Type: text/plain; charset=ISO-8859-1 Attached is a patch which does the following: Modifies rcirc-browse-url to only complete to buffers that are before point in the current buffer. To accomplish this, the structure of rcirc-urls has changed from being just a list of strings to a list of strings and buffer positions. Modifies rcirc-markup-urls to conform to the new structure of rcirc-urls and so that any URL that is already the latest recognized URL is not added to the list of URLs. This prevents "consecutive duplicate URLs" from being stored. --001485f44ff8676e450485a49216 Content-Type: text/plain; charset=US-ASCII; name="rcirc-browse-url-deniz-dogan.diff" Content-Disposition: attachment; filename="rcirc-browse-url-deniz-dogan.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g8qh3pze0 PT09IG1vZGlmaWVkIGZpbGUgJ2xpc3AvbmV0L3JjaXJjLmVsJwotLS0gbGlzcC9uZXQvcmNpcmMu ZWwJMjAxMC0wMS0xMyAwODozNToxMCArMDAwMAorKysgbGlzcC9uZXQvcmNpcmMuZWwJMjAxMC0w NS0wMiAyMjo1Mjo0OCArMDAwMApAQCAtMzUwLDcgKzM1MCw4IEBACiAgICJUaGUgY2hhbm5lbCBv ciB1c2VyIGFzc29jaWF0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W4gYSBuZXcgYnJvd3NlciB3aW5kb3cuIgogICAoaW50ZXJhY3Rp dmUgIlAiKQotICAobGV0ICgoY29tcGxldGlvbnMgKG1hcGNhciAobGFtYmRhICh4KSAoY29ucyB4 IG5pbCkpIHJjaXJjLXVybHMpKQotICAgICAgICAoaW5pdGlhbC1pbnB1dCAoY2FyIHJjaXJjLXVy bHMpKQotICAgICAgICAoaGlzdG9yeSAoY2RyIHJjaXJjLXVybHMpKSkKKyAgKGxldCogKChwb2lu dCAocG9pbnQpKQorICAgICAgICAgKGZpbHRlcmVkIChyY2lyYy1jb25kaXRpb24tZmlsdGVyIChs YW1iZGEgKHgpICg+PSBwb2ludCAobnRoIDEgeCkpKSByY2lyYy11cmxzKSkKKyAgICAgICAgIChj b21wbGV0aW9ucyAobWFwY2FyIChsYW1iZGEgKHgpIChjYXIgeCkpIGZpbHRlcmVkKSkKKyAgICAg ICAgIChpbml0aWFsLWlucHV0IChjYWFyIGZpbHRlcmVkKSkKKyAgICAgICAgIChoaXN0b3J5ICht YXBjYXIgKGxhbWJkYSAoeCkgKGNhciB4KSkgKGNkciBmaWx0ZXJlZCkpKSkKICAgICAoYnJvd3Nl LXVybCAoY29tcGxldGluZy1yZWFkICJyY2lyYyBicm93c2UtdXJsOiAiCiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICBjb21wbGV0aW9ucyBuaWwgbmlsIGluaXRpYWwtaW5wdXQgJ2hp c3RvcnkpCiAgICAgICAgICAgICAgICAgYXJnKSkpCkBAIC0yMjQyLDEzICsyMjUyLDE2IEBACiAK IChkZWZ1biByY2lyYy1tYXJrdXAtdXJscyAoc2VuZGVyIHJlc3BvbnNlKQogICAod2hpbGUgKHJl LXNlYXJjaC1mb3J3YXJkIHJjaXJjLXVybC1yZWdleHAgbmlsIHQpCi0gICAgKGxldCAoKHN0YXJ0 IChtYXRjaC1iZWdpbm5pbmcgMCkpCi0JICAoZW5kIChtYXRjaC1lbmQgMCkpKQorICAgIChsZXQq ICgoc3RhcnQgKG1hdGNoLWJlZ2lubmluZyAwKSkKKyAgICAgICAgICAgKGVuZCAobWF0Y2gtZW5k IDApKQorICAgICAgICAgICAobGluay10ZXh0IChidWZmZXItc3Vic3RyaW5nLW5vLXByb3BlcnRp ZXMgc3RhcnQgZW5kKSkpCiAgICAgICAocmNpcmMtYWRkLWZhY2Ugc3RhcnQgZW5kICdyY2lyYy11 cmwpCiAgICAgICAoYWRkLXRleHQtcHJvcGVydGllcyBzdGFydCBlbmQgKGxpc3QgJ21vdXNlLWZh Y2UgJ2hpZ2hsaWdodAogCQkJCQkgICAna2V5bWFwIHJjaXJjLWJyb3dzZS11cmwtbWFwKSkKLSAg ICAgIDs7IHJlY29yZCB0aGUgdXJsCi0gICAgICAocHVzaCAoYnVmZmVyLXN1YnN0cmluZy1uby1w cm9wZXJ0aWVzIHN0YXJ0IGVuZCkgcmNpcmMtdXJscykpKSkKKyAgICAgIDs7IHJlY29yZCB0aGUg dXJsIGlmIGl0IGlzIG5vdCBhbHJlYWR5IHRoZSBsYXRlc3Qgc3RvcmVkIHVybAorICAgICAgKHdo ZW4gKG9yIChub3QgcmNpcmMtdXJscykKKyAgICAgICAgICAgICAgICAobm90IChzdHJpbmc9IGxp bmstdGV4dCAoY2FhciByY2lyYy11cmxzKSkpKQorICAgICAgICAocHVzaCAobGlzdCBsaW5rLXRl eHQgc3RhcnQpIHJjaXJjLXVybHMpKSkpKQogCiAoZGVmdW4gcmNpcmMtbWFya3VwLWtleXdvcmRz IChzZW5kZXIgcmVzcG9uc2UpCiAgICh3aGVuIChhbmQgKHN0cmluZz0gcmVzcG9uc2UgIlBSSVZN U0ciKQoK --001485f44ff8676e450485a49216--