emacs-humanities
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-humanities] Form-feed as literary-style scene breaks


From: Manuel Uberti
Subject: Re: [emacs-humanities] Form-feed as literary-style scene breaks
Date: Thu, 14 Jan 2021 09:40:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 14/01/21 09:35, Paul W. Rankin via Emacs-humanities wrote:
> If you've poked around Elisp much you might see a bunch of form-feed 
> characters:
> ^L. When you send these to a printer they will actually trigger a page break,
> which is cool, but they still look ugly.
> 
> There are a couple of minor modes that replace the ^L with a horizontal line,
> but I wanted something a tiny bit fancier, akin to a literary-style scene 
> break,
> so I put this into my init.el...
> 
>     (aset standard-display-table ?\^L
>           (vconcat (make-string 15 ?\s) (make-string 35 ?─)))
> 

Hi Paul,

thank you for the tip.

However, in Emacs 28 from emacs -Q evaluating that code results in:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  aset(nil 12 [32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 9472 9472 9472 9472
9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472
9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472 9472])
  (progn (aset standard-display-table 12 (vconcat (make-string 15 32)
(make-string 35 9472))))
  eval((progn (aset standard-display-table 12 (vconcat (make-string 15 32)
(make-string 35 9472)))) t)
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)


All the best

-- 
Manuel Uberti
www.manueluberti.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]