[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pandoc-mode /Asciidoc
From: |
Gottfried |
Subject: |
Re: pandoc-mode /Asciidoc |
Date: |
Wed, 22 Feb 2023 14:26:15 +0000 |
Hi Jean,
Is it possible to solve this error message, even though it is not
important, as You said,
Am 13.02.23 um 15:40 schrieb Jean Louis:
Those warnings you may disregard.
because every time I open emacs it shows up and it does not open the
file I want.
and starting emacs it shows this:
>>
>> Debugger entered--Lisp error: (void-variable SECS)
>> (run-with-timer SECS REPEAT FUNCTION &rest ARGS)
>> load-with-code-conversion("/home/gfp/.config/emacs/init.el"
>> "/home/gfp/.config/emacs/init.el" t t)
>> load("/home/gfp/.config/emacs/init" noerror nomessage)
>> startup--load-user-init-file(#f(compiled-function () #<bytecode
>> 0x1a5d9b48a35c1bee>) #f(compiled-function () #<bytecode
>> 0x4d12c0e0e44348b>) t)
>> command-line()
>> normal-top-level()
you can use Emacs Lisp and install refresh:
>>>
>>> (run-with-timer SECS REPEAT FUNCTION &rest ARGS)
>>> Probably introduced at or before Emacs version 19.31.
>>>
>>> Then I believe there is way to do it:
>>>
>>> (defun rcd-asciidoctor-preview-buffer-as-html ()
>>> "Convert asciidoctor to file `/tmp/my.html'"
>>> (let* ((asciidoc (buffer-string))
>>> (tmp-file "/tmp/my.html")
>>> (html (rcd-asciidoctor asciidoc)))
>>> (with-temp-file tmp-file
>>> (insert html))))
Kind regards
Gottfried
OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
- pandoc-mode, Gottfried, 2023/02/13
- Re: pandoc-mode, Jean Louis, 2023/02/13
- Re: pandoc-mode /Asciidoc,
Gottfried <=
- Re: pandoc-mode /Asciidoc, Jean Louis, 2023/02/23
- Re: pandoc-mode /Asciidoc, Jean Louis, 2023/02/23
- Re: pandoc-mode /Asciidoc, Gottfried, 2023/02/23
- Re: pandoc-mode /Asciidoc, Jean Louis, 2023/02/23
- Re: pandoc-mode /Asciidoc, Jean Louis, 2023/02/23
- Re: pandoc-mode /Asciidoc, Gottfried, 2023/02/25
- Re: pandoc-mode /Asciidoc, David Masterson, 2023/02/25
- Re: pandoc-mode /Asciidoc, Gottfried, 2023/02/26
- Re: pandoc-mode /Asciidoc, Stephen Berman, 2023/02/26
- Re: pandoc-mode /Asciidoc, Gottfried, 2023/02/26