From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: nospam55 Newsgroups: gmane.emacs.help Subject: C-x TAB indent-rigidly default set to 4 columns, not to 1 Date: Sun, 16 May 2004 23:19:24 +0200 Organization: itposets Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2gpt2tF5glsvU1@uni-berlin.de> Reply-To: nospa@no.yahoo.no NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1084736001 7649 80.91.224.253 (16 May 2004 19:33:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 16 May 2004 19:33:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 16 21:33:14 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPRNq-0008IS-00 for ; Sun, 16 May 2004 21:33:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPRNF-0003UF-F8 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 May 2004 15:32:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,alt.religion.emacs Original-Followup-To: gnu.emacs.help Original-Lines: 41 Original-X-Trace: news.uni-berlin.de gzjwod6sLZ5qNlyKs8DS5Alt2xdyaG9WM3vqqpFyFwdKETGL+V User-Agent: KNode/0.7.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:123210 comp.emacs:84760 alt.religion.emacs:8528 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18504 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18504 Hi! The (global-set-key [f1] 'indent-rigidly) ; works and is convenient, however I would like to make a mutation irFrequent of indent-rigidly which defaults to indenting by 4 columns instead of 1 , and then bind (global-set-key [f1] 'irFrequent) ; the (defun irFrequent (interactive) (indent-rigidly 4) ) fails because indent-rigidly expects 3 args: I have to specify the region in the func call ; the (defun irFrequent (a b c) (interactive "p\nr") (indent-rigidly b c a) ) seems to be behave like indent-rigidly ; the (defun irFrequent (a b c) (interactive "P\nr") (if (not a) (setq a 4) ) (indent-rigidly b c a) ) seems to be almost the solution: it almost works as I hoped , the problem is that If I specify prefix arg 4 with C-u it fails, error message : irFrequent: Wrong type argument: number-or-marker-p, (4) what is wrong? thanks for your time