Questions tagged [debugging]

Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Link broken in inline comment

[[link]]@@comment:[[link]]@@ # [[link]] * link I get the message "No Link Found" when clicking on the [[link]] within the inline @@comment:[[link]]@@. The link works fine with emacs -Q, ...
0
votes
0answers
9 views

Use edebug to trace ivy-read OR how to prevent focusing in minibuffer

I would like to understand more of the internals of ivy-read. So I tried using edebug to trace some of the helper functions in ivy.el. However, upon entering edebug, the focus always is in the ...
0
votes
0answers
14 views

Fontlock markup disappers when visual line is active

I have the following setting in my .emacs.d folder. (defface org-commentary '((t :foreground "tan1")) "Face for commentary text in org mode") (defface org-commentary-delimiter ...
0
votes
1answer
21 views

How to modify a file you're debugging with realgud

I understand mechanically from here: debugging: how to optimize a RealGUD workflow How to edit code in the source window using realgud? I can use C-x C-q to disable read-only mode on the python file ...
0
votes
1answer
28 views

Realgud to default to my most recent python executable

When I run realgud for python debugging, with: M-x realgud:pdb I see this prompt: Run pdb (like this): python -m pdb /home/username/work/place/scratch.py I'm using a conda environment installed in ./...
1
vote
1answer
19 views

gdb over ssh via tramp fails (but gdb-gud works?)

I am running into an issue where the gdb command fails over tramp. The remote host is a simple linux box I am accessing via ssh. Even when I run emacs without my init file it still happens. Emacs 27....
0
votes
0answers
66 views

How can I get holding down the spacebar to work as expected

When I am editing text, if I press and release the spacebar it works as expected. However, if I hold down the spacebar I get the following message in the echo area. <Hangul> is undefined I saw ...
0
votes
0answers
14 views

How can I stop iso-transl running

I have run the macport emacs 27 on macOS. The bindins of my keys as as per mac-keys-mode (anmd aquamacs) and have Command key acting as alt. Thus all my key bindings are A-key This normally works. ...
0
votes
1answer
63 views

Emacs transparent after fresh install

Complete emacs beginner here. Just installed emacs in my Manjaro (awesomewm edition) machine using pacman. The emacs window is almost completely transparent, I can't read anything. If started from a ...
0
votes
0answers
14 views

GAP mode (interactive mode for working with GAP) swallows first lines of output

On Windows 10, I have emacs under cygwin which works well. In particular, I am running GAP in emacs using gap-mode and everything is OK. Now to use some other apps, I was forced to install another ...
0
votes
1answer
36 views

How to track down where Emacs message “<Scroll_Lock> is undefined” comes from?

I am using Emacs 25.5 and now am getting the message: "<Scroll_Lock> is undefined" appearing regularly in the Messages buffer. If I turn on debug-on-error, it doesn't stop on it and ...
0
votes
0answers
26 views

(Windows Terminal) and xterm-mouse-mode has a problem

Don’t really know where to post this issue, or even the nature of it, but it can get very frustrating. This is not exclusive to Windows Terminal, MobaXTerm has the same problem. So I use emacs under ...
0
votes
0answers
105 views

I broke Spacemacs

After editing my .spacemacs file, spacemacs is saying that there is an unmatched parenthesis and I need to go into startup recovery mode. After looking at the file, I have not found any problems. ...
0
votes
0answers
49 views

`company-ngram` backend error on windows 10

I am getting this error on windows 10 python 3.8 Emacs 27 and prelude configuration Company: backend company-ngram-backend error "Process company-ngram not running" with args (prefix) I am ...
1
vote
1answer
32 views

Emacs freezes when pressing ESC

My Emacs usually works well, but sometimes it freezes, to be more specific: It only freezes after pressing ESC. When the freeze begins, it will always freeze after pressing ESC: I kill Emacs, restart ...
0
votes
1answer
79 views

Buggy org export to LaTeX `itemize` and `enumerate` functions

A similar question has been put to the TeX community over here, which led to the insight that this is an org-export issue. Hence the current question: The org document below generates a tex file that ...
0
votes
1answer
30 views

Gnus fails opening larger imap group

If I try to open an larger imap group (a few thousand messages both read and unread) Gnus gives a warning: Wrong number of arguments: #, 2 And the Summary window is empty or it contains only some of ...
-1
votes
1answer
53 views

mark-sexp (Wrong number of arguments)

((foo(bar)) ...
2
votes
0answers
43 views

Unexpected indentation in python chunks

Already one year ago, I described a problem on github with polymode and unexpected indents. Since there was no answer there so far and the problem is really annoying, I ask here for ideas for a ...
0
votes
1answer
60 views

Byte compilation error with use-package

The beginning of my ~/.emacs.d/init.el file looks like this: ;; MELPA (require 'package) (setq package-enable-at-startup nil) (setq package-check-signature nil) (add-to-list 'package-archives '("...
1
vote
2answers
85 views

Debugger entered--Lisp error: (wrong-type-argument sequencep all) cl-intersection((all magit) all)

I am trying to use magit-delta (https://github.com/dandavison/magit-delta). I am using GNU Emacs 26.3. When I add following line ( (magit-delta-mode 1) )into the .emacs file, I get following error: ...
0
votes
0answers
22 views

Continuously redirect debugging information (e.g. *Messages*) to file

My Emacs configuration (Emacs 27, Doom-Emacs config with lots of user-specific tweaks, running on MacOS) sometimes hangs at seemingly random times, and the kill -SIGUSR2 <emacs PID> has no ...
0
votes
1answer
35 views

Configure gud to invoke python3 debugger instead of python debugger

When I issue the Emacs command M-x pdb it invokes Python’s pdb as python -m pdb foo.py. I want to instead invoke python3 -m pdb foo.py -- how do I set this up?
0
votes
0answers
33 views

ad-Advice-package--add-to-archive-contents: Symbol's function definition is void: package-desc-vers

Friends, I have put strong effort to write an understandable account of the problem. Thus, I ask you to open all the site links quoted at the place of citation to follow the problem history. I have ...
1
vote
1answer
54 views

When working on elisp where to show intermediate values?

I've only recently started diving deeper into elisp. I've been using message a lot in the past, much like println or print when in other languages. The trouble I have is that I'm writing elisp to ...
3
votes
1answer
104 views

How does one access the actual arguments to an Emacs Lisp function from the `*Backtrace*`?

I am trying to debug a problem in some elisp and don't understand how to access the information I want from the Emacs Debugger. Specifically, my backtrace looks like: ⋮ #f(compiled-function (hover) #...
0
votes
0answers
35 views

C-h v gives " Symbol’s value as variable is void: default

I'm running 26.1, I don't believe I have anything weird help-related in my .emacs. When I try to get help on a variable, C-h v, it tells me Symbol’s value as variable is void: default. Any hints of ...
2
votes
1answer
64 views

Magit deprecates `magit-popup`. Which of my packages depend on it?

How do I get Emacs to report which packages in my running Emacs depend on magit-popup? Soon Magit will stop supporting magit-popup because it has transitioned to the replacement transient. Somehow ...
1
vote
1answer
44 views

How to stop Emacs from using LaTeX mode key bindings for `*.tex` files?

It seems that Emacs tries to autodetect the type of file and changes some of its behaviors accordingly. I don't want any of this behavior. I just want Emacs to treat every file as if it were some ...
0
votes
0answers
15 views

emacs debugging -interpreter-exec being displayed when should see string returned from function

This is a problem I am seeing running emacs v26.1 on Windows 7, but the problem does not appear to be present when running on ubuntu. Code below: #include <iostream> #include <string> ...
1
vote
1answer
94 views

How to diagnose emacs running at 100% cpu

I'm having a problem where occassionally emacs will run at 100% cpu, and just hang forever. I've attached gdb to the process, and this is the stacktrace: #0 0x00007fc210e5c5bb in pthread_sigmask () ...
1
vote
0answers
41 views

Thumbnails not displaying with image-dired

Background: I recently found out about image-dired, so I'm playing around with it and trying to get it to work. It seems to mostly work, but when I image-dired into a directory (we'll call it ~/...
4
votes
1answer
62 views

Examine function arguments after debug-on-error

Here's a common debugging scenario: I am investigating a failure and for whatever reason I cannot instrument the relevant code with edebug. I can, however, in most cases get a backtrace via toggle-...
0
votes
0answers
44 views

Unable to send email through my second account

I have set up email in emacs using mu4e for both my personal and university account (both use gmail). However I am unable to send email from my university account. Personal account works totally fine....
3
votes
2answers
190 views

“Symbol’s value as variable is void: org-priority-highest” using org-agenda

While I'm trying to access any of the org-agenda options or commands! I always get this error Symbol’s value as variable is void: org-priority-highest and the list shows nothing even though I've set ...
3
votes
2answers
86 views

What tools can help make the emacs debug output more readable?

I was expecting to find tools I can use to to e.g. prettify the stack trace, or e.g. show all variables that are bound at each level of the stack trace as you navigate, but haven't found anything. Do ...
0
votes
0answers
28 views

Spacemacs: “Wrong type argument: stringp, nil” Auctex error when building tex file

following a recent update, Auctex now refuses to build. Throwing a wrong type argument: stringp, nil error. The full debug text: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-...
0
votes
1answer
28 views

How to print to the stdout / stderr from an emacs graphical session?

I'd like to print into the terminal that started emacs, instead of using Emacs message, whats the most convenient way to do this in emacs that uses the terminal? (printf "some number %d some string %...
8
votes
1answer
2k views

How do I debug `Package cl is deprecated`?

While compiling an Elisp package from github, I get the Warning: Package cl is deprecated How do I find out what triggers it? The specific file that triggers this is tiny and has no CL code. I ...
1
vote
0answers
43 views

How to debug org-caldav-sync?

I'm trying to sync Google Calendar over OAuth2 using org-caldav. However, when I execute M-x org-caldav-sync, the following error occurs: *Messages*: Contacting host: www.googleapis.com:443 json-...
0
votes
1answer
48 views

Error in newly installed magit -head branch header wrong type argument

I just installed the magit package in emacs 26.3 (using CentOS 7 OS). When I start it with M-x magit, I get the error below. It works fine for me in an older installation, and the only difference I ...
0
votes
0answers
19 views

Debugging huge memory allocation occurring before identified problematic function

I identified a particular situation which causes emacs allocates infinitely memory (and then freezes my PC). To be specific, I have an external link [[file:article.djvu::5][problematic djvu file]] ...
0
votes
0answers
11 views

Possible to name closures for easier reading of backtrace?

Let's say I write the following code: (let* ((f (lambda () (debug)))) (funcall f)) This will produce the following backtrace: Debugger entered: nil (closure (bootstrap-version t) nil (debug))() ...
1
vote
1answer
22 views

rgrep: string-match(“<C>”, nil) error

I found a weird behaviour with rgrep. The following is tested under emacs 26.3 with emacs -Q. Evaluate (rgrep "test" "*.org" "~/Org/wiki") gives me a string-match("<C>" nil) error: Debugger ...
1
vote
0answers
60 views

Troubleshooting “Match data clobbered by buffer modification hooks”

When running bibtex-reformat I get Match data clobbered by buffer modification hooks. I know according to the post here that one of my change hooks is clobbering the match data. In fact, when I set ...
1
vote
1answer
61 views

How can I trace source of “No catch for tag: --cl-block-nil--, t” error when trying to run “rtags-start-process-unless-running”

I've just found out a way to add "peek definition" functionality to Emacs by installing rtags. I installed rtags through Emacs, and everything seemed to go fine. However, I've run into some trouble: ...
1
vote
0answers
42 views

How do I debug a flask application from within emacs?

I want to use something like pdbpp or ipdb to debug a flask application. I've tried but not understood how to set a breakpoint in a python file that's part of a wider application and see it hit. There ...
0
votes
0answers
53 views

Can't run emacs from terminal.Cannot open load file: No such file or directory

Emacs 26.1 Linux Mint 19 Open terminal, write emacs, but I get error: Warning: Could not find simple.el or simple.elc. Cannot open load file: No such file or directory
0
votes
0answers
29 views

How to find what is creating and killing so many buffers?

A bunch of creating and killing buffers in my setup and I can't track down what is it. Here is my debug code: (add-hook 'kill-buffer-hook (lambda() (message "Killed: %s / %s" major-mode (...
0
votes
0answers
44 views

Can not install vue-mode on Emacs 25

I have emacs 25.2.2 on Ubuntu 18.04 I want to install vue-mode package. But I am getting this error message: vue-mode is an incompatible package. ...

1
2 3 4 5
8