From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Strange behaviour of auto-fill Date: Sat, 24 Apr 2021 00:20:57 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20581"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: michael-franzese@gmx.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 24 00:21:26 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 1la4Au-000591-UD for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 24 Apr 2021 00:21:24 +0200 Original-Received: from localhost ([::1]:50898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1la4Au-00051W-0a for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 23 Apr 2021 18:21:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la4AZ-00051K-4s for help-gnu-emacs@gnu.org; Fri, 23 Apr 2021 18:21:03 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:33601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la4AV-0001y0-Vl for help-gnu-emacs@gnu.org; Fri, 23 Apr 2021 18:21:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1619216457; bh=0/WJx6el46+dHO+Nh4e9pw0Wnr787ENkHA2V2FhX0Jg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=HWEAt/5AUseXSFzoN0uWkbLbcyr/2wRT6oEfm0Q2zy/VuijzhoU+8b7nCs2fQA44m f/gKkRKfhMrP2BZsRld3BQwV1xi7MzRTfiZHih6mpKT5KuQDgo0PSy2BeF6FDOmgLN Y1lnEwECg0SwYvibN/BecW88XAFg0loM7fqZraEI= 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); Sat, 24 Apr 2021 00:20:57 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:I3+wW29fquHopr1m1LuW2a+OOzwgL0hiLjxMyI3vO0QOCC47wwWixJUMXCUJfTEw2l3oM WneC5Cc9kJfVamUROo5kCmNjKBNHYEqAOgxXSm18UykpqIRsJBClaIgJ71eCh9BTRz83ygGXxont /kgR165nqBgBDsgCpKF1E5gmoXruORsM+/ol3P7SzrgWduVNgv82QxaMj+5f8FYpgECc/pxdi5RY SAEE91P4iZs/TcvWSSRlgOCWWsvZomVnJAOBaH+tFDcr55TyEh89h86zjj9tJj3GYfeduLb+d6H6 WI= X-UI-Out-Filterresults: notjunk:1;V03:K0:zbiwN2v/CSA=:QgR+I0BH4vpaVv9kQHWizl kqiHpXiQXJwF+yJ5SslmbVeCWrXm5iUXb78xazhk8hVTKVwoijN/lEm070FOeItrRqRQqrTwm EWLnyzdWb394nbl/EpOtnXzelpQ6m/HHOCWqVBTHpKc66VCJzp2x8H19C+kmLGhQI/Mu1DNwY fgMc3s/da0BQ1l6sVrpkZAAp1axz+FCIut2RHDhry9h2jI8lPdbBUsUkFByR9l5FBRXR2ueME rxi0yEUCxPaHRG4VWqCyV99Ge6tgviw3Zo9/e+kgqTmacj82HwJF1x1T2OcOVphZhVLsQ05b9 AML02WkqQqZR3p6H+0W/QHWyjYy/L2EAlCgHcvillPLR1uhFo5v0xO1nHy7rTGcATtbRbKRwj mHAWJeDPNvDCGDBiKXmYEcWisxLNz1xxzHK9yN84tX1uzGekdheUw8X6xyJDgM9JjFPS+1QAx SKapAy0DtX2Gs+8czpluYgJ9Lybs9zaGStVFRqyepI6KLJQ7hjhW89NvY4OFT1jjNwDVEO0EA tITjcIsFhFo8A+ncYDj0e8M4xlNlh1yrT7IBn9QVcxkUY5XMX6NiOHMnKz/mbkv1/9iRrNEYy OXLuJvrQRB4165RgQdkt7VbdUGD3AuT5s/zYyMRFIOOfyglpXuTYX+wOPjBo9FgySDAp1t9cP q9eX9NvtbkVqkkntSKf7JMoDU+DSrT/QsZH9BG/i+21t71Tufz4NOLAgLKcppckZrdTKRKhpT PmYxGdt+JILptEgpYYOmLxVzktsjnVl11GMJKP9BQlg5MordnBj3abquCLzbZVOWtbkzreuN Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:129135 Archived-At: Have had a go months ago on that. It totally defeated me and gave up on it. > Sent: Saturday, April 24, 2021 at 9:42 AM > From: michael-franzese@gmx.com > To: "Help Gnu Emacs" > Subject: Strange behaviour of auto-fill > > I am trying to set "auto-fill", with some tools to change "on-off" behav= iour. > > 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) > > >