From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: Line indents to middle when editing init.el: what the heck is happening? Date: Sat, 30 Jan 2016 15:43:11 +1100 Message-ID: <87vb6bekyo.fsf@gmail.com> References: <87vb6fzsi5.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1454129020 12006 80.91.229.3 (30 Jan 2016 04:43:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2016 04:43:40 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Tom Browder Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 30 05:43:33 2016 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 1aPNNl-0005YN-6R for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2016 05:43:33 +0100 Original-Received: from localhost ([::1]:37558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPNNj-0005IW-TJ for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2016 23:43:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPNNY-0005HL-Q9 for help-gnu-emacs@gnu.org; Fri, 29 Jan 2016 23:43:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPNNV-0000xO-IA for help-gnu-emacs@gnu.org; Fri, 29 Jan 2016 23:43:20 -0500 Original-Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:34172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPNNV-0000xK-A7 for help-gnu-emacs@gnu.org; Fri, 29 Jan 2016 23:43:17 -0500 Original-Received: by mail-pa0-x235.google.com with SMTP id uo6so52564823pac.1 for ; Fri, 29 Jan 2016 20:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=NU4dLezq3gsn3clheYaX/9iO6/KVnExA/V4/74KTogU=; b=qt2rQzXPQRl5K0T2x2akaDRrv/f6oA1uhXG2fdz4206g5rXgD2hagJqzustlQ+MnrV H8sfBvoALAkXzg15jIaV0Zakm1f6yekBiVP5J8ZNaxMDhnG8IUB3P9tuOsx6OemdT+Li 6GXhtmfvJCM0KQn7gILs5KKq3oZMQxACm5Vet3Dx3WCPUd2INcdrVQ7SpdMQUDup4QFL RaJMuO9M+eE9Cw86JZ1mbG16WjTtarE4tJ9H/RfgrcRx1kRmwPMMOgqgPKOQZnyn0xYZ hJI4Ezh7u45k/CuJDb7OTAk6wN2jhe1rXC0+1DhfTPyGidiano+pVLNERZM4J7tPO4DR pjSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; bh=NU4dLezq3gsn3clheYaX/9iO6/KVnExA/V4/74KTogU=; b=EGVvrcg5bu9/rlODT763CKxF1Y6nQAFW/cGmKUE0vXQ3WBDq7SyDCPX6CYI/P5Lx/H 5fPYM2OIwagMcjTvmxaboWUs0VaDjHt1uO/o0E0DJjMY0pvrV2Cex0cCTME3sHfuukoV FQufL1tmOgHdru5LsGzdqhlcTb1cq4+noKs6qx8P8IWkRFRSHbr4Na6ivNWWv9Hgv1D5 6Fw+8stBjX2o5dUsOwdTPRtXUaKRWRhzwFwv7Zv0e/sbaEMdg6HcyCO2WHnNbqVu/Csf snbAlf9rCL7AmgNBVmMn4D1dRSKqs+ls7YGbqt7ID6a9/Vm6Xp2atK0ySYpq6U7AxWxU EI7w== X-Gm-Message-State: AG10YOQJvv+Gl7SrNJ36PLyDEP5ExILpASH3fQk1r/abICFFcIULVpBzco5bsfCIhsN0Fg== X-Received: by 10.66.142.73 with SMTP id ru9mr19243481pab.121.1454128995937; Fri, 29 Jan 2016 20:43:15 -0800 (PST) Original-Received: from localhost (CPE-58-161-15-29.cqqy2.win.bigpond.net.au. [58.161.15.29]) by smtp.gmail.com with ESMTPSA id 89sm26959781pfi.2.2016.01.29.20.43.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jan 2016 20:43:15 -0800 (PST) User-agent: mu4e 0.9.16; emacs 24.5.3 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::235 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:108920 Archived-At: Tom Browder writes: > Ah, I am using a single semicolon! I have never heard of that > behavior before, and I don't remember seeing that in XEmacs (but > I started with an extensive init.el from one of the daddy > rabbits which may be the reason). It's part of the GNU Emacs coding conventions / recommendations; cf. this section of GNU Emacs Lisp Reference Manual: https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html#Comment-Tips > I'll see if a double-semicolon changes the behavior. BTW, do you > know how to change that behavior? Well, in terms of which column a single-semicolon comment will be aligned to, you can set the value of the variable `comment-column`. Afaik, to change how single-semicolon comments behave overall, you'd need to modify the variable `comment-indent-function` to point to a function that behaves the way you want (e.g. a modified version of the function `comment-indent-default`). > Thanks, Alexis. You're welcome. :-) Alexis.