Questions tagged [emacs-internals]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
151 views

compiling emacs without dump/unexec enabled

Is there a way of configuring the emacs build to produce an executable that does not use dump/unexec functionality? I'm trying to compile emacs with ASAN, clang and gcc's address sanitizer, enabled. ...
1
vote
1answer
407 views

How does emacs mark the stack for GC

Since I tried creating my own Lisp interpreter (just for learning purposes, as I knew it wouldn't get too far), I have read and tried to understand the internal workings of the Elisp interpreter and ...
3
votes
2answers
1k views

Compile Emacs with xwidgets in Ubuntu 14.04

Going to build Emacs from the git repository. Found this and this resources that suggest to compile it with xwidgets for Ubuntu 16.04. On my Ubuntu 14.04, did install the corresponding dependencies ...
-5
votes
2answers
296 views

Why is Emacs code so unorganized? [closed]

I've been looking at Mickey Petersen's exegesis on the Emacs 25.1 NEWS file, and realized that built-in Emacs Lisp files are a mess. The worst offender is without a doubt subr.el, whose description ...
0
votes
0answers
22 views

Why does forward-word stop at this quotation mark? [duplicate]

Minimal example code, run it from emacs -Q. Note the use of unicode RIGHT SINGLE QUOTATION MARK (’) not APOSTROPHE ('). (modify-syntax-entry ?’ "w p" text-mode-syntax-table) ; that's the same syntax ...
5
votes
1answer
171 views

Does Elisp replay on hash lookups every time code require access to symbol value?

I go across blog post: http://blog.cdleary.com/2010/09/picing-on-javascript-for-fun-and-profit/ It is about JS performance on accessing object properties and tricks that help reduce that time. Usual ...
3
votes
0answers
106 views

How can I list all function keys?

Seems that src/keyboard.c file contains C string arrays for (info "(elisp) Function Keys"). Is there a way to get that list in Elisp? I discovered that such symbols have special properties: (symbol-...
4
votes
2answers
68 views

avoid emacs to lock down or crash when used for many tasks

I consider to start using emacs for IRC, SQL, Shell and maybe twitter and Feed reading. But than I wonder how power users of emacs deal with emacs being single threaded. So if I have one long-running ...
1
vote
1answer
76 views

What is the argument count limit to a function call?

What is the argument count limit to a function call? I think that max-specpdl-size is related to answer: This variable defines the limit on the total number of local variable bindings and ‘...
4
votes
1answer
258 views

Why doesn't emacs store buffers internally as a tree (better random access, no line-number limitations)?

In section 11.18 of the GNU Emacs Manual, it's mentioned that buffers with a large number of lines line-number-display-limit or with particularly long lines line-number-display-limit-width might ...
29
votes
1answer
2k views

How do I use nadvice?

My config is full of advice, and I keep hearing about the new shiny minimalist nadvice.el package. I've searched the manuals, and I've read the source, but I'll openly admit: I still have no idea ...
6
votes
3answers
357 views

Buffer local idle-timer

I would like to use an idle timer that is local to the current buffer in one of my packages. However, I can't seem to find out how. How can I create (or fake) the behavior of a buffer local idle ...
4
votes
2answers
462 views

zs and ze from Vim?

I use evil-mode, but it doesn't support zs and ze shortcuts from Vim (scrolling horizontally to cursor position). How can i map these keys to achieve the same behavior in Emacs? Some explanation of ...
6
votes
1answer
772 views

Who is “juergen” and why can I see the value of his exec-path?

I noticed something strange when calling C-h v (describe-variable) on exec-path today: exec-path is a variable defined in `C source code'. Its value is ("/usr/bin" ...) Original ...
14
votes
1answer
997 views

Save lock-files to a directory instead of disabling them

Emacs 24 introduced the ability to disable the creation of the infamous .#file-name lock files. Evaluating the following lisp form will completely disable Emacs ability to lock files to prevent ...
5
votes
2answers
197 views

Why does GUI emacs take longer to start?

I care about the time it takes to start emacs. I bounce around a lot and edit many files. I cannot use emacsclient due to some limitations in my workflow and machine. In the terminal emacs -nw -Q M-x ...
7
votes
2answers
2k views

How do I force kill Emacs?

I often find myself with an incomplete or invalid emacs config, which breaks the normal behavior of kill-emacs such that it stops at an error. In this case, I would like to forcefully kill emacs, ...
21
votes
1answer
2k views

What piece of code in Emacs makes `line-number-mode` print “??” as line number in buffers with long lines?

I'm using line-number-mode to have an indicator of the current line in my modeline, however for large files or rather, files with long lines, it starts displaying two question marks instead of a line ...
24
votes
1answer
2k views

What algorithm does sort use?

I need to add a single integer to a list that's already sorted, such that it goes in the right place. My first tought was something like (sort (cons newelt list) #'<) However, given that list is ...
19
votes
1answer
2k views

Are there any benefits of compiling Emacs with one graphical toolkit opposed to another?

It seems the options are gtk, gtk2, gtk3, lucid or athena, motif. Of course, there are visual differences and one toolkit may be more to your tastes than others. Apart from that, are there any other ...
42
votes
1answer
3k views

How is the GNU Emacs source code organized?

How is the source code of GNU Emacs organized? What are the main modules and their functionality? Where can I find an official, up-to-date description of the architecture and its source code?