Questions tagged [redisplay]

13 questions
11
votes
3 answers

How to avoid scrolling with large files hanging for short periods of time? (holding page keys for example)

Even using default settings (emacs -Q) I've found large C files can be slow to scroll with Emacs. If for example, I open a large file and hold Page-Down. It will scroll down 1-2 pages, then hang for a second or two, on releasing the document is…
ideasman42
  • 8,375
  • 1
  • 28
  • 105
8
votes
3 answers

How do I debug an "Invalid face reference: quote" message?

After using Emacs for some time, the message Invalid face reference: quote starts popping up in my message buffer. I'm not sure what causes it to start appearing. debug-on-message doesn't do anything (this is an error in the redisplay…
Clément
  • 3,924
  • 1
  • 22
  • 37
4
votes
2 answers

Displaying buffer modification before end of function

I notice that Emacs waits for the end of a function to actually display the buffer modifications the function has produced. For instance, if a function looks like this: (defun foo () (interactive) (insert "Hello world!") …
Joon Kwon
  • 363
  • 1
  • 6
4
votes
1 answer

How to update window-start without calling redisplay?

While debugging swiper I've encountered a situation when the point is changed inside with-selected-window, but window-start isn't updated. This can be annoying, because I need the up-to-date window bounds to update the overlays. From the doc, I've…
abo-abo
  • 13,943
  • 1
  • 29
  • 43
3
votes
1 answer

force-window-update vs redisplay

During idle time with run-with-idle-timer I parse text around a point and update header-line-format. Unfortunately I can't see update to header line unless I type any key. So I should trigger redisplay. With (redisplay) header line isn't updated.…
gavenkoa
  • 3,352
  • 19
  • 36
3
votes
1 answer

trace-redisplay: How to see stderr from within Emacs?

When building Emacs, I use ./configure --enable-checking='glyphs' so that I can take advantage of some of the built-in tools such as M-x trace-redisplay. The redisplay debugging messages can be seen if the GUI version of Emacs was launched from the…
lawlist
  • 18,826
  • 5
  • 37
  • 118
3
votes
1 answer

How to force redisplay after you change truncate-lines?

The boolean variable truncate-lines controls whether continuation lines are displayed or not. I use this when I am checking some log file where the very long lines are truncated thanks to a previous (setq truncate-lines t). This is convenient since…
phs
  • 1,095
  • 6
  • 13
2
votes
2 answers

Any way to disable tab usage in display algorithm?

When emacs displays buffer text to the terminal, along with whatever ANSI (or other termcap/terminfo) sequences it uses, it will occasionally use ordinary ASCII TAB characters to move the cursor. Since this is an output operation, its choice to use…
Steve Summit
  • 133
  • 4
2
votes
1 answer

Fastest way to draw pixels in Emacs

I'm currently working on a CHIP-8 emulator. This platform requires me to draw 64x32 black/white pixels, ideally at a speed between 30 and 60 frames per second. There's an extension to it that increases the possible resolution to 128x64 black/white…
wasamasa
  • 21,803
  • 1
  • 65
  • 97
2
votes
1 answer

Inhibit redraw during keyboard macros?

In the good old days, repeated emacs keyboard macros ran without repainting the display until the end. Over the years this changed, and now it appears that the display is redrawn 100% of the time -- which is a bit tedious when I try to run a macro a…
Greg Lindahl
  • 121
  • 4
1
vote
2 answers

how to speed up org-babel-tangle?

I have an org file of 470 lines, 20 headings and 15 noweb references. From it I tangle 2 files that are 250 lines and differ very little. Tangling takes over a minute and a lot of painful redisplay: the modeline shows clauses being tangled the…
1
vote
0 answers

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 to know what exactly function is causing this). At…
fghj
  • 193
  • 7
0
votes
0 answers

Weird cursor position of emacs 26.1 on macOS 10.12.6

I am new to emacs and I met a weird emacs problem, which I don't even know is a feature or what :) Behavior: The emacs is in the text-mode and turned off all the plugins, and I want to type ["ls"], but when I finish typing ] and wait for around 1…
Jiahao Cai
  • 101
  • 2