tramp-devel
[Top][All Lists]
Advanced

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

Re: Strange error when doing M-g on a group in Gnus


From: Michael Albinus
Subject: Re: Strange error when doing M-g on a group in Gnus
Date: 06 Sep 2002 17:05:02 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

address@hidden (Kai =?iso-8859-15?q?Gro=DFjohann?=) writes:

> What does Gnus have to do with Tramp?  Yes, I also ask myself.  Yet,
> witness the following backtrace:
> 
> Michael?

Hmm, it's my code, indeed. Expanding "/home-local" there's a check
whether there's something to do with file name completion (because it
matches the regexp in file-name-handler-alist). For this I check,
beside other indications, `last-input-char'. Looks like M-g is
expanded to -134217625 ... strange.

> Debugger entered--Lisp error: (args-out-of-range #^[t 
> ...lots.of.numbers.and.nil.snipped...
>   char-equal(-134217625 63)
>   (or (char-equal last-input-char 63) (or (char-equal last-input-char 9) 
> (char-equal last-input-char 32)))

Just checked with Emacs 20.7 and 21.2, no problem with M-g. Is there a
change on input events with Emacs 21.3 (you're using)?

Does it help to change the function like this:

(defun tramp-completion-mode (file)
  "Checks whether method / user name / host name completion is active."
  (cond
   ((featurep 'xemacs) t)
   ((string-match "^/.*:.*:$" file) nil)
   ((string-match
     (concat
      tramp-prefix-regexp
      tramp-method-regexp tramp-postfix-single-method-regexp "$")
     file)
    (member (match-string 1 file)
            (cons tramp-ftp-method (mapcar 'car tramp-methods))))
   ((or (equal last-input-event 'tab)
        (and (not (event-modifiers last-input-event))
             (integerp last-input-event)
             (or (char-equal last-input-event ?\?)
                 (char-equal last-input-event ?\t) ; handled by 'tab already?
                 (char-equal last-input-event ?\ ))))
    t)))

> kai

Best regards, Michael.





reply via email to

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