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
1answer
19 views

How can I make emacsclient use an existing window in the current frame?

I'm on MS Windows, if that makes a difference. My desired behavior: There is only one frame visible at any time. Visiting a file should use an existing window in that frame. (This is the default ...
0
votes
0answers
59 views

list-packages has become very slow [duplicate]

After upgrading emacs from 24.4 to 26.3 on Windows, everything works fine except for one thing: the list-packages window has become horribly slow. Like, the cursor moves one second after the keystroke....
1
vote
2answers
93 views

Problem with giving inputs to a function programmatically

Some programs take user inputs, for example by calling the interactive function `sunrise-sunset', two arguments are taken from the user. Assume that the inputs are 0.0098 and 51.4934 (these are ...
0
votes
1answer
21 views

Unable to run nov-mode on Windows

disclaimer: I'm still relatively new to Emacs. When I open an Epub on MS Windows, Emacs opens it using Zip-Archive mode and displays its content (which is normal afaik). However, when I start nov-...
1
vote
1answer
15 views

Non-hex digit used for Unicode escape error when setting org-latex-classes

When I try to set org-latex-classes with the following code: (setq org-latex-classes '(("article" " \\documentclass[12pt,a4paper]{article} \usepackage{xeCJK} %\usepackage[heading]{...
0
votes
1answer
20 views

How to check whether an optional param was input?

I have a command with an optional argument whose value is a number. I need: If no input argument then use default value (1000) else use input arg. (random t) (defun insert-random-number-at-point(&...
0
votes
1answer
28 views

Scripted bookmark jump not working after startup

Add the following to .spacemacs: (defun my-bookmark-set (char) (interactive "cPlease enter a bookmark name to set: ") (bookmark-set (char-to-string char))) (defun my-...
0
votes
0answers
48 views

Unsure what to make of the following Emacs prompt to change my init file

Every time I open emacs, I get the following error; emacs is working fine, but not giving me the initial help screen: An error has occurred while loading `/Users/thorkamphefner/.emacs.d/init.el': ...
0
votes
0answers
39 views

Impossible to answer y-or-n-p prompt in EXWM if X window is focussed

When a y-or-n-p question (e.g. The file you want to open is very large. Really want to open it?) pops up in the minibuffer while an EXWM buffer is focussed, I have no option to answer the question (...
2
votes
1answer
40 views

How to use edebug on a function

I am trying to debug a problem with the alert.el package using edebug. However, I am unable to step through the alert function. I expect the debugger to enter the function and allow me to step ...
1
vote
1answer
28 views

Help? - Freeze up to 10 seconds happening on windows when exiting (kill-emacs) when desktop-save-mode and back-button-mode are enabled

I've spent a full working day trying to somehow resolve this, no luck, so I'm turning to this place hoping for help. Recently I started experiencing freeze of something like up to 10 seconds when ...
0
votes
1answer
22 views

Making resize-mini-windows buffer-local while locally let-bound

Upon striking C-x s (save-some-buffers) or C-x C-c, it report errorsin mini-buffer Making resize-mini-windows buffer-local while locally let-bound. Search the above errors but return no helpful ...
2
votes
2answers
43 views

problem with starting emacs via emacsclient

I have no problems starting Emacs from a terminal, while if I start it from the desktop (I have a desktop file containing emacsclient -ca '') Emacs starts with a putt-ugly font (see below a screenshot)...
0
votes
1answer
54 views

I see “Unnecessary call to ‘package-initialize’ in init file” but can't find the call to `package-initialize`

I'm running Emacs from HEAD on Mac OS. I installed emacs-plus using the --HEAD argument with homebrew. I did a whole grep for (package-initialize) in ~/.emacs.d/. The only reference I found to it is ...
0
votes
1answer
15 views

Remove the auto-generated marks from dired buffer

Upon invoking dired with C-x d, it display Five of the files have already been marked automatically , Consult with the manual of operation on files Strik U and * u to remove the mark but failed. ...
1
vote
0answers
17 views

Org agenda suddenly broken after installing org-mac-link

Org agenda is suddenly broken Symbol’s value as variable is void: org-tag-group-re. How to fix it? Diagnosis: The problematic code seems to be this: ;; org-mac-link (push (expand-file-name "~/....
0
votes
1answer
11 views

Skip the first breakpoint in entry file with Geben

Simple question, how can I run the XDebug debugger with Geben without it stopping execution on the first line of the entry file. What I would like is for the scripts to run normally but only stop on a ...
0
votes
1answer
44 views

elisp debugger jumping windows around

I'm trying to use the built-in elisp debugger, invoked by debug, and read the source code at the same time. Unfortunately, whenever I continue execution, with either c or d, the debugger jumps around ...
0
votes
0answers
41 views

Error when exporting to pdf in org-mode

I get the following error when exporting to pdf directly in org-mode (C-c C-e l o), but conversion using pandoc with the exported tex document (C-c C-e l l) works fine. What went wrong? Latex ...
1
vote
1answer
35 views

Reading at buffer position 2767`

I got such a error report but confused with 'position 2767` Debugger entered--Lisp error: (void-variable |) eval-buffer(#<buffer *load*-518868> nil "/home/me/.emacs.d/lisp/init-company.el" ...
0
votes
1answer
23 views

Org Link to png file displays as wildcard rather than the image file itself

When I click on a link to a certain recent screenshot, this is shown rather than the image itself. /Users/satibodhi/Creation/notes: wildcard 楷{氵尸}.png -rw-r--r--@ 1 satibodhi staff 2373 Jul ...
0
votes
0answers
31 views

IO Error writing filename: Input/Output error

Using emacs 24.3-22 on CentOS 7.6.1810. Writing to home directory on cifs mounted share. When writing a file auto-saves will work, but actually clicking the save button or doing Save As gives IO ...
0
votes
0answers
20 views

Debugger entered--Lisp error: (wrong-type-argument wholenump -98) [duplicate]

I am working on Org 9.1.8 and emacs 26.1, Every time I invoke Enter, it prompts Debugger entered--Lisp error: (wrong-type-argument wholenump -98) make-list(-98 nil) lisp-indent-initial-state()...
0
votes
0answers
98 views

Symbol's function defintion is void: org-show-all

I get the above error when trying to archive my org agenda using C-c C-x C-a and/or C-c C-x C-s, according to instructions over here. My archive location is set the default. UPDATE: After following ...
0
votes
2answers
32 views

Symbol's value as variable is void: ‘yes-or-no-p

I have the following lines in my config file: (fset 'yes-or-no-p 'y-or-n-p) (setq confirm-kill-emacs ‘yes-or-no-p) The latter line is what's throwing the error. I would like to be able to use 'y-or-...
0
votes
0answers
34 views

Org-table misaligns with Chinese data

Org table vertical lines do not align properly with Chinese data. | 標題一 | 標題二 | 標題三 | |----------+--------------+----------| | 中文圖表 | 直線會對不準 | 像這樣子 | | 這 | 是不是 | 問題 | | ...
0
votes
1answer
39 views

after-change-functions global value gets set to nil sometimes

I'm facing a strange issue and I don't know how to debug it. In the middle of work after-change-functions just gets set to nil. I use doom-modeline and it installs hooks to after-change-functions to ...
0
votes
0answers
23 views

org-mind-map unable to find flatten and dot command

I get the following error when running org-mind-map. Paths the each are as follows: $ which unflatten /usr/local/bin/unflatten $ which dot /usr/local/bin/dot How to tell org-mind-map to access ...
0
votes
1answer
40 views

Ditaa source code evaluated with no result

The code below evaluated successfully but ~/Downloads/foo.png is empty. A look at the downloads folder shows that no file has been generated. What went wrong? #+begin_src ditaa :file ~/Downloads/foo....
0
votes
0answers
28 views

`scad-mode` (derived from CC Mode) hangs Emacs. How to debug/fix?

I have found that scad-mode.el, a derived mode from CC Mode, which can be found here: https://github.com/openscad/openscad/blob/master/contrib/scad-mode.el hangs emacs if I type #( into the window,...
2
votes
1answer
61 views

How can I debug a hang when debug-on-quit doesn't work?

I have a problem with haskell-mode where Emacs will hang every time I open up a Haskell file. Mashing Ctrl-g a few times will get the file opened. So I would imagine setting debug-on-quit would allow ...
2
votes
1answer
71 views

can I use .dir-locals.el to set a default mode for files, and still allow dired?

I have a directory that is all little shell code snippets for being sourced. Tried creating an auto-mode-alist, that does not seem to be effective, so tried creating a .dir-locals.el thusly: ((nil . ...
0
votes
0answers
28 views

org-insert-link sometimes produces “wrong type argument: stringp, nil” after prolonged use of emacs

It usually happens after a couple of days of use that C-c C-l / org-insert-link inside .org files does not allow me to insert new links anymore. What I want to do is interactively insert link ...
0
votes
0answers
53 views

Why an error when calling a command in a specific buffer?

Q: why do I get errors when calling a command from a specific buffer, but not in any other buffer? Scratch all of what I had previously said about call-interactively (see strikethrough below for ...
0
votes
1answer
41 views

Org-ref not communicating with Tex-live?

Org-ref cannot tell that I have biblatex-caspervector installed. Is this because of some packages that I missed?
0
votes
0answers
29 views

org-mode internal link works only in some cases

I have an .org document with the following structure. * Headline 1 This is some text * Headline 2 :Custom_id: h2 This is heading number two ** Sub heading 1 <<target>> ** Sub heading ...
0
votes
0answers
35 views

org-ref “Unbalanced parentheses”, 20306, 18248 error

I am new to org-mode and I am learning to use it to replace markdown for academic writing. M-x org-ref gave me this error: org-ref "Unbalanced parentheses", 20306, 18248 error What should I do ...
-3
votes
3answers
119 views

what's wrong with my elisp? (“Debugger entered--Lisp error: (invalid-function”) [closed]

so I'm learning elisp and wouldn't ask this if I could figure out what was wrong with just the debug message. I'm trying to implement a super basic LRU cache (with the keys in the map just mapping to ...
1
vote
1answer
43 views

How to navigate stack frames in Emacs debugger?

I'm trying to debug the infamous Unrecognized entry in undo list undo-tree-canary, and after having Emacs debugger triggered on error, I want to move back and forth between stack frames and to examine ...
1
vote
0answers
70 views

Tramp hanging on writing or opening file

Tramp consistently hangs, for me, when opening or writing a remote file. None of the ‘why is Tramp hanging...?’ resources I've found seem to address my situation. What's odd is that this used to ...
1
vote
1answer
40 views

Why doesn't Emacs accept keyboard input in timers? [duplicate]

I've managed to write a timer that reliably causes keyboard input not to be accepted until I press Ctrl-G. The issue is, I don't know what causes the timer to lock up, what the stack frame is when it'...
0
votes
0answers
20 views

Some lisp errors not showing a backtrace

I have a few custom written methods in my init file. They run in to null issues - too often :) Anywhen, I noticed for some errors emacs pull up a backtrace/debugger prompt for me. But often the error ...
0
votes
1answer
45 views

Unable to quit emacs with `Wrong type argument: hash-table-p, nil`

I have some customisations in ~/.emacs.el. Today I refactored a piece that used dolist, directory-files, and find-file. I am now unable to quit Emacs in the normal way and I get this from the mini-...
2
votes
2answers
57 views

How to append an argument to an external command in init.el?

I 1must append a config file to 2package command, required as -p puppeteer-config.json. In my init.el, I tried changing the native command as shown below: From: (setq ob-mermaid-cli-path "~/...
6
votes
1answer
117 views

Surprisingly persistent local variable

A local variable keeps coming back, and I know not whence. In a certain buffer, TeX-command-extra-options is "--synctex=1", even after I have removed this from my init.el and restarted Emacs. I tried ...
0
votes
0answers
15 views

`gud-print` results in “Text is read-only” message

Whenever I run gud-print (C-xC-aC-p) with my cursor positioned on a variable while debugging with GUD (specifically via the gdb command), I get the message "Text is read-only" in the echo area. I can'...
0
votes
0answers
25 views

pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be turned on when using png_read_image

I occasionally run into the following error when opening a new file with projectile: pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be ...
1
vote
1answer
24 views

Figuring out what plugin is messing with my input

This is a more general question so I would like to know how to actually debug something like this. Suppose that I have some plugin that does section completion as code is being written. For example ...
2
votes
2answers
191 views

How to see *Messages* buffer in Spacemacs?

How to see *Messages* buffer as advised in this answer - https://emacs.stackexchange.com/a/32069/23367? Why do I need this? I am new to Spacemacs and I am trying to understand how it can help me ...
1
vote
1answer
115 views

Need help with `expand-region`: Symbol’s function definition is void: org-outline-overlay-data

If I try to use er/expand-region but it fails with Symbol’s function definition is void: org-outline-overlay-data. org-version : Org mode version 9.2.2 In the release notes for the current org (9.2),...