emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mail-abbrev-end-of-buffer apparently does nothing


From: Richard Stallman
Subject: Re: mail-abbrev-end-of-buffer apparently does nothing
Date: Sat, 05 May 2007 00:17:21 -0400

    It works when Emacs is run under X.  But when I run Emacs under screen
    running in gnome-terminal, it does not, and I do not know why.  In fact,
    while view-lossage shows "ESC >", (event-modifiers last-command-char)
    returns nil.

In that case, last-command-char is ?\>, and it has no modifiers.
So I need to make another change for that case.

Does this patch make it work in both cases?

*** mailabbrev.el       21 Jan 2007 01:36:15 -0500      1.82
--- mailabbrev.el       04 May 2007 22:59:43 -0400      
***************
*** 494,499 ****
--- 494,502 ----
             ;; the usual syntax table.
  
             (or (and (integerp last-command-char)
+                     ;; Do let Ctl and Meta chars expand if they try.
+                     (not (event-modifiers last-command-char))
+                     (equal this-command 'self-insert)
                      (or (eq (char-syntax last-command-char) ?_)
                          ;; Don't expand on @.
                          (memq last-command-char '(?@ ?. ?% ?! ?_ ?-))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]