[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reporting error to user...
From: |
Dmitry Gutov |
Subject: |
Re: Reporting error to user... |
Date: |
Tue, 05 Mar 2013 08:51:50 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) |
Oleksandr Gavenko <gavenkoa@gmail.com> writes:
> How to backport 'user-error' into early Emacs versions? Do I need to write
> a wrapper:
>
> (defun my-user-error (format &rest args)
> (if (fboundp 'user-error))
> (apply 'user-error format args)
> (apply 'error format args))
>
> in my mode and use 'my-user-error' instead if 'user-error'?
You can just copy the implementation, it's trivial.