help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hijack C function, use it transparently with in-between layer


From: Marcin Borkowski
Subject: Re: hijack C function, use it transparently with in-between layer
Date: Mon, 06 Jun 2016 05:46:37 +0200
User-agent: mu4e 0.9.16; emacs 25.1.50.3

On 2016-06-06, at 05:28, Emanuel Berg <embe8573@student.uu.se> wrote:

> The truth is down there!
>
> (defvar old-message)
> (fset 'old-message (symbol-function #'message))
>
> (defun message (format-string &rest args)
>   (unless (member format-string
>                   '(
>                     "It was just another system of control."
>                     "Mark set"
>                     ))
>       (apply `(old-message ,format-string ,@args) )))

Smart!  Tho not what I'd call "good style". ;-)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]