From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/30338 Path: main.gmane.org!not-for-mail From: Vladimir Volovich Newsgroups: gmane.emacs.gnus.general Subject: Re: strange highlightings Date: 25 Apr 2000 16:09:54 +0400 Sender: owner-ding@hpc.uh.edu Message-ID: References: <200004241847.UAA27066@lucy.cs.uni-dortmund.de> <200004251106.NAA28153@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035166890 7917 80.91.224.250 (21 Oct 2002 02:21:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:21:30 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 49892D051E for ; Tue, 25 Apr 2000 08:10:19 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id HAB00649; Tue, 25 Apr 2000 07:10:08 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 25 Apr 2000 07:09:18 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id HAA02129 for ; Tue, 25 Apr 2000 07:09:07 -0500 (CDT) Original-Received: from vsu.ru (info.vsu.ru [62.76.169.9]) by mailhost.sclp.com (Postfix) with ESMTP id 3E408D051E for ; Tue, 25 Apr 2000 08:08:34 -0400 (EDT) Original-Received: from video.uic.vsu.ru ([62.76.169.38] verified) by vsu.ru (CommuniGate Pro SMTP 3.3b2) with ESMTP id 1449116; Tue, 25 Apr 2000 16:08:22 +0400 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai=?iso-8859-1?q?_Gro=DFjohann?=) In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Tue, 25 Apr 2000 13:06:47 +0200" Original-Lines: 41 User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.5 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:30338 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:30338 "KG" == Kai Großjohann writes: >> well, the URL was guessed obviously wrong: the correct one is >> 10.95.3.38 but not 95.3.38. And often the text which has nothing >> close to URLs is highlighted and buttonized which seems like an >> overkill (and a bit annoying :). is there a config option to >> restore the previous behavior? 8-) KG> The question is, how to recognize text which is a URL and how to KG> recognize text which _isn't_ a URL? KG> Gnus currently looks `foo.foo.foo' type strings, with three words KG> and two dots. And obviously, digits are allowed in the words KG> (www2.frob.org might be a valid URL). Well... Khm.. URLs can well be of the form foo.foo.foo.foo and even with more words separated by dots. Well, i really don't like this behavior. Why should one assume that a given string which looks like foo.foo.foo is an URL and moreover, why should it be assumes as an URL for HTTP? (why not ftp? why not telnet? why not ICMP?) It looks like in a lot of cases this new empirical behavior will give incorrect results (i.e. which will misleadingly interpret some random strings as HTTP URLs -- e.g. section numbers like 1.2.3, 1.2.4, etc). KG> Have you got a suggestion on improving the rules used by Gnus? I'd rather prefer to reduce this empirical algorithm to previous form (when only strings starting with ftp:// https:// http:// etc were buttonized). At least, it would be nice to have an option to restore that original behavior, e.g. (setq gnus-buttonize-naked-urls nil) (which would extend gnus-button-url-regexp if non-nil; i'd prefer to have by default old behavior though) Best, v.