[OS X Emacs] sometimes i can't type

Win Treese treese at acm.org
Tue Feb 21 14:58:53 EST 2023


The Emacs Lisp time representation is a little confusing. The best
explanation is the docstring for current-time:

"Return the current time, as the number of seconds since 1970-01-01 00:00:00.
The time is returned as a list of integers (HIGH LOW USEC PSEC).
HIGH has the most significant bits of the seconds, while LOW has the
least significant 16 bits.  USEC and PSEC are the microsecond and
picosecond counts.”

In the timer-list variable, each item is a defstruct. The time of next
activation is given by the three numbers after the initial nil, as

- high-order bits of seconds since the epoch
- low 16 bits of the seconds 
- microseconds

It doesn’t include the picoseconds.

You’d have to calculate when the timer is going to go off, maybe
using format-time-string if you wanted it in human-readable time.

All that being said, nothing here seems unusual.

When it freezes, you might type something like xxx to see if that
ends up being processed as input after a delay.

- Win

> On Feb 21, 2023, at 1:59 PM, Tom Van Vleck <thvv at multicians.org> wrote:
> 
> I think it is after I have paused slightly.. about how long are
> these idle times? I looked at timer-list and have a question:
> Documentation says they are in order of increasing time..
> 
> timer-list is a variable defined in ‘C source code’.
> Its value is
> ([nil 25589 4345 392338 nil undo-auto--boundary-timer nil nil 0]
> [nil 25589 4535 351824 300 savehist-autosave nil nil 24603]
> [nil 25592 64633 372793 259200 purge-session-and-auto-save-files nil nil 0])
> which element is the time?  I looked again and saw
> 
> timer-list is a variable defined in ‘keyboard.c’.
> Its value is
> ([nil 25589 4654 438418 nil undo-auto--boundary-timer nil nil 0]
> [nil 25589 4835 351824 300 savehist-autosave nil nil 24603]
> [nil 25592 64633 372793 259200 purge-session-and-auto-save-files nil nil 0])
> so i guess the time is the second or third element, because they increase.
> 
>> On Feb 21, 2023, at 1:19 PM, Win Treese <treese at acm.org> wrote:
>> 
>> Hi, Tom. Does this happen when you are busy typing, hit delete,
>> and things freeze? Or when you have paused for a little bit, maybe
>> looking at what you typed, then hit delete?
>> 
>> One reason for the difference between those is what might be
>> run as from an idle timer, if in fact Aquamacs is going idle.
>> 
>> You can see the list of idle timers by looking at the variable timer-list
>> (say, with M-x describe-variable or inside IELM).
>> 
>> - Win
>> 
>> 
>> 
>>> On Feb 20, 2023, at 4:29 PM, Tom Van Vleck <thvv at multicians.org> wrote:
>>> 
>>> At least once a day, I will be editing away in Aquamacs,
>>> and go to use the delete key, and nothing will happen.
>>> When it gets into this state, left-arrow doesn't seem to
>>> work either.  I bash at the keyboard a little and it gets
>>> unstuck. I think when it is stuck, delete left-arrow won't 
>>> work either. Might be that right-arrow unsticks it.
>>> 
>>> This is Aquamacs 3.6, build 20G165. 
>>> I have observed this on a 10-year-old MacBook Pro
>>> running Big Sur, and an m2 Air on Ventura.
>>> 
>>> I have looked in the *messages buffer after this happens
>>> and the last thing in the last 2 occurrences was "Mark set"
>>> but that could be a coincidence.
>>> 
>>> Anybody else see this ever?
>>> 
>>> 
>>> _____________________________________________________________
>>> MacOSX-Emacs mailing list
>>> MacOSX-Emacs at email.esm.psu.edu
>>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>> 
>> 
>> _____________________________________________________________
>> MacOSX-Emacs mailing list
>> MacOSX-Emacs at email.esm.psu.edu
>> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
>> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
> 
> 
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> https://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx



More information about the MacOSX-Emacs mailing list