From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: replace-regexp, the byte-compiler, docstrings, and suggestions Date: Fri, 17 Oct 2014 03:09:08 +0200 Organization: Aioe.org NNTP Server Message-ID: <87h9z35wp7.fsf@debian.uxu> References: <874mv9uopo.fsf@debian.uxu> <87tx336042.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413508226 15969 80.91.229.3 (17 Oct 2014 01:10:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 01:10:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 03:10:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xew3g-0000HM-0G for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2014 03:10:20 +0200 Original-Received: from localhost ([::1]:56205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xew3f-0008Ez-76 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 21:10:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: tVmDpoMHMwv4gohs+B1D3A.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:OgoW6/AsHiTjFbYTSwRMTKGquM0= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:208197 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100473 Archived-At: Drew Adams writes: >> (indent-rigidly (region-beginning) (region-end) 4) >> seems to sometimes insert tabs (one tab and one >> space in text-mode, but four spaces in message-mode >> what I can see). If you can have it not do that >> (insert tabs, ever) I'm happy. > > C-h v indent-tabs-mode Interesting! Now I have this to get away with tabs: (defun untab-all () (if (not (member major-mode '(makefile-gmake-mode makefile-mode) )) ; exceptions (untabify (point-min) (point-max)) ) nil) ; tell 'did not write buffer to disk' (setq before-save-hook '(untab-all delete-trailing-whitespace)) Note the Makefile exceptions because what it seems they don't reason with whitespaces instead of tabs. (Yes, a bit surprising, like Python, only I don't remember if that compulsory indentation stretched to include the indentation-char(s) as well.) Anyway I just might remove all that stuff since I myself never include tabs and if the indentation doesn't either, where should they come from to begin with? Only with the Makefile stuff I have to invert the current situation to instead have the Makefiles actually keep indent-tabs-mode as t. Ha ha, and to think some people think programming is difficult! -- underground experts united