0

When performing an operation which often takes a few seconds, how can the hourglass mouse pointer be shown immediately using Lisp?

Otherwise, the default behavior is to show the hourglass after some delay (a second by default).

Drew
  • 75,699
  • 9
  • 109
  • 225
ideasman42
  • 8,375
  • 1
  • 28
  • 105
  • What is "a waiting mouse-cursor"? And, is a "waiting mouse-cursor" something that Emacs controls, or is this OS dependent; and, if OS dependent, what OS does this question pertain to? – lawlist Jan 03 '20 at 01:51
  • When performing some operations emacs sets the busy cursor. Just checked the C source code, this looks to be implemented via `start_hourglass`, `cancel_hourglass`. – ideasman42 Jan 03 '20 at 02:13
  • Thanks. Then, how about customizing the value of the variable `hourglass-delay`, which has a default value of 1 second; e.g., change it to something like 0 instead?: "*Documentation: Seconds to wait before displaying an hourglass pointer when Emacs is busy.*" – lawlist Jan 03 '20 at 03:25
  • Setting to zero disables the hourglass entirely, setting to a small float value makes it show quicker, but not immediately. – ideasman42 Jan 03 '20 at 04:07

0 Answers0