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: Auto Fill Comments Date: Tue, 24 Nov 2020 18:05:55 +0100 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="32879"; 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 Tue Nov 24 18:13:07 2020 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 1khbsJ-0008Ra-Qc for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 18:13:07 +0100 Original-Received: from localhost ([::1]:56852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khbsI-0001Js-Hs for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 12:13:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khblQ-0004Ve-3v for help-gnu-emacs@gnu.org; Tue, 24 Nov 2020 12:06:00 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:48575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khblN-000080-GN for help-gnu-emacs@gnu.org; Tue, 24 Nov 2020 12:05:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606237555; bh=oC9g6cB+revUAGMASRzUy5xSdeLEgGHhfJeYe+zLkuQ=; h=X-UI-Sender-Class:From:To:Subject:Date; b=XIpEQYaLiaqS7XaTIUQrbG5O6/dBf6/SugmkJ1nIY0kxE/m5/w0Q3iMft9pYWjclg LLf7JjNNPWlSYVzRZ9pDuqXsQPfmArrO9pVT2FxwWv9rVqtxNrARqfleSOpi6u6dtx Bm0hWDw2paiX8pssUBDS3I20KdoU8pRcX0WyCTq8= 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-bs16.server.lan [172.19.170.184]) (via HTTP); Tue, 24 Nov 2020 18:05:55 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:5MMcK9uf8ikaHEcKD9582NzPn8qD+7Sf3H14ydEu8UQ8cRnZBBNhEvgf3PcIJBxgObb62 WDPK9HY6Bj5ePWpTrhBWXp+IlUGWMRVi7TYLPuq+JLylJDpE/AyIAyLKZRLkRNdkWsxLBq/87mnn jdVsFoa/x30k23uNI62DRDRfhMwTINyjmJWsVek6SUas5+c+Qd/HXDz/LrlWmJU51a8n9WBtI3Tl G9QKkgj5WF0u1zfb2Gp1FW1eSAdYzigaW2Qa4CRclXmbPHzbYHc/1MBA6wvNVjosbnvAsxKgpFpH ho= X-UI-Out-Filterresults: notjunk:1;V03:K0:oCFTJvnOYic=:qWO7lLCLcelj4zgW+/oyg2 zm7g54PWTIIFyD0hmYKjqUhNkCrCWluIBA/a/z3FMNWhd0k2bV/fxXh8w3qbwJ6JKs0I5IMyN tW7E4y/HSFglCf44Rk1K5qwrFe+rrQJEQAUv/d2f/jDZlcJ0L0CFFQ3UnPWLSxgsRqiROWXQw B2LjpzbhcTos/Q3l7krnX+940IW88K8xrWWct1D7bd7hvjnJ34daRDbPC97qtKttXuSHf1v1v MD9WCPqnoOD15KbZeEoOPJ7xO4zw11t/weRMy9c2YzaLhK6gC6tObzoLi/9SXxhadHk6MIqAq ufBVANY8Y/SorSbO22CMyg5i6zUn+889yiaJSu0eEheIu3W2wdOqH3sE91nE0lv4KXhGyq/Xm yEWUWQz8/oSpKGlUFAMo1sir/Bd1ZPC/4xIb7SZ8BTPdm4nNo3fDrPAQ088VYV8grb+MCe3sz rMIDHb3FWMseanDy8+xuqMRGL+V3+ascc2H0VYoTauGW44V4n3a/1/7QDgZbGuKahd36UNpze wCuQxHwccg6M1mwZGQPMuxo6Qr6ucN291c1TNvzuaoyldujfZieAKb4x1aNSNhR53nH+Sa81L PZm/zDmzvnrjk= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@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:125538 Archived-At: Would this be good enough to Auto Fill Comments in c language. What can I use for Auto Fill Comments for other languages, e.g. fortran, elisp, c++, texinfo, bash, awk, org, R. ;; Apply Auto Fill to comments but not code in programming language modes. (add-hook 'c-mode-common-hook (lambda () (auto-fill-mode 1) (set (make-local-variable 'fill-nobreak-predicate) (lambda () (not (eq (get-text-property (point) 'face) 'font-lock-comment-face)))) ))