From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Suggestion for a witty Emacs command for a mug? Date: Thu, 25 Jan 2018 09:40:10 -0800 (PST) Message-ID: <35e9b929-654b-4f4e-9728-cea8e337c3cb@default> References: <35333.81.221.225.171.1516818650.squirrel@webmail.fsf.org> <1516875653.16336.3.camel@tazj.in> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1516902513 10915 195.159.176.226 (25 Jan 2018 17:48:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2018 17:48:33 +0000 (UTC) Cc: rms-assist@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 25 18:48:29 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeldR-0002LX-5h for ged-emacs-devel@m.gmane.org; Thu, 25 Jan 2018 18:48:25 +0100 Original-Received: from localhost ([::1]:54296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eelfO-0005UU-VF for ged-emacs-devel@m.gmane.org; Thu, 25 Jan 2018 12:50:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eelfH-0005Rd-Sa for emacs-devel@gnu.org; Thu, 25 Jan 2018 12:50:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eelfE-0005pH-Mm for emacs-devel@gnu.org; Thu, 25 Jan 2018 12:50:19 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:59952) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eelfD-0005oD-Va; Thu, 25 Jan 2018 12:50:16 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w0PHl8jH156154; Thu, 25 Jan 2018 17:50:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=2+dqQVJyYo9xDgCPr9H1rPDq2LsZ4Ad4hiyZ5jLV2n4=; b=t04Zy6zmpn6nSPeJW/maHG+R6fK9lEEFnIX4TnmaH3U6PNV/PiEv/sMZ1tsCqBsmbZGk zEkDj7xRJThBvqnbZU+Wo4RCHjgN4iIP4Z608hdqAw+tDI45bfmX4lfKMujbZRn/184V lJtujf+FXdEu0ZzABga+cPryThXuEbeFxwC5xSezb09ThPJBwVcaEZOb4/nGpTpXSSMW X582zT810ZMQdHdNAmkHO/EXFkzyykxk6OM9E/icixInsED73HNUZ6bI19GgK8W+cdw4 NGnpEdkFT16Bmd86lNpU3wTZYyc6SAwFn2lWtKV7Ck+4mif60jvuY+AqmE0FesbcqI8d yg== Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2130.oracle.com with ESMTP id 2fqkb3875c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jan 2018 17:50:14 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w0PHeBaf008867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 25 Jan 2018 17:40:13 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w0PHeBBb027471; Thu, 25 Jan 2018 17:40:11 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4639.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8785 signatures=668655 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=828 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1801250239 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222241 Archived-At: Use `auto-fill-mode' - or perhaps `auto-fill-mug'. After that as a heading, include the doc in a _tiny_ font. For that, we could use what `C-h f' says, but it's not so great: auto-fill-mode is an interactive compiled Lisp function in `simple.el'. (auto-fill-mode &optional ARG) Toggle automatic line breaking (Auto Fill mode). Interactively, with a prefix argument, enable Auto Fill mode if the prefix argument is positive, and disable it otherwise. If called from Lisp, toggle the mode if ARG is =E2=80=98toggle=E2=80=99, disable the mode if ARG is a non-positive integer, and enable the mode otherwise (including if ARG is omitted or nil or a positive integer). When Auto Fill mode is enabled, inserting a space at a column beyond =E2=80=98current-fill-column=E2=80=99 automatically breaks the lin= e at a previous space. When =E2=80=98auto-fill-mode=E2=80=99 is on, the =E2=80=98auto-fill-funct= ion=E2=80=99 variable is non-nil. The value of =E2=80=98normal-auto-fill-function=E2=80=99 specifies the fu= nction to use for =E2=80=98auto-fill-function=E2=80=99 when turning Auto Fill mode on. Much better would be to use what (emacs) `Auto Fill' says: Auto Fill Mode -------------- =E2=80=9CAuto Fill=E2=80=9D mode is a buffer-local minor mode (see Minor = Modes) in which lines are broken automatically at spaces when the line becomes too wide. =E2=80=98M-x auto-fill-mode=E2=80=99 Enable or disable Auto Fill mode. =E2=80=98=E2=80=99 =E2=80=98=E2=80=99 In Auto Fill mode, break lines when appropriate. The mode command =E2=80=98M-x auto-fill-mode=E2=80=99 toggles Auto Fil= l mode in the current buffer. Like any other minor mode, with a positive numeric argument, it enables Auto Fill mode, and with a negative argument it disables it. To enable Auto Fill mode automatically in certain major modes, add =E2=80=98auto-fill-mode=E2=80=99 to the mode hooks (*note Majo= r Modes::). When Auto Fill mode is enabled, the mode indicator =E2=80=98Fill=E2=80=99= appears in the mode line (see Mode Line). Auto Fill mode breaks lines automatically at spaces whenever they get longer than the desired width. This line breaking occurs only when you type or . If you wish to insert a space or newline without permitting line-breaking, type =E2=80=98C-q =E2=80=99 or =E2=80=98C-= q C-j=E2=80=99 respectively. Also, =E2=80=98C-o=E2=80=99 inserts a newline without line breaking. When Auto Fill mode breaks a line, it tries to obey the =E2=80=9Cadapt= ive fill prefix=E2=80=9D: if a fill prefix can be deduced from the first and/= or second line of the current paragraph, it is inserted into the new line (see Adaptive Fill). Otherwise the new line is indented, as though you had typed on it (see Indentation). In a programming language mode, if a line is broken in the middle of a comment, the comment is split by inserting new comment delimiters as appropriate. Auto Fill mode does not refill entire paragraphs; it breaks lines but does not merge lines. Therefore, editing in the middle of a paragraph can result in a paragraph that is not correctly filled. To fill it, call the explicit fill commands (see Fill Commands). This makes the point/joke, while showing Emacs as the self-documenting, self-deprecating/self-kidding editor.