all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* not warn about smilies/emoticon "missing" parens
@ 2022-09-21  8:56 Emanuel Berg
  2022-09-22 13:42 ` Michael Heerdegen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Emanuel Berg @ 2022-09-21  8:56 UTC (permalink / raw)
  To: help-gnu-emacs

Why this

(require 'paren)
(show-paren-mode)
;; (setq show-paren-delay 0)
;; (setq show-paren-predicate '(not (major-mode . erc-mode))) ; DNC

doesn't work?

`show-paren-predicate' don't work like that?

I don't understand the docstring, either.

-- 
underground experts united
https://dataswamp.org/~incal




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

* Re: not warn about smilies/emoticon "missing" parens
  2022-09-21  8:56 not warn about smilies/emoticon "missing" parens Emanuel Berg
@ 2022-09-22 13:42 ` Michael Heerdegen
  2022-09-22 14:16 ` Michael Heerdegen
  2022-09-22 16:20 ` Marcin Borkowski
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Heerdegen @ 2022-09-22 13:42 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <incal@dataswamp.org> writes:

> Why this
>
> (require 'paren)
> (show-paren-mode)
> ;; (setq show-paren-delay 0)
> ;; (setq show-paren-predicate '(not (major-mode . erc-mode))) ; DNC

Doesn't look wrong at the first glance.

Michael.




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

* Re: not warn about smilies/emoticon "missing" parens
  2022-09-21  8:56 not warn about smilies/emoticon "missing" parens Emanuel Berg
  2022-09-22 13:42 ` Michael Heerdegen
@ 2022-09-22 14:16 ` Michael Heerdegen
  2022-09-22 16:20 ` Marcin Borkowski
  2 siblings, 0 replies; 6+ messages in thread
From: Michael Heerdegen @ 2022-09-22 14:16 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <incal@dataswamp.org> writes:

> Why this
>
> (require 'paren)
> (show-paren-mode)
> ;; (setq show-paren-delay 0)
> ;; (setq show-paren-predicate '(not (major-mode . erc-mode))) ; DNC
>
> doesn't work?
>
> `show-paren-predicate' don't work like that?

You could M-x trace-function or debug-on-entry `buffer-match-p' to check
what is going on (or what isn't).

Michael.



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

* Re: not warn about smilies/emoticon "missing" parens
  2022-09-21  8:56 not warn about smilies/emoticon "missing" parens Emanuel Berg
  2022-09-22 13:42 ` Michael Heerdegen
  2022-09-22 14:16 ` Michael Heerdegen
@ 2022-09-22 16:20 ` Marcin Borkowski
  2022-09-23 11:27   ` Emanuel Berg
  2 siblings, 1 reply; 6+ messages in thread
From: Marcin Borkowski @ 2022-09-22 16:20 UTC (permalink / raw)
  To: Emanuel Berg; +Cc: help-gnu-emacs


On 2022-09-21, at 10:56, Emanuel Berg <incal@dataswamp.org> wrote:

> Why this
>
> (require 'paren)
> (show-paren-mode)
> ;; (setq show-paren-delay 0)
> ;; (setq show-paren-predicate '(not (major-mode . erc-mode))) ; DNC
>
> doesn't work?
>
> `show-paren-predicate' don't work like that?
>
> I don't understand the docstring, either.

http://mbork.pl/2015-10-17_xkcd-541_mode

Note: contrary to what I wrote there, that code did not make it into the
book.

Hth,

-- 
Marcin Borkowski
http://mbork.pl



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

* Re: not warn about smilies/emoticon "missing" parens
  2022-09-22 16:20 ` Marcin Borkowski
@ 2022-09-23 11:27   ` Emanuel Berg
       [not found]     ` <87pmfi3yuy.fsf@mbork.pl>
  0 siblings, 1 reply; 6+ messages in thread
From: Emanuel Berg @ 2022-09-23 11:27 UTC (permalink / raw)
  To: help-gnu-emacs

Marcin Borkowski wrote:

>> Why this
>>
>> (require 'paren)
>> (show-paren-mode)
>> ;; (setq show-paren-delay 0)
>> ;; (setq show-paren-predicate '(not (major-mode . erc-mode))) ; DNC
>>
>> doesn't work?
>>
>> `show-paren-predicate' don't work like that?
>>
>> I don't understand the docstring, either.
>
> http://mbork.pl/2015-10-17_xkcd-541_mode

OK, but isn't this the purpose of `show-paren-predicate'?
So it can't be done that way? If it can't, that capacity must
be added and in a straightforward way which is super-easy to
turn on and off ...

> Note: contrary to what I wrote there, that code did not make
> it into the book.

Oh man, you have to read a BOOK to solve this? And worse, it
isn't even included? :)

Where's the book?

-- 
underground experts united
https://dataswamp.org/~incal




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

* Re: not warn about smilies/emoticon "missing" parens
       [not found]     ` <87pmfi3yuy.fsf@mbork.pl>
@ 2022-09-27  4:56       ` Emanuel Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2022-09-27  4:56 UTC (permalink / raw)
  To: help-gnu-emacs

Marcin Borkowski wrote:

>> Where's the book?
>
> I meant my Elisp textbook.

Yes, I understood, do you have it as a PDF? I'll print it at
all my tech facilities this instant :)

> I don't know about `show-paren-predicate'. Neither does my
> Emacs.

It's a variable in paren.el, you don't have it?

-- 
underground experts united
https://dataswamp.org/~incal




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

end of thread, other threads:[~2022-09-27  4:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21  8:56 not warn about smilies/emoticon "missing" parens Emanuel Berg
2022-09-22 13:42 ` Michael Heerdegen
2022-09-22 14:16 ` Michael Heerdegen
2022-09-22 16:20 ` Marcin Borkowski
2022-09-23 11:27   ` Emanuel Berg
     [not found]     ` <87pmfi3yuy.fsf@mbork.pl>
2022-09-27  4:56       ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.