fix(emacs): make alternate-editor work for emacs >28

Closes #11441
This commit is contained in:
Carlo Sala
2023-01-13 14:42:11 +01:00
parent eb2147c715
commit ca0acf31ef
3 changed files with 4 additions and 4 deletions

View File

@ -15,11 +15,11 @@ emacsfun() {
# Only create another X frame if there isn't one present
if [ -z "$frames" -o "$frames" = nil ]; then
emacsclient --alternate-editor "" --create-frame "$@"
emacsclient --alternate-editor="" --create-frame "$@"
return $?
fi
emacsclient --alternate-editor "" "$@"
emacsclient --alternate-editor="" "$@"
}
# Adapted from https://github.com/davidshepherd7/emacs-read-stdin/blob/master/emacs-read-stdin.sh