9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: mcz <emcze@ya.ru>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] A few questions about sam
Date: Thu, 22 Jul 2021 21:10:53 +0200	[thread overview]
Message-ID: <20210722191053.o75rwrxssyb74pbp@nohostname> (raw)
In-Reply-To: <16269611020.38ad.33188@composer.9fans.topicbox.com>

>  * Must every sam file end with a newline? I.e. even files with simple text?

No, I don't think sam cares.

> I sometimes get the "?newline expected" error,

In sam version I use, it's just a warning. The file is saved without newline at
the end, unless I add it there.

> which I would like to avoid if possible.

The best way to avoid the warning about the missing newline character is to add
the missing newline character.

Some programs (POSIX world, ANSI C) assume that every line ends with newline
character, so most editors add it for you if it's missing. Sam apparently 
thinks it's good to have it, but doesn't get in your way if you don't add it.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T60b5c1929a63b077-Md2dae2641e7441d4522a6ff9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  parent reply	other threads:[~2021-07-22 19:13 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-22 13:38 revcomninos
2021-07-22 13:57 ` Sigrid Solveig Haflínudóttir
2021-07-22 14:59   ` revcomninos
2021-07-22 19:10 ` mcz [this message]
2021-07-22 19:18   ` Charles Forsyth
2021-07-22 19:24 ` Charles Forsyth
2021-07-22 20:18   ` revcomninos
2021-07-22 23:45     ` Silas McCroskey
2021-07-23  4:47       ` revcomninos
2021-07-23  5:42         ` Silas McCroskey
2021-07-23  9:53           ` revcomninos
2021-07-27  0:56 ` Ethan Gardener
2021-07-27  6:34   ` revcomninos

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=20210722191053.o75rwrxssyb74pbp@nohostname \
    --to=emcze@ya.ru \
    --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).