* selectively turning off smiley
@ 1998-06-17 9:39 Darren/Torin/Who Ever...
1998-06-17 16:36 ` Wes Hardaker
0 siblings, 1 reply; 5+ messages in thread
From: Darren/Torin/Who Ever... @ 1998-06-17 9:39 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
I tried the following to turn off smiley in perl5-porters but leave it
on in other groups (in my group parameters)
(tmq-dummy
(save-excursion
(set-buffer gnus-article-buffer)
(make-local-hook
'gnus-article-display-hook)
(remove-hook
'gnus-article-display-hook
'gnus-smiley-display t)))
I've tried this both with and without the save-excursion/set-buffer
replaced by progn. Neither works. I've also thought of just running
smiley-toggle-extents on each article shown in p5p. But it seems a
waste to convert every smiley and then convert them all back.
I don't know lisp that well. I've only learned as much as I've needed
to change Emacs to do (mostly) what I want. Therefore, I could be
missing something...
Thanks,
Darren
- --
<torin@daft.com> <http://www.daft.com/~torin> <torin@debian.org> <torin@io.com>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-800-921-4996
@ Sysadmin, webweaver, postmaster for hire. C/Perl/CGI programmer and tutor. @
@ Make a little hot-tub in your soul. @
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
iQCVAwUBNYeOxY4wrq++1Ls5AQFr8gQAoItqB/r43RZjCpt1314lCVzBD1fNvID3
h+e68q9QoC+A0OzJQXvbGzY0EKV8oHR2NIQC+7NbcBjH/sK8eHuXn5jak5L/KjoV
uiwzqp5zHix3wHqLUkmoQm7mdf3eZ7XYjD/94aK/XjtconFM/0xRjHeP0D4LU50W
KLqwAi3BiVc=
=Gqzp
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: selectively turning off smiley
1998-06-17 9:39 selectively turning off smiley Darren/Torin/Who Ever...
@ 1998-06-17 16:36 ` Wes Hardaker
1998-06-19 1:18 ` Darren Stalder
0 siblings, 1 reply; 5+ messages in thread
From: Wes Hardaker @ 1998-06-17 16:36 UTC (permalink / raw)
Cc: ding
>>>>> On 17 Jun 1998 02:39:18 -0700, "Darren/Torin/Who Ever..." <torin@daft.com> said:
Darren> (make-local-hook
Darren> 'gnus-article-display-hook)
^^^^^^^^^^^^^^^^^^^^^^^^^
The problem is that group parameters will apply to the summary buffer,
not the article buffer (which is what you need)...
I've always meant to write a group parameter hack that would do this
for me, but never have...
--
"Ninjas aren't dangerous. They're more afraid of you than you are of them."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: selectively turning off smiley
1998-06-17 16:36 ` Wes Hardaker
@ 1998-06-19 1:18 ` Darren Stalder
1998-06-19 17:13 ` Wes Hardaker
0 siblings, 1 reply; 5+ messages in thread
From: Darren Stalder @ 1998-06-19 1:18 UTC (permalink / raw)
-----BEGIN PGP SIGNED MESSAGE-----
Wes Hardaker, in an immanent manifestation of deity, wrote:
>>>>>> On 17 Jun 1998 02:39:18 -0700, "Darren/Torin/Who Ever..." <torin@daft.com> said:
>Darren> (make-local-hook
>Darren> 'gnus-article-display-hook)
> ^^^^^^^^^^^^^^^^^^^^^^^^^
>
>The problem is that group parameters will apply to the summary buffer,
>not the article buffer (which is what you need)...
Hmm. So, I should write a wrapper around gnus-smiley-display that
checks group to see if it should run or not.
>I've always meant to write a group parameter hack that would do this
>for me, but never have...
I suspect this is past my meager lisp skills or my time to gain better
ones.
Thanks,
Darren
- --
<torin@daft.com> <http://www.daft.com/~torin> <torin@debian.org> <torin@io.com>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-800-921-4996
@ Sysadmin, webweaver, postmaster for hire. C/Perl/CGI programmer and tutor. @
@ Make a little hot-tub in your soul. @
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: noconv
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
iQCVAwUBNYm8ebQuaHP6LBjxAQHzNQQAvaupGHtIaeyu3R8GtvlJ2YlGmMGYH4gA
ojcdXh/vs6rhCHguEyEffk+0iINFF4lf5iyLkpJ/D+qUgh/EjNEUh1b+X97HhDao
IVe5nXWYf53+XjzYIfJxekave/4cyp+h5EYrG8xaUXyNNnz2VaKXovEpIiA5/ETM
5OUQHH+6K4g=
=3wEq
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: selectively turning off smiley
1998-06-19 1:18 ` Darren Stalder
@ 1998-06-19 17:13 ` Wes Hardaker
1998-06-19 23:02 ` Francois Felix Ingrand
0 siblings, 1 reply; 5+ messages in thread
From: Wes Hardaker @ 1998-06-19 17:13 UTC (permalink / raw)
Cc: ding
>>>>> On 18 Jun 1998 18:18:50 -0700, Darren Stalder <darren@u.washington.edu> said:
Darren> Hmm. So, I should write a wrapper around gnus-smiley-display that
Darren> checks group to see if it should run or not.
Yep.
--
"Ninjas aren't dangerous. They're more afraid of you than you are of them."
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: selectively turning off smiley
1998-06-19 17:13 ` Wes Hardaker
@ 1998-06-19 23:02 ` Francois Felix Ingrand
0 siblings, 0 replies; 5+ messages in thread
From: Francois Felix Ingrand @ 1998-06-19 23:02 UTC (permalink / raw)
Cc: torin, ding
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
Wes Hardaker <wjhardaker@ucdavis.edu> writes:
> >>>>> On 18 Jun 1998 18:18:50 -0700, Darren Stalder <darren@u.washington.edu> said:
>
> Darren> Hmm. So, I should write a wrapper around gnus-smiley-display that
> Darren> checks group to see if it should run or not.
>
> Yep.
Something like:
(defadvice gnus-smiley-display (around felix-gsd activate)
(if (not (and (boundp 'gnus-newsgroup-name)
(string-equal gnus-newsgroup-name
"foo.bar")))
ad-do-it
)
)
Have not tried it... just proposing something close to another advice I use.
--
-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Francois Felix INGRAND "France 1998: 1 ménage sur 10 vit avec moins
Personal: felix@dial.oleane.com de 2700 F par mois, 8,5 millions de personnes
Professional: felix@laas.fr vivent en dessous du seuil de pauvreté." INSEE
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-06-19 23:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-17 9:39 selectively turning off smiley Darren/Torin/Who Ever...
1998-06-17 16:36 ` Wes Hardaker
1998-06-19 1:18 ` Darren Stalder
1998-06-19 17:13 ` Wes Hardaker
1998-06-19 23:02 ` Francois Felix Ingrand
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).