From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonathan Kyle Mitchell Newsgroups: gmane.emacs.help Subject: Re: Problem with simple script to clean out an ERC buffer Date: Wed, 6 Jun 2018 14:12:05 -0500 Message-ID: References: <86lgbs2tav.fsf@zoho.com> <864lif3j5j.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1528316223 4352 195.159.176.226 (6 Jun 2018 20:17:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2018 20:17:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 06 22:16:58 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1fQerZ-0000z4-P8 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2018 22:16:58 +0200 Original-Received: from localhost ([::1]:54514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQetf-0004aE-2x for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jun 2018 16:19:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQdqt-0002fO-3J for help-gnu-emacs@gnu.org; Wed, 06 Jun 2018 15:12:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQdqp-0001oV-TF for help-gnu-emacs@gnu.org; Wed, 06 Jun 2018 15:12:11 -0400 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:54053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fQdqp-0001nh-Mm for help-gnu-emacs@gnu.org; Wed, 06 Jun 2018 15:12:07 -0400 Original-Received: by mail-wm0-f53.google.com with SMTP id x6-v6so13436442wmc.3 for ; Wed, 06 Jun 2018 12:12:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cXtch/3FnQW733SoddCyyd1UkIkQDvjVBuC+o+EVwFs=; b=Bkw0S6WQr2H71Q5dq3PlKFrn5PrqOvy7WxbWRPKT8EaNAx4FUAzYEdEsXWxg55UeIQ XARIZYp3pjtXB41FMqcxYzQlyv5J2JccbSn18bJMwjYtVotdzMiqYlAZtMR3YEsWh57D 7P4qWDTQLani3Q39f6Q9jSDf3lD/HekIv6+IP6aoJxHJ/LCR0EQGa6n3H59cbHlbEfWx UKXynlF38AnMy0letmVBRGPpFd5A3kPC4CahoM9caEU/uGNWHRKN0Zgkg9/3tiQeAzyB pVKm80KJc8XcsLihNPIdTdMLJH1Jvtx3nTSjK5uPsLAEY+kjjn/C15RBmP4DKHo2NNjT 480A== X-Gm-Message-State: APt69E0/KfsxGmKN32TQl/bcLyx6iGUx6+pJolRIYjRuZDdQSbvOFOTp TKvhCxCTEj0LHDMvJALB2Kij8tbwSyE= X-Google-Smtp-Source: ADUXVKK+aNDXOomGnOb9uNIsJAk/4SZWnkE0lS94OSDqPlVoT6ncUVCal2ekN2W446gkTfjdbmim6w== X-Received: by 2002:a50:a55d:: with SMTP id z29-v6mr5090139edb.103.1528312326079; Wed, 06 Jun 2018 12:12:06 -0700 (PDT) Original-Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com. [74.125.82.43]) by smtp.gmail.com with ESMTPSA id c20-v6sm7933610ede.3.2018.06.06.12.12.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jun 2018 12:12:05 -0700 (PDT) Original-Received: by mail-wm0-f43.google.com with SMTP id 69-v6so996917wmf.3 for ; Wed, 06 Jun 2018 12:12:05 -0700 (PDT) X-Received: by 2002:a1c:6803:: with SMTP id d3-v6mr2778390wmc.70.1528312325778; Wed, 06 Jun 2018 12:12:05 -0700 (PDT) Original-Received: by 2002:a1c:598a:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 12:12:05 -0700 (PDT) In-Reply-To: <864lif3j5j.fsf@zoho.com> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.53 X-Mailman-Approved-At: Wed, 06 Jun 2018 16:16:29 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117000 Archived-At: On Wed, Jun 6, 2018 at 12:43 PM, Emanuel Berg wrote: > This reminds me that clear, as in clear(1) or > /usr/bin/clear , doesn't do anything in > Shell mode either (Shell mode as in shell.el). > > But hey, aren't programmers trained to see the > beauty in symmetry? > > -- > underground experts united > http://user.it.uu.se/~embe8573 That's expected since /usr/bin/clear assumes it's talking to a "real" terminal which shell.el is not. On the other hand, eshell.el has its own clear command implemented in Lisp that should work. erc-cmd-CLEAR does something different even though its docstring says it "clears" the window contents. It basically just moves the current line up to the top of the window without erasing the buffer. Whether that's the intention I can't say. -- Jonathan Kyle Mitchell