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
2answers
109 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
41 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
47 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
156 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
118 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
225 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
265 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
390 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
42 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
52 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
712 views

doc-view not working with emacs 25.2.1. (x86_64-w64-mingw32)

I am definitely no newbie and I think I now followed every little advice I could find online, and after 2 days doc-view is still not working :-( (it works fine on my older laptop under windows 10) On ...
0
votes
1answer
138 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
191 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
82 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
41 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
44 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
776 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
143 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
104 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
48 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
134 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
42 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
65 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
79 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 ...