[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `insert' deactivates active region
From: |
Katsumi Yamaoka |
Subject: |
Re: `insert' deactivates active region |
Date: |
Fri, 08 Jul 2005 14:01:16 +0900 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
>>>>> In <address@hidden> Masatake YAMATO wrote:
> Yamaoka-san, could you try this code?
[...]
> (insert "foo")
> (setq deactivate-mark nil)
[...]
> or
[...]
> (let (deactivate-mark)
> (insert "foo"))
Oh, I didn't know such a special variable. That solution seems
very good! I confirmed it is effective in Emacs 20 through 23.
Thank you.
> If you think this work-around is not enough, talk to emacs-devel.
> I'll write a report my investigation about this bug.
Is it really a bug? The docstring for the deactivate-mark
variable says:
If an editing command sets this to t, deactivate the mark afterward.
The command loop sets this to nil before each command,
and tests the value when the command returns.
Buffer modification stores t in this variable.
Now I came to think it is no wonder that `insert' sets
`deactivate-mark', because `insert' really edits the buffer.
The real trouble is that we didn't know it, isn't it? ;-)
- `insert' deactivates active region, Katsumi Yamaoka, 2005/07/07
- Re: [emacs-w3m:08264] `insert' deactivates active region, Masatake YAMATO, 2005/07/07
- Re: `insert' deactivates active region, Katsumi Yamaoka, 2005/07/07
- Re: `insert' deactivates active region, Masatake YAMATO, 2005/07/07
- Re: `insert' deactivates active region,
Katsumi Yamaoka <=
- Re: `insert' deactivates active region, Stefan Monnier, 2005/07/08
- Re: `insert' deactivates active region, Richard M. Stallman, 2005/07/08
- Re: `insert' deactivates active region, Clemens Fischer, 2005/07/09
- Re: `insert' deactivates active region, Stefan Monnier, 2005/07/11
Re: `insert' deactivates active region, Richard M. Stallman, 2005/07/08
Re: `insert' deactivates active region, Stefan Monnier, 2005/07/08