[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:49:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 14/01/21 09:40, Manuel Uberti wrote:
>>
>> (aset standard-display-table ?\^L
>> (vconcat (make-string 15 ?\s) (make-string 35 ?─)))
>>
>
>
> 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)
A possible way to fix that is using Paul's snippet after loading elisp-mode.
Something like:
(with-eval-after-load 'elisp-mode
(aset standard-display-table ?\^L
(vconcat (make-string 15 ?\s) (make-string 35 ?─))))
--
Manuel Uberti
www.manueluberti.eu