From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: completion.el -- should use buffer-substring-no-properties instead of buffer-string Date: Wed, 15 Aug 2007 00:35:05 -0700 (PDT) Message-ID: <20070815073505.95E1F12A4071@localhost> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1187163317 23078 80.91.229.12 (15 Aug 2007 07:35:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2007 07:35:17 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 15 09:35:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILDPP-0000Bw-9D for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2007 09:35:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILDPO-0005gu-Pd for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2007 03:35:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILDPK-0005d7-2j for emacs-devel@gnu.org; Wed, 15 Aug 2007 03:35:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILDPI-0005c7-Pf for emacs-devel@gnu.org; Wed, 15 Aug 2007 03:35:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILDPI-0005bs-LL for emacs-devel@gnu.org; Wed, 15 Aug 2007 03:35:08 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILDPI-00047C-D3 for emacs-devel@gnu.org; Wed, 15 Aug 2007 03:35:08 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILDSj-0005DQ-TX for emacs-pretest-bug@gnu.org; Wed, 15 Aug 2007 03:38:42 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1ILDPH-00046u-7B for emacs-pretest-bug@gnu.org; Wed, 15 Aug 2007 03:35:07 -0400 Original-Received: from sccrmhc12.comcast.net ([63.240.77.82]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ILDPG-00046i-SU for emacs-pretest-bug@gnu.org; Wed, 15 Aug 2007 03:35:07 -0400 Original-Received: from localhost (c-71-202-191-236.hsd1.ca.comcast.net[71.202.191.236]) by comcast.net (sccrmhc12) with ESMTP id <2007081507350501200dqdjte>; Wed, 15 Aug 2007 07:35:06 +0000 Original-Received: by localhost (Postfix, from userid 1000) id 95E1F12A4071; Wed, 15 Aug 2007 00:35:05 -0700 (PDT) Original-From: "T. V. Raman" x-attribution: tvrReply-to: raman@users.sf.net X-Detected-Kernel: NetCache Data OnTap 5.x X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76554 gmane.emacs.pretest.bugs:19539 Archived-At: I fixed this a while ago in my local copy of Emacs and have been using it without any unforeseen consequences for a while, so I thought it was time to submit this as a patch: In completion.el, completions are stored to the completions file along with text properties --- the text properties dont achieve anything in this case. There are a total of four instances of calls to buffer-substring in completion.el -- I did a global replace to use buffer-substring-no-properties In GNU Emacs 22.1.50.19 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2007-08-14 on labrador configured using `configure '--prefix=/usr/local' '--with-toolkit=gtk'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: nil Major mode: Shell Minor modes in effect: jabber-activity-mode: t dired-omit-mode: t dynamic-completion-mode: t shell-dirtrack-mode: t savehist-mode: t display-time-mode: t desktop-save-mode: t auto-insert-mode: t encoded-kbd-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t Recent input: s e SPC d e f a u l t SPC h e a d e r SPC l i n e SPC i f SPC n o n e SPC s e t SPC t o SPC s p e a k SPC b u f f e r ESC DEL ESC DEL s h o w SPC b u f f e r SPC n a m e . " ; SPC m a k e RET C-e m C-e x v 1 RET ESC < C-n C-n C-n C-n C-n ESC > C-p C-p C-p C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-e m C-e ESC t C-e C-w C-x 1 ESC < C-e C-w C-n ESC > C-p C-p C-x 4 b c a l RET C-e ESC t C-x o ESC [ [ C ESC [ [ C ESC [ 2 3 ~ C-x o C-e x v 1 RET C-x 1 ESC < C-n C-n ESC > C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p ESC < C-e m C-e SPC ESC [ 2 3 ~ ESC [ K ESC [ 2 3 ~ c d RET c d SPC e m TAB l i TAB e m TAB RET ESC x l o a d SPC l i RET e m a c s p e a k - a d v TAB RET C-e a ESC [ K ESC [ L ESC [ L ESC [ L ESC [ L C-e x DEL ESC [ 2 3 ~ C-e m c d RET C-e m C-e m C-e m ESC x r e p o r t SPC e m TAB b TAB RET Recent messages: ~ Loading emacsbug...done Thanks, --Raman -- Best Regards, --raman Email: raman@users.sf.net WWW: http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk: tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc Google: tv+raman IRC: irc://irc.freenode.net/#emacs