From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Mahan Newsgroups: gmane.emacs.help Subject: Re: Any way to remove ^L or ^M from some buffer outputs? Date: Sun, 4 Oct 2020 12:41:21 -0700 Message-ID: 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="26442"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 21:42:44 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 1kP9u7-0006ls-VN for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 21:42:43 +0200 Original-Received: from localhost ([::1]:55786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP9u7-0004XY-1W for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 15:42:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP9t3-0004W7-Pb for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 15:41:37 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:40715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kP9t1-0002NS-RG for help-gnu-emacs@gnu.org; Sun, 04 Oct 2020 15:41:37 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id m5so8362479lfp.7 for ; Sun, 04 Oct 2020 12:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nXekDOyH6yA3Eg8rwa3xkVw3wtwdQoO6szyVX2F9PuQ=; b=KZY8cQ5BNuNakcxEbUEK+kj61AOmMo2Uo2ZHrhGWIECm4m4AXwhI8FXgfaNGmPT9Jm 1NyQaLEx5N/xmU0IgB0Cbg4kMdDpzxZIilPRhO3zufmktrp3F57rZvfCS0V5bwHVADLI WMfnrmsV4jXf51rfT74YFFSkNPTSMSSuNaNtOgtY+zkhsnkpZyzYGEzbLhZknEDxDHlR d0V9Y4DOP9ZOTyxqsgUTgqwgb0UVYQIEe/snDswnY8nZ4J1MySb99naEWyhIJBs1oLnF HvIFtzra3egP3i1Dqn8fZAkqwtWWp8qadFj2iUtZkOy+riuqxAx9wCC5fuDU6LFaMyow Mdfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nXekDOyH6yA3Eg8rwa3xkVw3wtwdQoO6szyVX2F9PuQ=; b=dGLQhBrUzNIOLkFKI8+PqLe3YRU5ew1O6b5NJEimDF5kyTDVYUYQlqjdSzCC9NPmUR SFpmxLPgpX8D2I03FV1mVTdxZoGN6dE2FKUxaBl9sbAfykN1rB/2ISNieEv81fY6IKcP j3nfUtFUjX+nzwBCOaLkyH4OmFsZS4WnguRMmJLW9LklV6dgmzrD8Knh2kAE9OKqCU92 VRhab46bTSkiEWgxuVQAdLztu2U9XfCw1hm/DwFfI54zixmJbEGyZw2uYarAWLmJn4np v0G10TOURgDc31dGl25b7kD6fxxjMIHBTsvT/NopR3K50CS2HJKEldbmr/dTlBbEvv8x SXIg== X-Gm-Message-State: AOAM532chh8VcedxTWNxWcy5OYwwGlJlAYAGXpPyrj50GvxWfYmOAYVe GjZgNqp6s1L0yr0Ee+JE+NHcp5RejcSHKjKLYZQ= X-Google-Smtp-Source: ABdhPJzsEoRC5GLuLvfsAqogMl9yRgDnCaV8eHBj/E2dBtciwP7AbCjMHINR9hoGzxX2qTQSbCOOKHzUlF2MVb0JOuk= X-Received: by 2002:ac2:560f:: with SMTP id v15mr4893810lfd.550.1601840493215; Sun, 04 Oct 2020 12:41:33 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=plmahan@gmail.com; helo=mail-lf1-x129.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:124301 Archived-At: I have a user defined lisp function - ;; If you encounter a file with ^M or ... at the end of every line ;; this gets rid of them by pressing F5. (defun cut-ctrlM () "Cut all visible ^M." (interactive) (beginning-of-buffer) (while (search-forward "\r" nil t) (replace-match "" nil t)) (not-modified) (beginning-of-buffer)) Patrick Emacs addict since 1994 On Sun, Oct 4, 2020 at 7:53 AM Jean Louis wrote: > > Compiling file /home/data1/protected/Programming/emacs-lisp/rcd-cf.el at > Sun Oct 4 17:48:33 2020 > > In cf-sms-exists: > rcd-cf.el:437:18: Warning: reference to free variable =E2=80=98n=E2=80=99= Disable showing > Disable logging > > I am not sure if you can see ^L above, let us say I am compiling or > having some shell output, then I see often ^L, this may be line feed, > I do not know, but it looks green here on my side and is often not > interpreted correctly, line after line, but just as special character > after which other output lines are shown. > > In this case I see Emacs compiling buffer. It seems not necessary to > be in the buffer like that. > > Then in shell buffers, I see something like this below: > > Output file: > /home/data1/protected/Media/Videos/Recordings/2020/10/2020-10-04/2020-10-= 04-17:51:02.ogv > ^M[0%] ^M[1%] ^M[2%] ^M[3%] ^M[4%] ^M[5%] ^M[6%] ^M[7%] ^M[8%] ^M[9%] > ^M[10%] ^M[10%] ^M[11%] ^M[12%] ^M[13%] ^M[14%] ^M[15%] ^M[16%] > ^M[17%] ^M[18%] ^M[19%] ^M[20%] ^M[20%] ^M[21%] ^M[22%] ^M[23%] > ^M[24%] ^M[25%] ^M[26%] ^M[27%] ^M[28%] ^M[29%] ^M[30%] > > Is that alright to be so? Maybe there is way to remove those by > setting something? > >