9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ben Hancock <ben@benghancock.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Script to apply Edit commands in acme
Date: Fri, 20 Jan 2023 06:24:10 -0800	[thread overview]
Message-ID: <20230120062410.71c9ffcd@shasta> (raw)
In-Reply-To: <E989D2D3F7A671AFDA5BAD2A1B33B5EC@9lab.org>

igor@9lab.org wrote:

> Quoth Ben Hancock <ben@benghancock.com>:
> […]
> > By the way, […] cleaning whitespace at the end of a newline
> > (Edit ,x/ +$/d), acme does this by default on Put.  
> […]
> 
> Minor correction: There exist ACME patches accomplishing the above.
> Howbeit, ACME does not strip trailing whitespace on Put by default.
> 

Thanks Igor. I'm using the plan9port version of acme, and I typically
run in autoindent mode, which seems to trigger this behavior.

From the man page:

> When a window is in autoindent mode [...] and a newline character is
> typed, acme copies leading white space on the current line to the new
> line, and when a window is Put, acme removes all trailing end-of-line
> white space before writing the file.  The option -a causes each
> window to start in autoindent mode.

You are indeed correct that when starting without the '-a' flag, this
is not the behavior.

Cheers.

  - Ben


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-Md0954cf3a725613753213c68
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

      reply	other threads:[~2023-01-20 14:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16  3:49 revrari
2023-01-16  8:17 ` sirjofri
2023-01-16  9:06   ` revrari
2023-01-18 16:44     ` Henri Ducrocq
2023-01-18 16:54       ` Paul Lalonde
2023-01-19  9:33         ` revrari
2023-01-20  5:25           ` Ben Hancock
2023-01-20  7:23             ` igor
2023-01-20 14:24               ` Ben Hancock [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230120062410.71c9ffcd@shasta \
    --to=ben@benghancock.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).