From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: replace-regexp, the byte-compiler, docstrings, and suggestions Date: Thu, 16 Oct 2014 19:26:54 -0700 Message-ID: References: <874mv9uopo.fsf@debian.uxu> <87tx336042.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1413512860 10349 80.91.229.3 (17 Oct 2014 02:27:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2014 02:27:40 +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 04:27:34 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 1XexGP-0007rm-0N for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2014 04:27:33 +0200 Original-Received: from localhost ([::1]:56573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XexGO-0004Qf-Hx for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 22:27:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XexG9-0004Q4-EO for help-gnu-emacs@gnu.org; Thu, 16 Oct 2014 22:27:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XexG8-0001Ua-9h for help-gnu-emacs@gnu.org; Thu, 16 Oct 2014 22:27:17 -0400 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:53025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XexG8-0001UM-4o for help-gnu-emacs@gnu.org; Thu, 16 Oct 2014 22:27:16 -0400 Original-Received: by mail-oi0-f49.google.com with SMTP id a3so3640053oib.36 for ; Thu, 16 Oct 2014 19:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Vkjzt9rEjwHPZ+/Ru/whihpwqOGBxAJeQAuizT3OuUc=; b=HqjFZr39X0jJl/Bt8cgpM3ltn0SSKyVl3Bkuf6wqA+kPFI93fCCHOXHzesze9xPWxb WmDMI2g6L7YH1nkRHTPmfmvp5BdK32LSmxVNAtZwjzbB9a3dX0sK+0t7NNG5DYRt7N00 SEm0tfn8qDk8P+SOV0hQMTj/kIiyVRJjg+uqF2062gaQy+CMWgND6SDnr/gW4ErCKYol 0k7SeXcT+k/0ghQFutHHuNst8xM82lOgk7FiV6X2x9msWjVP27iFZIvgL2lGbAM4fBFA nUt9H7M/4bvWEDG1gbehx3b4eyWM5/NrLKk62XdFchsr3JtdJ60uOwsd7PEp3gQD5h+n AISw== X-Received: by 10.202.216.11 with SMTP id p11mr4015008oig.47.1413512835245; Thu, 16 Oct 2014 19:27:15 -0700 (PDT) Original-Received: by 10.76.125.194 with HTTP; Thu, 16 Oct 2014 19:26:54 -0700 (PDT) In-Reply-To: <87tx336042.fsf@debian.uxu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::231 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:100475 Archived-At: Emanuel Berg wrote: > Yeah, indent-rigidly is close only this > > (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. (I have tabs removed on save but I > still don't like to insert them for the same reason I > have them removed.) You can keep tabs from being inserted by setting `indent-tabs-mode' to nil. It's a buffer-local variable, so what I do is `setq-default' it to nil and then override that in hooks for modes where I really do want tabs (e.g. `makefile-mode'). > Question is (which I didn't mention in my OP), should > the region be refilled after it gets the new margin, > and, if so, what should the fill-column be? So far I deal with that on a case-by-case basis. If I'm quoting code, I probably don't want it to be filled, but if it's text I probably do. Off-hand I can't think of a reason to use a different `fill-column' than whatever is already set for the buffer. >> To indent by four spaces you would do something like >> C-4 C-x > > Yeah, you mean `C-u 4 C-x TAB'? (`C-x TAB' is > `indent-rigidly'.) `C-N foo' and `C-u N foo' both give `foo' a numeric argument `N' (for any N 0-9). I often find the former a bit nicer since, for example, I can do something like press control with my right hand and (without releasing control) press 4 and then x with my left hand. You can also use `M-N' in exactly the same way. Of course, which is more convenient varies a lot by the specific key sequence and, even more so, by taste. -- john