Questions tagged [async]
The async tag has no usage guidance.
15
questions with no upvoted or accepted answers
5
votes
0answers
288 views
How can I wrap org-preview-latex-fragment to be async?
Calling org-preview-latex-fragment blocks user input for a second or two depending on the size of your fragment, and with universal args, converting all fragments in buffer can take minutes. It would ...
4
votes
0answers
128 views
Is there some way to continue reading from a STDIN file descriptor when data is PIPED to Emacs on Command-line?
Historical Perspective
On Unix like operating systems, it is common practice to redirect IO between shell commands using pipes.
For example, the command below would insert all the lines that didn't ...
2
votes
1answer
75 views
How can I automatically rename buffers created with `async-shell-command` to the shell command that was called?
I am often opening exwm buffers by running async-shell-command but unfortunately these buffers always get named *EXWM*. It would be great if when I ran async-shell-command 'firefox the buffer that ...
2
votes
0answers
71 views
Process sentinels don't run during init in GUI Emacs
Ok, this issue I'm running into seems pretty weird. I'm running an async process during init and I have set a process sentinel to tell me when it exits. This works fine in terminal Emacs but in GUI ...
2
votes
0answers
78 views
Org async export show pdf after completion
With synchronous export I can call C-c C-e l o to generate a pdf and open it. If I try the same keys with the async export, i.e. C-c C-e C-a l o, then the pdf will be generated but the pdf won't open.
...
1
vote
0answers
25 views
Exporting JPG image from LaTeX SRC-block with :async header
I like to generate JPG images from my LaTeX/tikz drawings in my org files. For this, I use constructs like
#+NAME: my image
#+HEADER: :file my-image.jpg
#+BEGIN_SRC latex :results file raw :...
1
vote
0answers
30 views
Using diff-buffer-with-file to merge differences between the disk and the buffer
I sync my org files via Dropbox. Occasionally, Dropbox will bring in changes into a file whose buffer I've already modified. I can diff the buffer and the file on disk with diff-buffer-with-file; but ...
1
vote
2answers
71 views
How to prevent a function being called multiple times? (locking)
With a function that calls an asynchronous process, it's possible to call the same function multiple times.
What is a reliable way to avoid this that properly handles quit and errors being raised?
...
1
vote
0answers
156 views
asynchronously running org-toggle-latex-fragment
In orgmode, it is quite useful to view the equations inline. However, sometimes this can take a while to execute. Running org-toggle-latex-fragment asynchronously would be quite useful. However, most ...
1
vote
0answers
149 views
How to debug hanging emacs-async command?
I'm trying to set up a function running on my timer to refresh my org-gcal files by using the emacs-async library as follows:
(async-get
(async-start
`(lambda ()
,(async-inject-variables "...
1
vote
0answers
127 views
How to make dired-do-async-shell-command wait for all sub processes to finish
I'm trying to run the bash script, ~/bin/xlda, ...
#!/bin/sh
# ~/bin/xlda
old_filename="$1"
new_filename=`echo $old_filename | sed 's/\(.*\.\)flac/\1m4a/'`
~/bin/xld -f alac -o "$new_filename" "$...
0
votes
1answer
51 views
Wait for result of fzf without blocking input
I'm trying to make use of the fzf fuzzy finder to search through a list via a term process. The way I do this is very similar to fuzzy-finder.el or fzf.el. This is by launching fzf with:
(progn
(...
0
votes
1answer
42 views
How to open a file in other window in the middle of function run?
I use notmuch to read emails.
I've configured notmuch to call offlineimap via pre-new hook.
When I press G to refresh my notmuch buffer, I want emacs to open my offlineimap log file in another window ...
0
votes
0answers
15 views
Emacs continuously asking for input and not sure what is the cause
I have this function implemented to basically compile and run the cpp file I am writing. Some files needs input (cin) so running this function will not stop and would continuously showing this message:...
0
votes
1answer
101 views
Best way to test output sent to a buffer
I'm writing an emacs package for Pipenv and the spike solution uses sync shell calls, which is not desirable for general usage. I'm now changing calls to be async (make-process) and for output to go ...