From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Any way to remove ^L or ^M from some buffer outputs? Date: Sun, 4 Oct 2020 09:51:27 -0700 (PDT) Message-ID: <8f4b3911-489c-4b0f-9438-fc8c3339b5ae@default> 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="39860"; mail-complaints-to="usenet@ciao.gmane.io" To: Jean Louis , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 18:53:57 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 1kP7Gm-000AH6-P3 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 18:53:56 +0200 Original-Received: from localhost ([::1]:43734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP7Gl-0006uW-QB for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 12:53:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP7GR-0006u9-UW for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 12:53:35 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:49252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP7GP-0000GY-S0 for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 12:53:35 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 094GpNUL075411; Sun, 4 Oct 2020 16:53:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=SNI6lKfdSs8vqnGo/JSXQAAv2WkN65RxS6gQZjhfWs0=; b=kDo1dfVpZ/uViEITsWrmlKxn2eSeS8pbSN1Ebn/OkBjqQKoR7b0sC/E35ge8RFsgV6iH k7RxfeNhsBA8NetzkOyShmmVqQ4+6NEVRMLKK0Ch0T6fy20oPC4bLBH1be7xaIBz2sRs VFrdFLAHvLCddNv/OyEutwri+h2McDHnupmymlg5m/a4j6GUHYGK0msD8o7GHqtq16zV kXTyGXJEntGThGrFFfa8Q9ATw0Zzg1aDblz7RwschKPRc89J1azg6mZwNooZUZKe1MsM nHXWqg1CbOV8IvIMU3k1EdQlZYYsId76b/xYom+FOpZbl61opmak1zUbI14oo7riu/TI mQ== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2120.oracle.com with ESMTP id 33xhxmjqra-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 04 Oct 2020 16:53:30 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 094Goici028858; Sun, 4 Oct 2020 16:51:30 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 33y36vnnt1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 04 Oct 2020 16:51:29 +0000 Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 094GpSWB024379; Sun, 4 Oct 2020 16:51:28 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9764 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=980 adultscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010040129 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9764 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 mlxlogscore=996 adultscore=0 clxscore=1015 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2010040128 Received-SPF: pass client-ip=156.151.31.85; envelope-from=drew.adams@oracle.com; helo=userp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/04 12:53:32 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -50 X-Spam_score: -5.1 X-Spam_bar: ----- X-Spam_report: (-5.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.745, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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:124285 Archived-At: Use `query-replace' (`M-%') or `M-x replace-string'. When prompted for what to replace, use `C-q' followed by the Control key (c= har) you want to replace. When prompted for what to replace it with, just h= it `RET' (replace it with the empty string). E.g., to remove Control-M chars: M-x replace-string RET C-q C-m RET RET (Using `C-m' is the same as using `RET' - same char. But I write it that w= ay to make it clear that `C-q C-m', which inserts a `C-m' char, is the stri= ng of chars to replace.) If you want to be sure/careful of what you're doing, use `M-%' instead. On= ce you see that it's doing what you want (by using `y' to replace some occu= rrences), just hit `!' to replace the rest of the chars. In both cases, start with the cursor at bob (beginning of buffer), or `poin= t-min' if you want to do it on the narrowed portion the buffer.