He actualizado mi versión de emacs usando Homebrew. Si ahora ejecuto
brew upgrade emacs
aparece el siguiente mensaje:
emacs 27.2 already installed
Sin embargo, cuando ejecuto
emacs --version
aparece el siguiente mensaje:
GNU Emacs 26.2
Corriendo
which emacs
devuelve
/usr/local/bin/emacs
Corriendo
ls -l /usr/local/bin/emacs $(type -p emacs)
devuelve
ls: emacs: No such file or directory
ls: is: No such file or directory
lrwxr-xr-x 1 evanaad admin 44 Jul 23 2019 /usr/local/bin/emacs -> /Applications/Emacs.app/Contents/MacOS/Emacs
lrwxr-xr-x 1 evanaad admin 44 Jul 23 2019 /usr/local/bin/emacs -> /Applications/Emacs.app/Contents/MacOS/Emacs
Según la sugerencia de nohillside, he ejecutado brew uninstall emacs
, eliminó Aplicaciones/Emacs.app, y luego ejecutó brew install emacs
. Aquí está el resultado de esta ejecución:
Error:
homebrew-core is a shallow clone.
homebrew-cask is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
These commands may take a few minutes to run due to the large size of the repositories.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
Warning: Treating emacs as a formula. For the cask, use homebrew/cask/emacs
==> Downloading https://homebrew.bintray.com/bottles/emacs-27.2.catalina.bottle.
Already downloaded: /Users/evanaad/Library/Caches/Homebrew/downloads/49fb14649e985625a9c3e178d1c9a853ab9f3c57d538229f4e1a0188f5a6b884--emacs-27.2.catalina.bottle.tar.gz
==> Pouring emacs-27.2.catalina.bottle.tar.gz
==> emacs cask is installed, skipping link.
==> Caveats
To have launchd start emacs now and restart at login:
brew services start emacs
Or, if you don't want/need a background service you can just run:
emacs
==> Summary
/usr/local/Cellar/emacs/27.2: 4,012 files, 104.3MB
==> `brew cleanup` has not been run in 30 days, running now...
Error: Permission denied @ apply2files - /usr/local/share/ghostscript/9.19/Resource/Font/wasy10.p
Si ahora ejecuto emacs --version
Me aparece el siguiente mensaje:
zsh: command not found: emacs
Por sugerencia de nohillside, he desinstalado tanto emacs como homebrew/cask/emacs. Si ahora ejecuto brew doctor
Obtengo el siguiente resultado:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: The following directories do not exist:
/usr/local/Frameworks
/usr/local/sbin
You should create these directories and change their ownership to your user.
sudo mkdir -p /usr/local/Frameworks /usr/local/sbin
sudo chown -R $(whoami) /usr/local/Frameworks /usr/local/sbin
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
gdbm
python
libunistring
xz
unbound
Warning: An outdated version (2.10.1) of Git was detected in your PATH.
Git 2.14.3 or newer is required for Homebrew.
Please upgrade:
brew install git
Warning: Xcode alone is not sufficient on Catalina.
Install the Command Line Tools:
xcode-select --install
Warning: Broken symlinks were found. Remove them with `brew cleanup`:
/usr/local/share/ghostscript/9.19/Resource/Font/wasy10.pfb
/usr/local/share/ghostscript/9.19/Resource/Font/wasy5.pfb
/usr/local/share/ghostscript/9.19/Resource/Font/wasy6.pfb
/usr/local/share/ghostscript/9.19/Resource/Font/wasy7.pfb
/usr/local/share/ghostscript/9.19/Resource/Font/wasy8.pfb
/usr/local/share/ghostscript/9.19/Resource/Font/wasy9.pfb
/usr/local/share/ghostscript/9.19/Resource/Font/wasyb10.pfb
/usr/local/share/ghostscript/9.21/Resource/Font/wasy10.pfb
/usr/local/share/ghostscript/9.21/Resource/Font/wasy5.pfb
/usr/local/share/ghostscript/9.21/Resource/Font/wasy6.pfb
/usr/local/share/ghostscript/9.21/Resource/Font/wasy7.pfb
/usr/local/share/ghostscript/9.21/Resource/Font/wasy8.pfb
/usr/local/share/ghostscript/9.21/Resource/Font/wasy9.pfb
/usr/local/share/ghostscript/9.21/Resource/Font/wasyb10.pfb
/usr/local/share/ghostscript/9.23/Resource/Font/wasy10.pfb
/usr/local/share/ghostscript/9.23/Resource/Font/wasy5.pfb
/usr/local/share/ghostscript/9.23/Resource/Font/wasy6.pfb
/usr/local/share/ghostscript/9.23/Resource/Font/wasy7.pfb
/usr/local/share/ghostscript/9.23/Resource/Font/wasy8.pfb
/usr/local/share/ghostscript/9.23/Resource/Font/wasy9.pfb
/usr/local/share/ghostscript/9.23/Resource/Font/wasyb10.pfb
/usr/local/share/man/man1/brew-cask.1
/usr/local/share/zsh/site-functions/_brew_cask
¿Cómo puedo obtener el emacs
para que apunte a la nueva versión?
P.D. Hay un puesto similar en este foro, pero la respuesta no es relevante para mí.