From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: The will always left justify a line. Date: Wed, 14 Jul 2021 21:51:51 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31777"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 14 15:52:43 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3fJa-00086a-Ri for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 15:52:42 +0200 Original-Received: from localhost ([::1]:44486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3fJY-00048M-T5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 09:52:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3fJ1-00048A-KQ for help-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:52:07 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:37491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3fIz-00035G-CY for help-gnu-emacs@gnu.org; Wed, 14 Jul 2021 09:52:07 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id h19so3508006ljl.4 for ; Wed, 14 Jul 2021 06:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/B9Y/2UtvcGNn0Vl3UVWElVWQsjzBhV3ddq1q6M/VPg=; b=NRS/4/Hl4meNyDachS6t06vbTQZxKAQbhSRfN1/n3GGGUigsUo7aZvMdcBNx1bgTI3 J6Q4rxEY+pyy5mv0BxtJgR/uxwTwlqx8lNuHQsppgNM+2ZXhJHZAA3Dt4GqmWvaY5qAl MbPkEftgUnTkUPLqWmPs4DEC2ty/PH5pMAcR2KHL5i7RUjyC5c2jFq9epeVq9l8R92zn mKuawgmyW4xUaclawfJvKX6qiv0cgGggkF5HkNH0h1bHE7cHR0nOLeowiblaXLiHXHzH a+qd6bFGZOXXqWXxYnEAVtVMHGhZcJDobUgfZn2ikhfjSrIKO3DqhJkUEBL+t1mP/iDg LU7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/B9Y/2UtvcGNn0Vl3UVWElVWQsjzBhV3ddq1q6M/VPg=; b=N+zZtxCpqv05vPxpYNMia6FaZCf15CK+9VxO6WZLhXxAqoLUBAW4bUHgTeuPjJsOnM opdTX28hI3iSKWrw6QOV5Ttq1L43lbhedNTpxAqmiC1V0XUksBVHFc+MXkL4KrK/+3WX eaOW5rwhpJs7e/x5dwp0IMmAwkIsBy9EXHsZDdMq6vZVsJsz0zzSeUEbcoKjcAbHTrlF jPOM2yjGZrCMGhnePgRylUHcxSudEeB3C2q4NAJS5YnKY33Z6LjVAp9za6lIqecHJEv7 8Lm9H34uiZc6JqBugZ1fVeWbxhkIsoa6GtH5LvR/gF3EdFBDmfQdWwLVdyah0oL5c0sv uarg== X-Gm-Message-State: AOAM53107v/OPJFJHKQjuN8Ui+TAg6eKWjyQV27IqCzYyLbGZYpL6U8w HMMshta+veSvOjIYLuMFZQve1Ln0WkmDJkVc2Vk= X-Google-Smtp-Source: ABdhPJxdDs9X2IB3EunNN1H7KkYeiZyumsQ2HsDLxQYkReFZf/OIS4uehWhqPahRnqTxQaf3P4xx6KoCQcdapZmHgXc= X-Received: by 2002:a2e:9652:: with SMTP id z18mr9364155ljh.413.1626270723541; Wed, 14 Jul 2021 06:52:03 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x233.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:131694 Archived-At: On Wed, Jul 14, 2021 at 9:40 PM Stefan Monnier via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao [2021-07-14 10:18:12] wrote: > > I tried with `emacs -Q' and find that the will always left > > justify a line. > > That is not true. The behavior will depend on the major mode > (basically by default RET will first reindent the current line (in most > major modes, anyway)). > > > Any hints for this behavior? > > My crystal ball suggests that you're using the wrong major mode. But disable the `electric-indent-local-mode' really does the trick for a specific buffer. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province