[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incompatible change of toogle-truncate-lines
From: |
Stefan Monnier |
Subject: |
Re: incompatible change of toogle-truncate-lines |
Date: |
Wed, 24 May 2006 14:04:11 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Unfortunately the defun in Emacs 21 [1] accepts no argument and the
> version in Emacs 22 [2] must be called with one argument.
> Is there any problem with making ARG optional in Emacs 22? May I
> install this patch?
Sounds like the right thing to do, indeed.
> If not: Is there a simple way to check if `toogle-truncate-lines'
> expects zero or one arguments? (Well, I could check
> `emacs-major-version', but that's ugly.)
Although your fix is much better, a generic answer to this question could
look like:
(condition-case nil
(toggle-truncate-lines t)
(wrong-number-of-arguments (toggle-truncate-lines)))
-- Stefan