unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Cannot propertize mode-name
@ 2002-11-08 12:23 Juanma Barranquero
  2002-11-08 14:08 ` Kim F. Storm
  2002-11-08 14:10 ` Glenn Morris
  0 siblings, 2 replies; 6+ messages in thread
From: Juanma Barranquero @ 2002-11-08 12:23 UTC (permalink / raw)


This:

 (setq mode-name (propertize "my-mode" 'display '(height (+ 5))))

used to make the mode-name display in a bigger size. In the trunk it
doesn't work anymore.


                                                           /L/e/k/t/u

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot propertize mode-name
  2002-11-08 12:23 Cannot propertize mode-name Juanma Barranquero
@ 2002-11-08 14:08 ` Kim F. Storm
  2002-11-08 14:10 ` Glenn Morris
  1 sibling, 0 replies; 6+ messages in thread
From: Kim F. Storm @ 2002-11-08 14:08 UTC (permalink / raw)
  Cc: emacs-devel

Juanma Barranquero <lektu@terra.es> writes:

> This:
> 
>  (setq mode-name (propertize "my-mode" 'display '(height (+ 5))))
> 
> used to make the mode-name display in a bigger size. In the trunk it
> doesn't work anymore.

Indeed.  

Also, format-mode-line doesn't return the propertized string
which indicates a generic problem with non-face properties on
strings in the mode line:

(setq mode-name (propertize "my-mode" 'display '(height (+ 5))))
#("my-mode" 0 7 (display (height (+ 5))))
(format-mode-line '((t mode-name)))
"my-mode"


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot propertize mode-name
  2002-11-08 12:23 Cannot propertize mode-name Juanma Barranquero
  2002-11-08 14:08 ` Kim F. Storm
@ 2002-11-08 14:10 ` Glenn Morris
  2002-11-08 14:28   ` Juanma Barranquero
  2002-11-10 18:06   ` Richard Stallman
  1 sibling, 2 replies; 6+ messages in thread
From: Glenn Morris @ 2002-11-08 14:10 UTC (permalink / raw)
  Cc: emacs-devel

Juanma Barranquero wrote:

>  (setq mode-name (propertize "my-mode" 'display '(height (+ 5))))
>
> used to make the mode-name display in a bigger size. In the trunk it
> doesn't work anymore.

It does if you do:

(put 'mode-name 'risky-local-variable t)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot propertize mode-name
  2002-11-08 14:10 ` Glenn Morris
@ 2002-11-08 14:28   ` Juanma Barranquero
  2002-11-10 18:06   ` Richard Stallman
  1 sibling, 0 replies; 6+ messages in thread
From: Juanma Barranquero @ 2002-11-08 14:28 UTC (permalink / raw)
  Cc: emacs-devel

On Fri, 08 Nov 2002 14:10:21 +0000, Glenn Morris <gmorris+mail@ast.cam.ac.uk> wrote:

> It does if you do:
> 
> (put 'mode-name 'risky-local-variable t)

Indeed.

Thanks for the pointer.

                                                           /L/e/k/t/u

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot propertize mode-name
  2002-11-08 14:10 ` Glenn Morris
  2002-11-08 14:28   ` Juanma Barranquero
@ 2002-11-10 18:06   ` Richard Stallman
  2002-11-11  8:10     ` Juanma Barranquero
  1 sibling, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2002-11-10 18:06 UTC (permalink / raw)
  Cc: lektu, emacs-devel

    It does if you do:

    (put 'mode-name 'risky-local-variable t)

Ah, that is the right fix.  Thanks.  Juanma, would you like
to install it?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Cannot propertize mode-name
  2002-11-10 18:06   ` Richard Stallman
@ 2002-11-11  8:10     ` Juanma Barranquero
  0 siblings, 0 replies; 6+ messages in thread
From: Juanma Barranquero @ 2002-11-11  8:10 UTC (permalink / raw)


On Sun, 10 Nov 2002 13:06:42 -0500, Richard Stallman <rms@gnu.org> wrote:

> Juanma, would you like to install it?

Done.


                                                           /L/e/k/t/u

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-11-11  8:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08 12:23 Cannot propertize mode-name Juanma Barranquero
2002-11-08 14:08 ` Kim F. Storm
2002-11-08 14:10 ` Glenn Morris
2002-11-08 14:28   ` Juanma Barranquero
2002-11-10 18:06   ` Richard Stallman
2002-11-11  8:10     ` Juanma Barranquero

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).