From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Any way to remove ^L or ^M from some buffer outputs? Date: Mon, 05 Oct 2020 14:54:41 +0200 Message-ID: <87lfgk6df2.fsf@ebih.ebihd> References: <8f4b3911-489c-4b0f-9438-fc8c3339b5ae@default> <87mu11sujl.fsf@ebih.ebihd> <20201005090644.GE4453@protected.rcdrun.com> <87k0w5qa22.fsf@fastmail.fm> Reply-To: Emanuel Berg Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27821"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:P/s5+blhG9cHfvWenshnl1jLAFg= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 05 14:55:25 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 1kPQ1U-00078h-E6 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 14:55:24 +0200 Original-Received: from localhost ([::1]:36176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPQ1T-00087S-Gy for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 08:55:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPQ0z-00087J-FL for help-gnu-emacs@gnu.org; Mon, 05 Oct 2020 08:54:53 -0400 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:45688 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPQ0x-0000ig-Rl for help-gnu-emacs@gnu.org; Mon, 05 Oct 2020 08:54:53 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kPQ0u-0006Pf-BO for help-gnu-emacs@gnu.org; Mon, 05 Oct 2020 14:54:48 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/05 08:54:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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:124317 Archived-At: Joost Kremers wrote: > There is a package that should take care of ^L at least: What is the deal with them chars, what are they called, and why do they appear to begin with, and where? I know them only from IRC where you can do, with ERC first (setq erc-interpret-mirc-color t) then $ 08,04 * red army * ( <-- here I use real chars, i.e M-x insert-char RET 3 RET ) which looks like this $ ^C08,04 * red army * ^C only the ^C are in cyan (wierd, `what-face' [1] don't report any face for them?) BTW, actually, you don't need the closing char if there is just one thing to color and that's to the EOL. but consider: $ 08,03it02,00al08,04ia which looks like $ ^C08,03it^C^C02,00al^C^C08,04ia^C See this dump for how that looks, the red army one :) [2] How to use the colors: [3] Bonus photo: another red machine [4] [1] https://dataswamp.org/~incal/emacs-init/my-faces.el [2] https://dataswamp.org/~incal/figures/emacs/red-army.png [3] https://help.codeux.com/textual/Text-Formatting.kb [4] https://dataswamp.org/~incal/pimgs/red-machine.png -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal