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

emacs opens unwantedly with some git commands

I have a very strange problem that I cannot work out. Emacs opens if I run some git commands such as git log, git branch, git show. Some git commands behave normally and do not open emacs, such as git ...
user avatar
0 votes
0 answers
26 views

`C-x C-;` freezes emacs

This hasn't been happening every time, though once it starts it's consistent while emacs is running at least. It claims to be bound to comment-line as usual, but I can't actually run it through C-h k ...
user avatar
0 votes
0 answers
5 views

Compilation buffer fontifies some parts

Here is a normal compilation message: Here is what I have: When I describe-char [...] I have the following description: position: 191 of 752 (25%), column: 0 character: F (...
user avatar
  • 178
0 votes
1 answer
24 views

:documentation void-function error

The following backtrace problem in being produced but cannot identify the problem correctly. Debugger entered--Lisp error: (void-function :documentation) (:documentation (concat "Version and ...
user avatar
  • 347
0 votes
1 answer
11 views

org-agenda stuck displaying last file in org-agenda-files list

For some reason, (after recently upgrading packages), running org-agenda via C-c a and then selecting a view from the dispatch buffer (such as a Agenda for current week or day) just shows me a buffer ...
user avatar
1 vote
1 answer
29 views

Bookmark Plus and pdf-tools/pdf-view error

I've installed Bookmarks+ from quelpa recently, and everything was working fine until I made a minor tweak with my pdf-tools config. Now I cannot jump to bookmarks of .pdf files from any buffer, ...
user avatar
1 vote
1 answer
22 views

Enabling --debug-init from within .emacs

Emacs can be started with the -debug-init command-line option. But how can I enable the command line option from within my .emacs file?
user avatar
  • 347
0 votes
2 answers
48 views

How to fix byte compiler warnings for "Unused lexical variable" in a macro?

I have a macro and a function which uses it: (defmacro oauth2-auto--query-case (&rest cases) "Handle HTTP queries based on the keys present in ‘query-alist’. ‘query-alist’ is a free ...
user avatar
1 vote
1 answer
26 views

Emacs makes my files not exist in Parcel

new Emacs user (on Windows) here! So far Emacs looks really cool! I'm developing website using Parcel and every time I save my main .html file with Emacs it breaks my development server. HTML file I ...
user avatar
  • 13
1 vote
2 answers
67 views

Debugging a hook function

I have this code: (add-hook 'org-mode-hook (lambda () (when (string-match "notes\\.org$" buffer-file-name) (face-remap-add-relative 'default :background "yellow"))))...
user avatar
  • 35
0 votes
1 answer
45 views

Getting prefix as argument

With this function, I get the error test: Wrong type argument: stringp, 2 Is it good to pass prefix this way? Thought that the argument prefix would be filled up with the prefix value. (defun test (...
user avatar
  • 347
-1 votes
2 answers
47 views

How can I enable flymake to collect information about problems in an Elisp buffer?

How can flymake be enabled on emacs-lisp code to collect information about problems in the buffer? Have done (flymake-mode) to enable it. But getting the error Warning (flymake): Disabling backend ...
user avatar
  • 347
0 votes
0 answers
57 views

Wrong type argument: filenamep error after switching to Emacs v28

I use emacs in -nw mode on a computer cluster, and was using Emacs v25. I asked my sys admin to install a newer version (27 or higher) because global-display-line-numbers-mode was apparently not ...
user avatar
1 vote
1 answer
37 views

How to debug my init.el if --debug-init does not help?

Despite having --debug-init in .xinitrc (exec dbus-launch --exit-with-session emacs --debug-init), I'm not getting any leading details on this error. Error in dotspacemacs/user-config: Symbol’s value ...
user avatar
  • 629
0 votes
1 answer
43 views

Meta key getting stuck in Windows 11 WslG, how to release meta when switching to frame

In Windows 11 WSL Ubuntu 20.04, I am using the new WslG feature which allows native gtk apps to run smoothly on windows (and I compiled Emacs 29 with the --with-pgtk option when installing), but I am ...
user avatar
  • 193
0 votes
0 answers
38 views

"Error running timer file missing doing vfork" Emacs dap debug C++

I've c++ cmake project beginning-cpp20. The project structure as as below - $ tree . . ├── CMakeLists.txt ├── launch.json └── meetingcpp.cpp The contents of CMakeLists.txt is - cmake_minimum_required(...
user avatar
0 votes
0 answers
39 views

Error on multi buffer rendering

I had been using emacs since 5-10 years ago and never had any single problem, I used to use Vanilla emacs with some configurations as Sebastiencs's Sidebar, now I'm using Doom emacs with treemacs. In ...
user avatar
1 vote
1 answer
36 views

Setting filename for saving buffer

I am using the following function workbench. How may I resolve the error if: Wrong type argument: sequencep, 1 when calling M-x workbench? With backtrace I get Debugger entered--Lisp error: (wrong-...
user avatar
  • 347
2 votes
0 answers
22 views

Org mode babel hangs with python C-c C-c

When I C-c C-c in a Python code block in Org mode: #+BEGIN_SRC python :results value :session a = 4 a + 13 #+END_SRC It hangs with a message: Warning (python): Your ‘python-shell-interpreter’ ...
user avatar
  • 121
0 votes
1 answer
69 views

command-execute error with straight.el

I have just tried to setup magit using straight.el in my init file as follows: (use-package magit :straight t :bind ("C-x g" . magit-status) :commands (magit-status ...
user avatar
0 votes
1 answer
28 views

Emacs Social Sciences Starter Kit - Not Loading

I am trying to install Kieran Healy's Emacs Social Sciences Starter Kit. I think I followed the instructions meticulously (details below) but – to cut to the chase – when I launch emacs, I get vanilla ...
user avatar
1 vote
1 answer
40 views

"Invalid version list `(4 5 -4 414)'" when running `M-x package-list-packages`

When following a suggestion for solving another problem, I'm doing M-x package-list-packages. However, that gives me the error message Invalid version list `(4 5 -4 414)'. What does this mean, and ...
user avatar
1 vote
0 answers
26 views

Some errors when customizing run-python

I want to make a complement to run-python in python-mode. Here is my snippet: (defun dpy-run-python () (interactive) (when (python-shell-get-process) (delete-process (python-shell-get-...
user avatar
  • 11
0 votes
0 answers
30 views

How do I debug Tangled 0 code blocks?

This is a history of an unsuccessful attempt to fix tangling in my Emacs configuration. In frustration, I have removed the org-mode config and left the file that was a result of previous successful ...
user avatar
0 votes
1 answer
47 views

AUCTeX error 127

I'm trying to call AUCTeX from Emacs and I'm now getting the following error (quote marks changed slightly to get code block below to work): Running 'TeX' on 'simple' with ''pdf/Users/myname/bin/...
user avatar
  • 103
0 votes
1 answer
34 views

wrong-type-argument listp \357\273\277 when working with packages

I use Emacs 27.2 on Windows 10. Working with packages used to work, but now I am getting Failed to download ‘gnu’ archive., when calling for instance M-x package-refresh-contents. I tried M-x toggle-...
user avatar
0 votes
0 answers
14 views

How do I view the entire call chain from a command?

I am facing weird issues from editing Kotlin code with LSP enabled with lsp-mode, in Spacemacs. Everytime I evil-yank and evil-mc-paste a line by yy followed by p, an empty line is pasted instead. The ...
user avatar
0 votes
0 answers
41 views

How can I add a horizontal line (`\hline`) above the first table row when exporting to latex?

I want a table in org mode to meet two needs: When it is exported as latex, the result table in latex has the top horizontal line. like this: Can be used as input variable for R code blocks But it ...
user avatar
0 votes
0 answers
30 views

How to debug a bug in cl-generic.el?

While working on developing a fork of inf-ruby such as to use EIEIO and cl-generic in an approach, I've discovered what appears to be a bug in cl-generic.el. I'm testing this presently with GNU Emacs ...
user avatar
0 votes
1 answer
27 views

context-menu-functions changing

Running emacs 28.1 whenever I use a mode derived from text-moe or prog-mode the value of context-menu-function is replaced. What is doing this and how can I stop it? The default is (context-menu-undo ...
user avatar
  • 311
0 votes
0 answers
28 views

How to Debug Rust Executable with arguments in DAP-mode?

I did install dap-mode and configured it for Rust as instructed here and there. Although it looks like it is working, I have no idea of how to debug the executable with passed arguments.
user avatar
  • 1
0 votes
0 answers
43 views

Side effects of global-set-key?

I have had (global-set-key [f9] 'compile) in my Emacs init file for many years. With this setup, hitting [f9] and doing M-x compile RET should run the same commands the same way, right? But today I ...
user avatar
  • 161
0 votes
1 answer
31 views

How to log backtrace to a file instead of popping it up and blocking following backtraces

With emacs if there is a backtrace buffer open, new backtrace is ignored. I find it is unconvenient when I am trying to find out which function/hook changes a variable. I use debug-watch as described ...
user avatar
  • 1,165
3 votes
1 answer
56 views

How to debug reftex not working with multiple files

I am using reftex and auctex with emacs 27.1 on Ubuntu 21.10 to write a large latex document that consists of many .tex files in a single directory. Between various weekly Ubuntu updates and editing ...
user avatar
0 votes
2 answers
32 views

Editing Go(lang) code freezes PC

Everytime I open a golang file and start editing, (even a file with just the following in) package models import "github.com/gofrs/uuid" type Client struct { ID uuid.UUID `...
user avatar
  • 131
2 votes
1 answer
46 views

org-publish: Wrong number of arguments: plist-get

I tried to configure org-publish with some html variables, but I'm getting this error let: Wrong number of arguments: plist-get, 3. I've debug-on-error enabled but doesn't show up the minibuffer. This ...
user avatar
  • 29
0 votes
0 answers
40 views

"let: Symbol's value as variable is void" when loading .dir-locals

I have the following .dir-locals: ((nil . ((eval . (let ((project-root-dir (expand-file-name (locate-dominating-file default-directory ".dir-locals.el")))) (defun tokenize-...
user avatar
  • 123
1 vote
0 answers
20 views

"fileloop-next-file: Read error: Is a directory" when running project-query-replace-regexp

Hitting this error when trying to run project-query-replace-regexp. The project I'm working under has git submodules, if that could cause any issues? (Redacted some of the directories and search ...
user avatar
  • 163
2 votes
0 answers
37 views

Emacs sometimes freezes from PDFs

I'm currently using Emacs 27.1 running on Ubuntu 21.10. The problem I have is Emacs stop responding from time to time, but this only occurs when I open a PDF file or while I'm reading PDF books (...
user avatar
  • 21
0 votes
0 answers
90 views

Bug in emacs evil?

I'm running into some trouble with emacs evil. I get the error (wrong-number-of-arguments (3 . 4) 2) and when I run debug I get the following message: Debugger entered--Lisp error: (wrong-number-of-...
user avatar
0 votes
1 answer
45 views

While running "package-refresh-content" show me this. Why? Emacs 28.1

Debugger entered--Lisp error: (error "Location https//elpa.gnu.org/packages/ is not a url nor an absolute file name") signal(error ("Location https//elpa.gnu.org/packages/ is not a ...
user avatar
0 votes
0 answers
61 views

"Wrong type argument" adding projects to treemacs

I'm just setting up Treemacs for the first time. I am using Emacs' built in project management (not Projectile) and ideally want Treemacs to always show only the current project. Currently, if I run ...
user avatar
1 vote
1 answer
161 views

How does one fix the Warning (initialization): An error occurred while loading error?

What does this error mean: Warning (initialization): An error occurred while loading ‘/Users/brandomiranda/.emacs’: Wrong number of arguments: (3 . 4), 2 To ensure normal operation, you should ...
user avatar
0 votes
1 answer
90 views

"Invalid read syntax: . in wrong context"

I wanted to add a new display setting to init.el file, but didn't like it and removed the line. Now when I start emacs I get this error: Invalid read syntax: . in wrong context Here is the init.el ...
user avatar
1 vote
1 answer
65 views

Loading charset map: No such file or directory, JISX0208

Trying to save files I have suddenly started recieving the following error: Loading charset map: No such file or directory, JISX0208 In *Messages* this is reported as: find-coding-systems-region: ...
user avatar
1 vote
0 answers
26 views

What is the preferred method of submitting a bug report on macOS?

On a Mac, when an application dies, a GUI window comes up with a place to type in some stuff if you want to and then hit "Report". Something goes off somewhere to someone but I'm 99% sure ...
user avatar
  • 273
0 votes
1 answer
48 views

Identification of emacs error reporting invalid read syntax ")"

Have been debugging a minor-mode I am writing. After much torture spend locating the problem, I have now narrowed things down to the following function. Still, I have not been able to fix the ...
user avatar
  • 169
0 votes
2 answers
101 views

Tools for locating and debugging errors

I am getting the following error, but am finding it difficult to locate the problem. Are there any tools for debugging in such instances? Warning (initialization): An error occurred while loading ‘/...
user avatar
  • 169
1 vote
1 answer
22 views

doremi: previous event triggering an error

In this example, the function doremi https://www.emacswiki.org/emacs/DoReMi seems to be encountering a problem due to the previous input. Based upon that assumption, I have tried calling discard-...
user avatar
  • 17.8k
0 votes
0 answers
37 views

What is "member" and why does it expect to find an `org` directory in my home directory?

Faced with some org-agenda problems, I tried this: Blow away all emacs config that I know about .emacs .emacs.d .spacemacs .spacemacs.d Follow spacemacs install docs from scratch (checking out ...
user avatar

1
2 3 4 5
10