From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Strange behaviour of auto-fill Date: Fri, 23 Apr 2021 23:42:49 +0200 Message-ID: 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="14362"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 23 23:53:32 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 1la3jv-0003br-Qu for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Apr 2021 23:53:31 +0200 Original-Received: from localhost ([::1]:52518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1la3ju-0001Py-T9 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Apr 2021 17:53:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la3Zf-0007nT-C9 for help-gnu-emacs@gnu.org; Fri, 23 Apr 2021 17:42:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:57581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la3Zd-00046a-7W for help-gnu-emacs@gnu.org; Fri, 23 Apr 2021 17:42:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619214169; bh=JPYPeTw4vOrzmJkZ27Fi6PM+0GOXNhqJGDmhDy6EIos=; h=X-UI-Sender-Class:From:To:Subject:Date; b=eMe3OjNaLOkU6ubLbOdvWSUmvZXK1ObaEQo/0WJMsdyDzi6s0cAVbbpZ+eWaidEoM zyvr9zBEvKZJPWDNzkE+VS5Lfl/ClJ2dA7nnCQzhf/UGq+QIu6Fa3ozCNzYUboyvDi dasT+QpJlIuLNajuizqjCCrseUvjzPc8eaI9LnjQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs03.server.lan [172.19.170.169]) (via HTTP); Fri, 23 Apr 2021 23:42:49 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:7tA+o7oljqmYFDkRTfYX/iA4aUy15K6l7dKLFFBY7vfKKsY8RE5gVrPE8q7mvyxfLSNIw zg3ofa0heHjRz/RjvsFtDQ44lx5vZK1Y96gaI1EPRX5AoIX2lkBTrqsaZq35yhIrUX/n6i4aOKdx lHJVV2Dsd1mLjLaW0T8QNQc+Pn58PjqT34SwgnaeOWo5JFcWfjc9phrogG01sihY77gn5dA5bwM3 OLtDhU9czYt2WEv4gVmLdx/GnxSqLV7YUziYkh8xDdlUPJ+9/WVKhHF+5+x8lTOoLVO77vmMUNwL Fs= X-UI-Out-Filterresults: notjunk:1;V03:K0:t4eraIXnTjc=:aLJ5YiG6mB4h6zoB3b+Dwf 8gPTS7hsUW7HeM6QyBW0y1C3qp2iCSpFby3SpXUhvXmD1diCg29y/Amw3EE5pf5pA8Je2RSS7 ChG2c5w1c8wZL55N5ZT/W4cBkqGPd1F57+ZakYw3G6ipASdkEkyIbb7OT8fug2vdhCPESeh/u VSu+gLqft65m7x84FspZLYmO+/24czfHD8DJ91D0iyWMRvbV4RJ8Pz0424eLUx6ZWFEV7za8Y 0Dj2ZfXckSaymM1Im2SN7bzM8/9o64Hn2seD9SBslxgx04eof8q3egynmbOHs+4YSk59Ke+Ob 9b5Z70e5joDKJJ5Zjtg5k2CkJgGy/otF185URxz4sLvTeSjR60ygmdd8DRUuBTsuxlS3Rlu/e dncwB47r90k0G28IIKeuicNjiTyNGSAUVO84OkS9zcMG6AeNgTh7u9PnPQx7T8EZ+ssGzR2ml ytT4KEYtdI7XuRvJ1TrUKLhVXje+BAP8LTzo8OuLGudV6jHpjl4t0ToCF4+Gmm2EXHMYAh7oq Gi8SSTirDDfIQAUAIO5qq1atE4LDCJ9WRsuukGRSFnsvcsPV7oJaqjP8qsc28QQPzIM2tfQLq +JoyHnUVBMOqP7u/bxwlwk7y9/l3/GL0mHOZ42lb8ozvhIeNvVyH3GkKBVU2u9Q0/KnAuJwXx j7Vm3TnJZSU2jk7KFiqt6VGA7ESvOYaqAVrJ5f1ah8UTW09792/dW6WUoAF+vQ2ThnVkyOnnf wVlg9sMPEUQbAqLIJsrETGyAuuoI1hfFES3lR6FZQWet1+Yt7qN2Stud1LPa5o3gxFwQvTcW Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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:129132 Archived-At: I am trying to set "auto-fill", with some tools to change "on-off" behaviour. Things get very confusing. When I comment out "(setq-default auto-fill-function 'do-auto-fill)", "auto-fill-mode" will still break comments even though "break-line" is "0" and one sets "(auto-fill-mode 0)". (setq-default auto-fill-function 'do-auto-fill) (defvar break-line 0) (defun break-line-ddd () "Breaks long lines using auto-fill tool." (interactive) (pcase break-line ((or 'nil 0) (setq comment-auto-fill-only-comments nil) (auto-fill-mode 0) (message "%s %s" "Disable: Break line; " break-line) (setq break-line 1)) (1 (setq fill-column 72) (setq comment-auto-fill-only-comments t) (auto-fill-mode 1) (message "%s" "Enable: Break only comments") (setq break-line 2)) (_ (setq comment-auto-fill-only-comments nil) (auto-fill-mode 1) (message "%s" "Enable: Break all long lines") (setq break-line 0)) )) (defun break-line-set () "Breaks long lines using auto-fill." (break-line-ddd) (global-set-key (kbd "H-b") #'break-line-ddd) ) (break-line-set)