unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* XKCD/541 compliance, anyone?
@ 2014-12-04 21:16 Marcin Borkowski
  2014-12-04 22:34 ` Stefan Monnier
  2015-03-15  1:40 ` Marcin Borkowski
  0 siblings, 2 replies; 24+ messages in thread
From: Marcin Borkowski @ 2014-12-04 21:16 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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.



^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-03-15 18:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 21:16 XKCD/541 compliance, anyone? Marcin Borkowski
2014-12-04 22:34 ` Stefan Monnier
2014-12-04 23:10   ` Marcin Borkowski
2014-12-05 22:33   ` Marcin Borkowski
2014-12-05 23:41     ` Artur Malabarba
2014-12-05 23:48       ` Marcin Borkowski
2014-12-31  9:19   ` Marcin Borkowski
2015-01-01 17:07     ` Stefan Monnier
2015-01-01 21:41       ` Marcin Borkowski
2015-01-02  4:07         ` Stefan Monnier
2015-01-02 10:09           ` Marcin Borkowski
2015-01-03  1:47             ` Stefan Monnier
2015-01-07 21:55               ` Marcin Borkowski
2015-01-02 14:39       ` Marcin Borkowski
2015-01-03  1:49         ` Stefan Monnier
2015-01-07 22:09       ` Marcin Borkowski
2015-01-07 22:37         ` Stefan Monnier
2015-01-08  1:09           ` Marcin Borkowski
2015-01-08  1:49             ` Stefan Monnier
2015-01-08  2:37               ` Marcin Borkowski
     [not found]               ` <mailman.17449.1420684651.1147.help-gnu-emacs@gnu.org>
2015-01-08  3:11                 ` Stefan Monnier
2015-01-08 14:10                   ` Marcin Borkowski
2015-03-15  1:40 ` Marcin Borkowski
2015-03-15 18:39   ` Stefan Monnier

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 read-only IMAP folder(s) and NNTP newsgroup(s).