Gnus development mailing list
 help / color / mirror / Atom feed
From: Kevin the Bandicoot <user42@zip.com.au>
Subject: Too much emphasis matching on some filenames
Date: 07 Oct 1999 07:26:40 +1000	[thread overview]
Message-ID: <877ll0faen.fsf@bananas.org.au> (raw)

I'm only a recent convert to gnus, tell me to pipe down if I'm saying
something dumb.

I'm running pgnus 0.96 and I noticed article viewing doing a bit too
much emphasis matching on a filename in a message.

     Blah blah /usr/bin/foo blah blah /proc/<pid>/fd blah blah.

The first filename is ok, but the second one gets the "proc" part
shown as italics.  (C-u g or whatever to see raw what I'm writing.)
I think it's because gnus-emphasis-alist allows an open bracket to
match after /proc/, and "<" is an open bracket in the syntax table.

I don't think /emphasis/ in normal text would have an open bracket
immediately after, nor a close bracket immediately before, I think
there'd be white space in between.  Is there a reason the regexps are
setup the way they are?

I also thought the matching could be tightened by requiring whitespace
after a trailing punctuation -?!.,;:"  That would keep it away from
/root/.profile and *foo*.el and the like.  Allowing multiple "!"s,
"?"s or "."s would be good, so /italics/!!! would work.

-- 
"Wait a minute, this sounds like rock and/or roll."  -- Rev. Lovejoy


             reply	other threads:[~1999-10-06 21:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-06 21:26 Kevin the Bandicoot [this message]
1999-10-06 22:02 ` Karl Kleinpaste
1999-10-06 23:13   ` Kevin the Bandicoot
1999-11-06 18:18     ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ll0faen.fsf@bananas.org.au \
    --to=user42@zip.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).