From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#12413: 24.2.50; M-j should be bound to default-indent-new-line Date: Thu, 25 Feb 2016 16:13:59 +1030 Message-ID: <87vb5dxs2o.fsf@gnus.org> References: <504F05EA.6000703@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456379122 13514 80.91.229.3 (25 Feb 2016 05:45:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 05:45:22 +0000 (UTC) Cc: 12413@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 06:45:10 2016 Return-path: Envelope-to: geb-bug-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 1aYoje-00012s-CX for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 06:45:10 +0100 Original-Received: from localhost ([::1]:40227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYojd-0004MP-NI for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 00:45:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYoja-0004LX-FW for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYojW-0008Al-CB for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYojW-0008Ah-8T for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYojW-0004l5-3W for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Feb 2016 05:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12413 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12413-submit@debbugs.gnu.org id=B12413.145637906818239 (code B ref 12413); Thu, 25 Feb 2016 05:45:02 +0000 Original-Received: (at 12413) by debbugs.gnu.org; 25 Feb 2016 05:44:28 +0000 Original-Received: from localhost ([127.0.0.1]:44536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYoiy-0004k7-1p for submit@debbugs.gnu.org; Thu, 25 Feb 2016 00:44:28 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:56891) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYoiw-0004jz-Gr for 12413@debbugs.gnu.org; Thu, 25 Feb 2016 00:44:26 -0500 Original-Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYoia-0003Yo-4i; Thu, 25 Feb 2016 06:44:04 +0100 In-Reply-To: <504F05EA.6000703@yandex.ru> (Dmitry Gutov's message of "Tue, 11 Sep 2012 13:35:38 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYoia-0003Yo-4i MailScanner-NULL-Check: 1456983844.95723@4o5Ak3bafbx1pR9l8FKxrA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113770 Archived-At: Dmitry Gutov writes: > A major mode can change the value of comment-line-break-function, but > currently it's only used from `do-auto-fill'. I think that doesn't make > sense, the value should affect the M-j command, too. [...] > -(define-key esc-map "j" 'indent-new-comment-line) > -(define-key esc-map "\C-j" 'indent-new-comment-line) > +(define-key esc-map "j" 'default-indent-new-line) > +(define-key esc-map "\C-j" 'default-indent-new-line) [...] > - ((or `newline `newline-and-indent `open-line `indent-new-comment-line > + ((or `newline `newline-and-indent `open-line `default-indent-new-line I think this makes sense... probably... does anybody want to weigh in on this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no