From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Any way to remove ^L or ^M from some buffer outputs? Date: Mon, 5 Oct 2020 21:14:25 +0300 Message-ID: <20201005181425.GJ10748@protected.rcdrun.com> References: <8f4b3911-489c-4b0f-9438-fc8c3339b5ae@default> <87mu11sujl.fsf@ebih.ebihd> <20201005090644.GE4453@protected.rcdrun.com> <631580e6-610a-4df1-b0a5-fe59fde6ac7b@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35687"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.14.0 (2020-05-02) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 05 20:15:01 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 1kPV0n-00099X-Pr for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 20:15:01 +0200 Original-Received: from localhost ([::1]:55070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPV0m-0001JH-QU for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 14:15:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPV0U-0001JB-Qd for help-gnu-emacs@gnu.org; Mon, 05 Oct 2020 14:14:42 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:56265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPV0S-0003Eu-Ft for help-gnu-emacs@gnu.org; Mon, 05 Oct 2020 14:14:42 -0400 Original-Received: from localhost ([::ffff:197.157.34.178]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000005A151.000000005F7B6284.0000212D; Mon, 05 Oct 2020 11:14:28 -0700 Content-Disposition: inline In-Reply-To: <631580e6-610a-4df1-b0a5-fe59fde6ac7b@default> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/05 14:14:32 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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:124320 Archived-At: * Drew Adams [2020-10-05 20:06]: > > > > Use `query-replace' (`M-%') or `M-x replace-string' > > > > > > But this assumes the buffer is editable ... besides > > > there should be a command (onee) that toggles the > > > visibility of that specific kind of representation, > > > whatever it is called, for _all_ such chars... > > > > It is in read-only buffers, > > If you want to edit a read-only buffer, toggle it > to writable with `C-x C-q'. Those are shell output buffers and similar, and it looks ugly, I was thinking there is some option to set, to avoid that. Of course I will not edit it with hand, it is about watching output nicely formatted. For example instead of ^L to get new line, I do not see new line, so it just continues. > If it's a file buffer and you don't have write > permission for the file, then you likely won't be > able to write the updated buffer back to the file. > But that's a different problem from being able to > edit the buffer. > > > I was just thinking there is option to > > remove that as it looks as garbiage. > > Garbage/noise is in the eye of the beholder. Exactly. So it is not expected output. If I do shell command, there is expected output that should be similar or same as in the shell, in Emacs the new lines are not always interpreted correctly.