help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Why can't I (message (propertize "hello" ...)) ?


From: John Paul Wallington
Subject: Re: Why can't I (message (propertize "hello" ...)) ?
Date: Wed, 18 Dec 2002 22:34:18 +0000
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (powerpc-apple-darwin5.5)

Tom wrote:

>  FYI, the code I'm trying is:
>  
>  (defun x () "" (interactive)
>  (message (propertize "hello" 'face 'blue)))
>  
>  .. which displays the message hello, but without any properties.

Is there a `blue' face?  You can do M-x list-faces-display to see
which faces are defined.

-- 
John Paul Wallington
>From help-gnu-emacs-bounces@gnu.org  Wed Dec 18 17:40:09 2002
Sender: fstx@Tempo.Update.UU.SE
Newsgroups: comp.emacs,gnu.emacs.help
References: <3dff7248.1320484@news.cis.dfn.de>
        <Pine.SOL.4.44.0212181702450.10411-100000@rygar.gpcc.itd.umich.edu>
From: Fredrik Staxeng <fstx+u@update.uu.se>
Date: 18 Dec 2002 23:38:42 +0100
Message-ID: <1misxrq7f1.fsf@Tempo.Update.UU.SE>
Lines: 30
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: news.update.uu.se
X-Trace: puffinus.its.uu.se 1040250163 news.update.uu.se (18 Dec 2002 23:22:43
        +0100)
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!demon!newshub1.home.nl!home.nl!sunsite.dk!news.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!puffinus.its.uu.se
Xref: shelby.stanford.edu comp.emacs:76522 gnu.emacs.help:108272
To: help-gnu-emacs@gnu.org
Subject: Re: Windows steals my 'Alt-' (was Re: M-TAB already used by KDE)
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 18 Dec 2002 22:40:09 -0000

Jonathon Isaac Swiderski <jonswid@umich.edu> writes:

>I have a similar issue --- I'm using Emacs in Windows XP via Exceed (that
>is, Emacs is running on my login server; i'm using an XP terminal with
>Exceed generating an X session), and Windows keeps grabbing the 'Alt' key
>for the menubar, so i can't use it for a Meta.

Emacs uses an X window displayed by Exceed, right?

>How do I either:
>  a)  Tell Emacs to interpret 'CapsLock' or something else as 'M-'?
>      That is, I'd like to use something else as the modifier--- part of
>      my problem here is that I don't know what codes Alt, [Win],
>      CapsLock, etcetera, generate; but I also am not clear on how I'd use
>      them once I had them.

If Exceed lets Windows interpret Alt, chances are good that it lets Windows
interpret Caps Lock as well. But you could try with xkeycaps or xev to see
if it sends key events for Caps Lock to an X program. Then you could
assign the keysym Meta to it.

>  b)  Tell Windows not to use Alt key for menu activation? (less
>      preferred; I can't take my windows settings with me between
>      sessions--- long story)

This has to be a setting in Exceed, not in Windows itself. 


-- 
Fredrik Stax\"ang | rot13: sfgk@hcqngr.hh.fr
>From help-gnu-emacs-bounces@gnu.org  Wed Dec 18 17:55:09 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail
Newsgroups: gnu.emacs.help
References: <9c13f318.0212181346.57d66546@posting.google.com>
From: Jesper Harder <harder@myrealbox.com>
X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r;
        <N5ksn~%wJ@2pjF}="tV;FBsdpFarSWA<oYkZsViGf:F^SD-KXhvFxh;~]?)SWm~+u};
        0=x}<vOm&5J+?]yB2d]q4x8\0g7SX
Organization: http://purl.org/harder/
Mail-Copies-To: never
Date: Wed, 18 Dec 2002 23:49:41 +0100
Message-ID: <m3r8cf9c3e.fsf@defun.localdomain>
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50
 (i686-pc-linux-gnu)
Cancel-Lock: sha1:mkSlmW3n/UcvHh+anWE/Kbd+pK4=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 15
NNTP-Posting-Host: 195.249.130.34
X-Trace: 1040251858 dtext01.news.tele.dk 47422 195.249.130.34
X-Complaints-To: abuse@post.tele.dk
Xref: shelby.stanford.edu gnu.emacs.help:108273
To: help-gnu-emacs@gnu.org
Subject: Re: Why can't I (message (propertize "hello" ...)) ?
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 18 Dec 2002 22:55:09 -0000

functorx@yahoo.com (Tom) writes:

> FYI, the code I'm trying is:
>
> (defun x () "" (interactive)
> (message (propertize "hello" 'face 'blue)))
>
> .. which displays the message hello, but without any properties.  I've
> also tried imperatively updating the string with add-text-properties,
> which also doesn't work.

Note that there's no predefined face with the name `blue'.  What you
want is something like this:

(message (propertize "hello" 'face '(foreground-color . "blue")))
>From help-gnu-emacs-bounces@gnu.org  Wed Dec 18 18:30:09 2002
Path: 
shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail
From: Da Witch <heather710101@yahoo.com>
Newsgroups: gnu.emacs.help
Date: Wed, 18 Dec 2002 23:26:37 +0000 (UTC)
Organization: Zero
Lines: 13
Message-ID: <atr07d$d72$1@reader1.panix.com>
NNTP-Posting-Host: panix3.panix.com
X-Trace: reader1.panix.com 1040253997 13538 166.84.1.3 (18 Dec 2002 23:26:37
        GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 18 Dec 2002 23:26:37 +0000 (UTC)
X-No-Confirm: yes
User-Agent: nn/6.6.4
Xref: shelby.stanford.edu gnu.emacs.help:108274
To: help-gnu-emacs@gnu.org
Subject: Emacs pager?
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-gnu-emacs>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-gnu-emacs>,
        <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 18 Dec 2002 23:30:09 -0000



Many of the commands to move around a buffer viewed with less are the 
same as vi commands.  It would be nice to have a less-like pager that
felt like Emacs.  Is there such a thing?

(Of course, one *could* just use Emacs as a pager, but Emacs takes too
long to load up to be convenient.)

Thanks!

        -H


reply via email to

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