From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.help Subject: Re: how to not show images? Date: Fri, 20 May 2005 18:41:01 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116615352 4983 80.91.229.2 (20 May 2005 18:55:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 18:55:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 20 20:55:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZCe8-0006bU-V4 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 May 2005 20:54:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZCh2-0006bD-FI for geh-help-gnu-emacs@m.gmane.org; Fri, 20 May 2005 14:57:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DZCfy-0006RZ-Ve for help-gnu-emacs@gnu.org; Fri, 20 May 2005 14:56:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DZCfp-0006NR-Ot for help-gnu-emacs@gnu.org; Fri, 20 May 2005 14:56:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZCfp-0006Jp-J4 for help-gnu-emacs@gnu.org; Fri, 20 May 2005 14:56:41 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DZCeN-0001js-Hw for help-gnu-emacs@gnu.org; Fri, 20 May 2005 14:55:11 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DZCT1-0004zg-C2 for help-gnu-emacs@gnu.org; Fri, 20 May 2005 20:43:28 +0200 Original-Received: from 204.167.53.87 ([204.167.53.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2005 20:43:27 +0200 Original-Received: from mmaug by 204.167.53.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2005 20:43:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 33 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 204.167.53.87 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; bkbrel07)) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26865 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26865 Kevin Rodgers yahoo.com> writes: > > Drew Adams wrote: > > How about: (setq image-types nil) > > Or: > > > > (defadvice display-images-p (around disable activate) > > "Return nil." > > nil) > > > > Those don't seem to work, for me. I'm on Windows, if that makes any > > difference. > > > > Do they work for you? If so, then that answers my question about the feature > > existing, and I'll just have to figure out why they don't work for me. > > Yes. > Try: (defadvice image-type-available-p (around disable activate) "Return nil." nil) `image-type-available-p' is a much better place to do this. You could add a (buffer local) flag to the advice to make the suppression of images conditional [left as an exercise for the reader]. I tried this on a w32 CVS checkout from yesterday and it works as advertised. -- Michael