From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Patch: Follow convention for reading with the minibuffer. Date: Thu, 29 Sep 2005 23:57:29 +0300 Organization: JURTA Message-ID: <877jczfrj2.fsf@jurta.org> References: <87psqy1sk1.fsf@pacem.orebokech.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1128034139 31234 80.91.229.2 (29 Sep 2005 22:48:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2005 22:48:59 +0000 (UTC) Cc: romain@orebokech.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 30 00:48:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EL7CL-0005TL-8l for ged-emacs-devel@m.gmane.org; Fri, 30 Sep 2005 00:48:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EL7CJ-0002e8-8U for ged-emacs-devel@m.gmane.org; Thu, 29 Sep 2005 18:48:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EL77D-0000hd-Gr for emacs-devel@gnu.org; Thu, 29 Sep 2005 18:42:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EL779-0000fd-95 for emacs-devel@gnu.org; Thu, 29 Sep 2005 18:42:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EL779-0000fA-4h for emacs-devel@gnu.org; Thu, 29 Sep 2005 18:42:55 -0400 Original-Received: from [194.126.101.114] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EL764-0000Fz-N0; Thu, 29 Sep 2005 18:41:48 -0400 Original-Received: from mail.neti.ee (80-235-41-77-dsl.mus.estpak.ee [80.235.41.77]) by Relayhost1.neti.ee (Postfix) with ESMTP id B79F416BE; Fri, 30 Sep 2005 01:41:58 +0300 (EEST) Original-To: Thien-Thi Nguyen In-Reply-To: (Thien-Thi Nguyen's message of "24 Sep 2005 18:09:52 -0400") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:43370 Archived-At: > the elisp (and other) code i maintain never uses tabs for indentation, > accomplished primarily by setting `indent-tabs-mode' to nil. when i > edit code that uses tabs for indentation, i leave the part not relevant > to the edit alone but take no extra steps to use tabs for the part that > i'm editing. i wasn't aware of any convention that contradicts this > practice and no one has complained about it. am i missing something? I much prefer using spaces instead of tabs too. But since I noticed that preferable indentation in the Emacs source tree is with tabs I put into .emacs the following code: (defvar indent-tabs-mode-dirs (list (file-name-directory (directory-file-name data-directory))) "Set indent-tabs-mode in all files under specified subdirectories.") (defun indent-tabs-mode () "Set indent-tabs-mode in files under dirs in `indent-tabs-mode-dirs'." (if (and indent-tabs-mode-dirs buffer-file-name (string-match (concat "^\\(" (mapconcat 'regexp-quote indent-tabs-mode-dirs "\\|") "\\)") buffer-file-name)) (setq indent-tabs-mode t))) (add-hook 'find-file-hooks 'indent-tabs-mode) -- Juri Linkov http://www.jurta.org/emacs/