We’re rewarding the question askers & reputations are being recalculated! Read more.

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
35 views

Org-table misaligns with Chinese data

Org table vertical lines do not align properly with Chinese data. | 標題一 | 標題二 | 標題三 | |----------+--------------+----------| | 中文圖表 | 直線會對不準 | 像這樣子 | | 這 | 是不是 | 問題 | | ...
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
0answers
31 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,...
0
votes
0answers
34 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
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
38 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 ...
0
votes
0answers
21 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
0answers
19 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
30 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 ...
0
votes
0answers
67 views

end of file during parsing during org-mode export to latex

I have a weird thing going on with emacs on Fedora 29. Once in a blue moon, my Emacs will go HA! you cannot export to LaTeX with the "error": end of file during parsing during. However, if I move ...
0
votes
1answer
75 views

Wrong type argument: symbolp, possible mismatched parenteses in .spacemacs

I am trying to apply a fix to make it easier to change todo status in org mode. The code is the following: '( (org :variables org-want-todo-bindings t) ) from https://github.com/syl20bnr/...
0
votes
0answers
27 views

Emacs flashes when changing buffer with `ido-switch-buffer`

When I change buffer via ido-switch-buffer and enter a python buffer my entire Emacs flashes visually for a second. If I handle other files the same way, it does not. What can be the reason for that? ...
0
votes
0answers
59 views

Ctrl-g will stop Emacs(terminal) and send it to background, ending with core-dump

I'm using Ubuntu server without GUI(ssh into the server), so I use Emacs in terminal, but since the first day I use it, Ctrl-g will stop Emacs and send it to background multiple times one day, it is ...
0
votes
1answer
78 views

Invalid function: treemacs-block

I use treemacs for project management. For some reason (even if I don't have treemacs buffer opened) when I try to launch Dired for the first time I get invalid function: treemacs-block What is even ...
0
votes
0answers
405 views

Spacemacs error when loading `.spacemacs` which uses package `flycheck`

I added the following at the end of my ~/.spacemacs file: (use-package flycheck :defer t :init (global-flycheck-mode)) When I do this, I get Spacemacs encountered an error while loading your '/...
0
votes
0answers
53 views

Unknown *emacs* process

I recently realized that every time I lunch emacs, after a minute, a strange buffer appear in buffers list that is linked to an emacs process, infact it also appear in system's process list: When I ...
0
votes
1answer
41 views

Why do parts of my Emacs buffer turn invisible when I'm writing elisp?

When I'm writing elisp code, parts of the buffer that I press enter on turn invisible (i.e. they get the property invisible set to t). I haven't been able to reproduce this reliably, because it doesn'...
0
votes
0answers
65 views

Slime inspector for emacs lisp

I want to know, if there is some possibility of inspecting an object as slime inspector does. For example, using libyaml I get the following result, it worked well: ELISP> (yaml-read-from-string ...
0
votes
0answers
26 views

fault-tolerant `check-parens` resp. `scan-lists`

Looking for a way to have a fault-tolerant navigation. I.e. in case of broken syntax, uncomplete forms etc. --when check-paren fails--, it should try some heuristics. Unfortunatly can't use check-...
0
votes
0answers
28 views

helm-comint-input-ring - get error: shell-mode-map

windows 10, emacs 26.1, helm 3.0 I use C-c C-l (comint-dynamic-list-input-ring) I get something like this: But I don't like this. I want to use helm-comint-input-ring. I want to get something like ...
0
votes
0answers
264 views

Disabling recentf mode?

I try to disable this via (recentf-mode -1) (setq recentf-mode nil) ;; mysteriously switches to t after some time but it keeps automatically turning on after some time and is causing problems for ...
0
votes
0answers
45 views

Debug missing keystrokes

Something has happened to my Emacs environment that causes keystrokes to be dropped occasionally. It seems to happen more often in isearch, or after a week and a couple hundred buffers open. The ...
0
votes
1answer
359 views

override “C-SPC” set-mark-command

I'm using expand-region and experimenting with it trying to find the right key binding As per expand-region README it binded to (global-set-key (kbd "C-=") 'er/expand-region) But I'm not satisfied, ...
0
votes
0answers
54 views

C-S-a doesn't select text to the line beginning

The Key combination Ctrl + Shift + a doesn't work in my GUI-Emacs to select a region from the position of pointer to the line start. Doing C-h k and the above key combination shows no documentation.
0
votes
2answers
140 views

Bad sexp error on custom diary function

I've created a diary function to allow me to record cyclic events. So something like (diary-limited-cyclic-weekday 8 '(0 3 6) 01 01 2018) will create an event for every Sunday, Wednesday, and ...
0
votes
0answers
44 views

Unable to run browse-kill-ring

After installing the browse-kill-ring package under Emacs 24.5.1, I get the following error when running the browse-kill-ring command: font-lock-set-defaults: Wrong type argument: symbolp, (font-...
0
votes
0answers
52 views

Detect variable use in an elisp function at run time

I try to understand a piece of elisp source code, with many nested and conditional functions calls, and I would like to know if a particular variable is used (and, if so, where in the code) at run ...
0
votes
0answers
173 views

Emacs hung with Error running timer 'blink-cursor-start'

I just installed a fresh Ubuntu 17.10 on a Dell XPS 15, and then installed Emacs from the repos with apt-get in the normal way. The moment I start Emacs, I get the error message Error running timer '...
0
votes
0answers
129 views

Slow Emacs at editing elisp files

When editing .el files my Emacs is very slow. The larger the file, the worse it behaves, it is especially visible while scrolling or using autocompletion of any kind. It becomes pretty visibly slow at ...
0
votes
0answers
259 views

toggle-debug-on-error only works for the first error, how can i fix this?

when I enable debug on error it works perfectly the first time. when I go and fix my error and rerun my function debug on error no longer triggers for new errors. Is there a way to enable it so ...
0
votes
0answers
339 views

Error when initializing Emacs

This is what I get when starting Emacs from terminal with emacs --debug-init. I don't know the reason why emacs suddenly started to not working. Debugger entered--Lisp error: (wrong-type-argument ...
0
votes
1answer
420 views

Debugging emacs 24.5 slow startup (WSL)

I'm running emacs24-nox on Ubuntu trusty on Windows Linux Subsystem, and I'm trying to figure out why the startup time is slow. I've inspected the startup with strace and found two calls to poll that ...
0
votes
1answer
44 views

Need help to debug an issue with query-replace command

The query-replace command used to work perfectly for me. Recently, it fails with a symptom like this: [updated] Assuming the code looks like: (for example) set_flaag(var1); set_flaag(var2); Now I ...
0
votes
0answers
60 views

how to debug who move cursor

I have very annoying problem, after I run M-x compile time to time cursor jump from middle of buffer to the first line. I want to find out culprit (I found mode who responsible for this, but I want ...
0
votes
1answer
147 views

emacs org-mode error during installation in windows

While I try to install org-mode using M-x package-install RET org RET, I am getting the following error. I am new to both emacs and org-mode and using Windows 10. Debugger entered--Lisp error: (void-...
0
votes
0answers
206 views

Help with debugging emacs, when opening routes.rb from rails applications

I'm using emacs for my every day tasks, I started more or less 4 years ago, and now I'm very happy with emacs. maybe I have a lot of plugins working together. This is my-ruby configuration file I ...
0
votes
1answer
26 views

Removing old name /tmp/docview1000 warning

When starting emacs I get the following warning: Warning (initialization): an error occurred while loading '/home/jamesbond/.emacs': File error: Removing old name, no such file or directory, /tmp/...
0
votes
1answer
38 views

Function to add a number at the end of a line to another number on the top line

I'm trying to implement a gamification system in org-mode. Basically, I assign a number of points to a checkboxed task and when I tick the checkbox I add the number of points to a total at the top of ...
0
votes
0answers
89 views

Cannot open .po files: “Wrong type argument”

Whenever I try to open .po (Portable Object) files in emacs, I get a "find-file-noselect-1: Wrong type argument: arrayp, nil" error and the file is not displayed. However, if I change the file ...
0
votes
0answers
43 views

How to investigate an emacs crash on linux [duplicate]

im not very technical and lately i have been getting random crashed the seem to kill emacs and even the emacs daemon. this is an example output from CLI Fatal error 11: Segmentation fault Backtrace: ...
0
votes
1answer
46 views

car on cons gets nil

I define an alist like this: (setq major-mode-list '(((emacs-lisp-mode inferior-emacs-lisp-mode) . ("Elisp" "Emacs")) ((haskell-mode) . ("Haskell" "Haskell")) )) And match current major-...
0
votes
2answers
856 views

Can't see pdb output from shell-mode

I'm on Windows, for what it's worth. Just to make sure that it wasn't something that I did, I fired up emacs using -Q to avoid loading my init.el and attempted to run some python with a breakpoint ...
0
votes
0answers
156 views

Debugging a crippling memory leak

After using a emacs for a while all I see is Garbage collecting...done in the modeline. At this point emacs is constantly garbage collecting but can't free any memory and has to be restarted. Emacs ...
0
votes
1answer
109 views

After `M-x pdb` switch to `compilation-mode` automatically?

M-x pdb is great while debugging. When the python process exits though, often there is a traceback left behind in the gud buffer that I'd like to view using compilation-mode so I can use next-error ...
0
votes
0answers
49 views

What completion modes am I using?

I do not curate my .emacs and packages very effectively. Right now I have an issue where, when working in the Ruby, I type def[space] and then magically two end lines appear. Obviously I have managed ...
0
votes
2answers
138 views

move-beginning-of-line broken in comint mode

After a while running emacs (typically days) all comint buffers start to behave strangely (shell, python, SQL). The ones I have already opened and the new ones that I open. When I am after prompt, C-...
-1
votes
1answer
54 views

how to get region start and region end from the whole buffer as variables to call another func

(defun buffer-to-shell() (let (buffer mark-whole-buffer))) (shell-command-on-region start end "sed s/foo/bar/") ;; start, end not defined ) As you might see there are undefined variables start ...
-1
votes
1answer
66 views

why is save-buffer asking for a chmod?

All of sudden, XEmacs 21.4.22 starts asking whether it should chmod a+x $f everytime I try to save a buffer that is in Shell-script mode. Switching it to fundamental-mode stops that behaviour. ...
-3
votes
3answers
166 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 ...