From: Stephen Eglen Date: Thu, 26 Sep 2002 15:52:31 +0000 (+0000) Subject: (iswitchb-completions): Test that iswitchb-common-match-string is a X-Git-Tag: ttn-vms-21-2-B4~13054 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4e141ed744f843814cf1bcc0d0fe5a5f674419f6;p=emacs.git (iswitchb-completions): Test that iswitchb-common-match-string is a string, before printing common completions. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2aa6353cf02..82937573af9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2002-09-26 Stephen Eglen + + * iswitchb.el (iswitchb-completions): Test that + iswitchb-common-match-string is a string, before printing common + completions. + 2002-09-24 Simon Josefsson * mail/mail-extr.el (mail-extr-ignore-single-names): Change default. diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 0b283d0ae77..d24f737851b 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el @@ -1260,7 +1260,8 @@ Modified from `icomplete-completions'." ;; put in common completion item -- what you get by ;; pressing tab - (if (> (length iswitchb-common-match-string) (length name)) + (if (and (stringp iswitchb-common-match-string) + (> (length iswitchb-common-match-string) (length name))) (concat open-bracket-determined (substring iswitchb-common-match-string (length name))