unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: incompatible change of toogle-truncate-lines
Date: Wed, 24 May 2006 14:04:11 -0400	[thread overview]
Message-ID: <jwvirnvl2so.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <v964jvwez7.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Wed, 24 May 2006 18:43:24 +0200")

> 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

  reply	other threads:[~2006-05-24 18:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-24 16:43 incompatible change of toogle-truncate-lines Reiner Steib
2006-05-24 18:04 ` Stefan Monnier [this message]
2006-05-25  0:37 ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvirnvl2so.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).