From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41508 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Re: RMail functionality I miss Date: Thu, 03 Jan 2002 12:13:31 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87heq513lx.fsf@nomad.consult-meyers.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176893 6542 80.91.224.250 (21 Oct 2002 05:08:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:08:13 +0000 (UTC) Return-Path: Original-Received: (qmail 11488 invoked from network); 3 Jan 2002 17:14:21 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 3 Jan 2002 17:14:21 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16MBR9-0008PD-00; Thu, 03 Jan 2002 11:13:51 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 03 Jan 2002 11:13:42 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id LAA01240 for ; Thu, 3 Jan 2002 11:13:30 -0600 (CST) Original-Received: (qmail 11469 invoked by alias); 3 Jan 2002 17:13:34 -0000 Original-Received: (qmail 11464 invoked from network); 3 Jan 2002 17:13:34 -0000 Original-Received: from fort-point-station.mit.edu (18.7.7.76) by gnus.org with SMTP; 3 Jan 2002 17:13:34 -0000 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id MAA14664 for ; Thu, 3 Jan 2002 12:13:33 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id MAA21624; Thu, 3 Jan 2002 12:13:33 -0500 (EST) Original-Received: from nerd-xing.mit.edu (NERD-XING.MIT.EDU [18.7.16.74]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id MAA20818; Thu, 3 Jan 2002 12:13:31 -0500 (EST) Original-To: ding@gnus.org In-Reply-To: (Lars Magne Ingebrigtsen's message of "Thu, 03 Jan 2002 06:55:40 +0100") Original-Lines: 30 User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Artificial Intelligence, sparc-sun-solaris2.8) X-Attribution: DZM Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:41508 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:41508 Lars Magne Ingebrigtsen writes: > (defun gnus-region-active-p () > "Say whether the region is active." > (and (boundp 'transient-mark-mode) > transient-mark-mode > (boundp 'mark-active) > mark-active)) > > But that's not really what we want here, is it? I want this to work > even though `transient-mark-mode' isn't in use. So I could just > make a new one that doesn't include that test. Are you sure you don't mean (defun gnus-region-active-p () "Say whether the region is active." (if (boundp 'transient-mark-mode) transient-mark-mode (if (boundp 'mark-active) mark-active nil))) instead? The function as quoted above returns t if transient-mark-mode exists at all (either t or nil), and tries to evaluate transient-mark-mode only if it's unbound. -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell