Garbled text in Pdf in Emacs 29.4 #291
Replies: 6 comments 2 replies
-
As you can see from your messages buffer, building Change your configuration to:
and try again. If/When it fails, share the contents of the compilation buffer, which will have details of what has failed. (To find the compilation buffer, |
Beta Was this translation helpful? Give feedback.
-
Hi Vedang, thanks for getting back to me. I have changed the config file as you suggested. I then restarted emacs and had to run
|
Beta Was this translation helpful? Give feedback.
-
Go to Then restart Emacs. Use the new config that I shared here, you don't need the older config. If the |
Beta Was this translation helpful? Give feedback.
-
The fact that the package is being built properly means that the likely culprit is Emacs not able to setup your environment properly (i.e. Processes launched from inside Emacs don't have access to the proper environment and therefore can't find dependencies). I am not sure how to help you fix this or diagnose it further. One thing you can try (not a fix, but maybe a workaround) is to Restart Emacs and see if it can use the latest epdfinfo properly. The real fix is to figure out what part of your config is causing Emacs process to spawn incorrectly. |
Beta Was this translation helpful? Give feedback.
-
Consider installing and using https://github.com/purcell/exec-path-from-shell in your Emacs config |
Beta Was this translation helpful? Give feedback.
-
Hi Vedang, thanks for taking the time to address this. Since emacs is the problem, I'm wondering if it has something to do with how I have installed it. For the 27.1 version, I ran sudo apt install emacs on the terminal. When I try running sudo apt install emacs emacs-common, it tells me that emacs 27.1 is the newest version. |
Beta Was this translation helpful? Give feedback.
-
OS: Pop!_OS 22.04 LTS
Hi everyone, this is the first time I'm using github, and will be grateful for the community's help. Firstly, thank you to the developers for this wonderful tool. I am a Humanities researcher and have been primarily using emacs for academic writing.
I was using pdf-tools with GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) for about a year or so now, and it's been great. I have been trying to upgrade to GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.42, cairo version 1.18.0), but the main thing holding me back is that I am just not able to get pdf-tools working. I was able to get it installed with M-x list-packages, install pdf-tools from MELPA, but when I open a pdf, all I see is this garbled text.
Also, while I succeeded in installing pdf-tools through M-x list-packages, when I start up emacs, it is not doing it automatically and producing an error.
This is what I have in my config file:
#+begin_src emacs-lisp
(use-package pdf-tools
:ensure t
:config
(custom-set-variables
'(pdf-tools-handle-upgrades nil))
(setq pdf-info-epdfinfo-program "/usr/local/bin/epdfinfo"))
(pdf-tools-install))
(use-package org-pdfview
:ensure t)
#+end_src>
On start up, this is the message I get :
Loading /home/brani/.emacs.d/config.el (source)...
.emacs.d/config.el: Warning: (lambda nil ...) quoted with ' rather than with #'
Loading /home/brani/.emacs.d/config.el (source)...done
Loaded /home/brani/.emacs.d/config.el
Need to (re)build the epdfinfo program, do it now ? (y or n) y
For information about GNU Emacs and the GNU system, type C-h C-a.
Comint exited abnormally with code 1
error in process sentinel: Building the PDF Tools server failed [2 times]
Updating buffer list...
Formats have changed, recompiling...done
Updating buffer list...done
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Mark set
I don't particularly understand code (lisp or any other) and have been using emacs through the help of the many discussions online on problems I face, but I have just not been able to figure this out. Also, my main motivation for upgrading emacs version is so that I can use org-cite, which is lacking in the 27.1 version. I'll be grateful if you can help me get this sorted.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions