From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Garreau\, Alexandre" Newsgroups: gmane.emacs.help Subject: Re: message-smileys boundaries Date: Sun, 21 Oct 2018 04:53:02 +0200 Message-ID: <87y3as80z5.fsf@portable.galex-713.eu> References: <87pnwcxft6.fsf@portable.galex-713.eu> <877eidt587.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540091202 2634 195.159.176.226 (21 Oct 2018 03:06:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2018 03:06:42 +0000 (UTC) User-Agent: Gnus (5.13), GNU Emacs 25.1.1 (i686-pc-linux-gnu) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 21 05:06:38 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gE44b-0000a5-O5 for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Oct 2018 05:06:37 +0200 Original-Received: from localhost ([::1]:57277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gE46h-0005Hs-W1 for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Oct 2018 23:08:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gE468-0004uH-Lu for help-gnu-emacs@gnu.org; Sat, 20 Oct 2018 23:08:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gE3rW-0000rO-Dk for help-gnu-emacs@gnu.org; Sat, 20 Oct 2018 22:53:07 -0400 Original-Received: from portable.galex-713.eu ([2a00:5884:8305::1]:60994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gE3rW-0000q2-5S for help-gnu-emacs@gnu.org; Sat, 20 Oct 2018 22:53:06 -0400 Original-Received: from localhost ([::1] helo=portable.galex-713.eu) by portable.galex-713.eu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gE3rS-0001w4-Hy; Sun, 21 Oct 2018 04:53:02 +0200 X-GPG-FINGERPRINT: E109 9988 4197 D7CB B0BC 5C23 8DEB 24BA 867D 3F7F X-Accept-Language: fr, en, it, eo In-Reply-To: <877eidt587.fsf@mbork.pl> (Marcin Borkowski's message of "Sat, 20 Oct 2018 10:03:20 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:5884:8305::1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118372 Archived-At: On 2018-10-20 at 10:03, Marcin Borkowski wrote: > On 2018-10-15, at 01:35, Garreau, Alexandre wrot= e: > >> Hi, >> >> I=E2=80=99ve loved to see message-smileys in effect and how it allows me= to keep >> show-paren working when I=E2=80=99m writing texts with smileys (I didn= =E2=80=99t think >> it would be that simple and straightforward), however, I think it would >> be interesting to make them regexps, or to put \\< and \\> somewhere >> because currently, if I define the smiley =E2=80=9Cx)=E2=80=9D, it means= if the last >> word in a parenthesis end with =E2=80=9Cx=E2=80=9D, the parenthesis is n= ot matched, >> while if I use =E2=80=9C x)=E2=80=9D, and the smiley =E2=80=9Cx)=E2=80= =9D is at the beginning of a line, >> the smiley is not matched=E2=80=A6 >> >> Are there other solutions? > > Would that be useful? > > http://mbork.pl/2015-10-17_xkcd-541_mode Maybe, afaik it is through matching and fontification too that message-smileys work right? so if what you were trying to say is tweaking the current implementation so to support, too, one unique regexp (btw his regexp suffer from just the same problem with the letter =E2=80=9CB=E2=80=9D), maybe made with regexp-opt or rx, I=E2=80=99ll try wh= en I have more time, but not now then.