From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: XKCD/541 compliance, anyone? Date: Thu, 04 Dec 2014 22:16:59 +0100 Message-ID: <8761drazec.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417727857 32632 80.91.229.3 (4 Dec 2014 21:17:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2014 21:17:37 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 22:17:31 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XwdmF-0002tp-3q for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 22:17:31 +0100 Original-Received: from localhost ([::1]:47745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwdmE-0000UF-F7 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 16:17:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwdly-0000TM-Dv for help-gnu-emacs@gnu.org; Thu, 04 Dec 2014 16:17:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xwdls-0006Vb-FH for help-gnu-emacs@gnu.org; Thu, 04 Dec 2014 16:17:14 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:46213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xwdls-0006VI-8V for help-gnu-emacs@gnu.org; Thu, 04 Dec 2014 16:17:08 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 0C1135EE3A for ; Thu, 4 Dec 2014 22:17:06 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 291M5TcRpjQH for ; Thu, 4 Dec 2014 22:17:05 +0100 (CET) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id AFBF45EE37 for ; Thu, 4 Dec 2014 22:17:05 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101404 Archived-At: Hi there, it is so frustrating to be unable to use paren matching (like in show-paren mode, or C-M-f & friends) when I use smileys. And this *does* happen; comments in, say, elisp-mode seem to be safe, but in LaTeX smileys do break my workflow. Try entering this in AUCTeX: \textbf{Hello :-)} then put the point at the EOL and press C-M-b. I have a dream: to have the s-exp functions ignore closing parens, brackets etc. /after/, say, things matching [;:B]-? (this regex should probably cover the most basic cases). AFAIK, these functions are deeply hardcoded in Emacs; its behavior here seems to be inborn and instinctive rather than learned and reflective, so to speak. (I.e., it is based on the `scan-sexp' function, which is written in C rather than Elisp.) I imagine that redefining scan-sexp in Elisp is possible, but there might be problems with performance. Did anyone try that? Am I the only one with this problem, actually? -- Marcin Borkowski This email was proudly sent http://mbork.pl from my Emacs.