Gnus development mailing list
 help / color / mirror / Atom feed
* Read-only message separator
@ 2011-02-04 19:41 Michael Piotrowski
  2011-02-04 21:31 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Piotrowski @ 2011-02-04 19:41 UTC (permalink / raw)
  To: ding

Hi,

The change in `message-setup-1' to insert the mail-header-separator with
read-only and intangible properties set (commit
bd10f37e4630719920f82122d7c7ae7523567762) doesn't work for me (on XEmacs
21.4.22).  When trying to compose a message, I get

#v+
Debugger entered--Lisp error: (buffer-read-only #<buffer "*unsent mail*">)
  insert("")
  (progn (insert message-default-mail-headers) (or (bolp) (insert ?\n)))
  (if message-default-mail-headers (progn (insert message-default-mail-headers) (or ... ...)))
  (when message-default-mail-headers (insert message-default-mail-headers) (or (bolp) (insert ?\n)))
  (progn (when message-default-mail-headers (insert message-default-mail-headers) (or ... ...)) (message-generate-headers (message-headers-to-generate ... message-generate-headers-first ...)))
  (if (message-mail-p) (progn (when message-default-mail-headers ... ...) (message-generate-headers ...)))
  (when (message-mail-p) (when message-default-mail-headers (insert message-default-mail-headers) (or ... ...)) (message-generate-headers (message-headers-to-generate ... message-generate-headers-first ...)))
  (let ((message-generate-headers-first ...)) (when (message-news-p) (when message-default-news-headers ... ...) (message-generate-headers ...)) (when (message-mail-p) (when message-default-mail-headers ... ...) (message-generate-headers ...)))
  message-setup-1(((To . "") (Subject . "")) nil nil nil)
  message-setup(((To . "") (Subject . "")) nil nil nil nil nil)
  message-mail()
  gnus-group-mail(nil)
  call-interactively(gnus-group-mail)
#v-

It works if I change

  'read-only t

to

  'read-only nil

in the call to `propertize' in `message-setup-1'.

An XEmacs issue?

Thanks and greetings

-- 
Dr.-Ing. Michael Piotrowski, M.A.                   <mxp@dynalabs.de>
Public key at <http://www.dynalabs.de/mxp/pubkey.txt> (ID 0x1614A044)




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

* Re: Read-only message separator
  2011-02-04 19:41 Read-only message separator Michael Piotrowski
@ 2011-02-04 21:31 ` Lars Ingebrigtsen
  2011-02-04 21:36   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-04 21:31 UTC (permalink / raw)
  To: ding

Michael Piotrowski <mxp@dynalabs.de> writes:

> It works if I change
>
>   'read-only t
>
> to
>
>   'read-only nil
>
> in the call to `propertize' in `message-setup-1'.
>
> An XEmacs issue?

So you can't insert read-only strings into buffers in XEmacs?  That
sounds...  annoying...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Read-only message separator
  2011-02-04 21:31 ` Lars Ingebrigtsen
@ 2011-02-04 21:36   ` Lars Ingebrigtsen
  2011-02-04 21:47     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-04 21:36 UTC (permalink / raw)
  To: ding

Lars Ingebrigtsen <larsi@gnus.org> writes:

> So you can't insert read-only strings into buffers in XEmacs?  That
> sounds...  annoying...

If I eval:

(insert (propertize (concat mail-header-separator "\n")
		    'read-only t 'rear-nonsticky t 'intangible t))

in XEmacs, it works as you'd expect.  It inserts a read-only string.  So
I don't seem to be able to reproduce this bug.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Read-only message separator
  2011-02-04 21:36   ` Lars Ingebrigtsen
@ 2011-02-04 21:47     ` Lars Ingebrigtsen
  2011-02-05  9:42       ` Michael Piotrowski
  0 siblings, 1 reply; 10+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-04 21:47 UTC (permalink / raw)
  To: ding

Lars Ingebrigtsen <larsi@gnus.org> writes:

> in XEmacs, it works as you'd expect.  It inserts a read-only string.  So
> I don't seem to be able to reproduce this bug.

Actually, when using XEmacs on this function, it breaks badly, and I
have no idea why.  I've reverted the change for the moment, but we
should investigate why it fails and reinstate the read-onlyness.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Read-only message separator
  2011-02-04 21:47     ` Lars Ingebrigtsen
@ 2011-02-05  9:42       ` Michael Piotrowski
  2011-02-07 18:19         ` Ted Zlatanov
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Piotrowski @ 2011-02-05  9:42 UTC (permalink / raw)
  To: ding

On 2011-02-04, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> in XEmacs, it works as you'd expect.  It inserts a read-only string.  So
>> I don't seem to be able to reproduce this bug.
>
> Actually, when using XEmacs on this function, it breaks badly, and I
> have no idea why.

Right, as such inserting the separator works, but apparently there is
some interaction in `message-setup-1'.

> I've reverted the change for the moment, but we should investigate why
> it fails and reinstate the read-onlyness.

Thanks.  It's very annoying if you can't even write messages ...

Best regards

-- 
Dr.-Ing. Michael Piotrowski, M.A.                   <mxp@dynalabs.de>
Public key at <http://www.dynalabs.de/mxp/pubkey.txt> (ID 0x1614A044)




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

* Re: Read-only message separator
  2011-02-05  9:42       ` Michael Piotrowski
@ 2011-02-07 18:19         ` Ted Zlatanov
  2011-02-14  3:20           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: Ted Zlatanov @ 2011-02-07 18:19 UTC (permalink / raw)
  To: ding

On Sat, 05 Feb 2011 10:42:06 +0100 Michael Piotrowski <mxp@dynalabs.de> wrote: 

MP> On 2011-02-04, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>> Lars Ingebrigtsen <larsi@gnus.org> writes:
>> 
>>> in XEmacs, it works as you'd expect.  It inserts a read-only string.  So
>>> I don't seem to be able to reproduce this bug.
>> 
>> Actually, when using XEmacs on this function, it breaks badly, and I
>> have no idea why.

MP> Right, as such inserting the separator works, but apparently there is
MP> some interaction in `message-setup-1'.

>> I've reverted the change for the moment, but we should investigate why
>> it fails and reinstate the read-onlyness.

MP> Thanks.  It's very annoying if you can't even write messages ...

Can it be conditionally enabled just for non-XEmacs users while the
investigation proceeds?

Ted




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

* Re: Read-only message separator
  2011-02-07 18:19         ` Ted Zlatanov
@ 2011-02-14  3:20           ` Lars Ingebrigtsen
  2011-02-14 15:04             ` Ted Zlatanov
  2011-02-20 17:14             ` Julien Danjou
  0 siblings, 2 replies; 10+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-14  3:20 UTC (permalink / raw)
  To: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

> Can it be conditionally enabled just for non-XEmacs users while the
> investigation proceeds?

We could, but I think it would be better to just find out why it fails
on XEmacs and just fix it.  :-)

Any takers?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: Read-only message separator
  2011-02-14  3:20           ` Lars Ingebrigtsen
@ 2011-02-14 15:04             ` Ted Zlatanov
  2011-02-20 17:14             ` Julien Danjou
  1 sibling, 0 replies; 10+ messages in thread
From: Ted Zlatanov @ 2011-02-14 15:04 UTC (permalink / raw)
  To: ding

On Sun, 13 Feb 2011 19:20:05 -0800 Lars Ingebrigtsen <larsi@gnus.org> wrote: 

LI> Ted Zlatanov <tzz@lifelogs.com> writes:
>> Can it be conditionally enabled just for non-XEmacs users while the
>> investigation proceeds?

LI> We could, but I think it would be better to just find out why it fails
LI> on XEmacs and just fix it.  :-)

LI> Any takers?

I'm not touching XEmacs after it rewrote my custom.el file without
asking this weekend.

Ted




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

* Re: Read-only message separator
  2011-02-14  3:20           ` Lars Ingebrigtsen
  2011-02-14 15:04             ` Ted Zlatanov
@ 2011-02-20 17:14             ` Julien Danjou
  2011-02-21 23:20               ` Lars Ingebrigtsen
  1 sibling, 1 reply; 10+ messages in thread
From: Julien Danjou @ 2011-02-20 17:14 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

On Mon, Feb 14 2011, Lars Ingebrigtsen wrote:

> Any takers?

It seems not. Maybe letting this broken will motivate someone to either
fix it/XEmacs (don't know which one fault it is), or switch to GNU
Emacs? ;-)

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

* Re: Read-only message separator
  2011-02-20 17:14             ` Julien Danjou
@ 2011-02-21 23:20               ` Lars Ingebrigtsen
  0 siblings, 0 replies; 10+ messages in thread
From: Lars Ingebrigtsen @ 2011-02-21 23:20 UTC (permalink / raw)
  To: ding

Julien Danjou <julien@danjou.info> writes:

> It seems not. Maybe letting this broken will motivate someone to either
> fix it/XEmacs (don't know which one fault it is), or switch to GNU
> Emacs? ;-)

:-)

It's not very neighbourly...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2011-02-21 23:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-04 19:41 Read-only message separator Michael Piotrowski
2011-02-04 21:31 ` Lars Ingebrigtsen
2011-02-04 21:36   ` Lars Ingebrigtsen
2011-02-04 21:47     ` Lars Ingebrigtsen
2011-02-05  9:42       ` Michael Piotrowski
2011-02-07 18:19         ` Ted Zlatanov
2011-02-14  3:20           ` Lars Ingebrigtsen
2011-02-14 15:04             ` Ted Zlatanov
2011-02-20 17:14             ` Julien Danjou
2011-02-21 23:20               ` Lars Ingebrigtsen

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 NNTP newsgroup(s).