[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cvs] bug when using pc-selection-mode/transient-mark-mode
From: |
Miles Bader |
Subject: |
Re: [cvs] bug when using pc-selection-mode/transient-mark-mode |
Date: |
Sun, 22 Sep 2002 21:18:42 -0400 |
User-agent: |
Mutt/1.3.28i |
On Sun, Sep 22, 2002 at 06:48:20PM -0400, Stefan Monnier wrote:
> `mark-active' is buffer-local and I think `deactivate-mark' should
> be buffer-local as well. But that begs the question "when do we check
> whether deactivate-mark was set and reset mark-active accordingly" ?
> Are we going to loop through all buffers, looking for ones with
> a non-nil deactivate-mark ?
How about something like:
(1) `mark-active' gets set to a (global) integer counter value instead of t.
(2) In the current place where `deactivate-mark' is checked, it just
handles the current buffer, but also increments the global counter.
(3) `switch-to-buffer' checks to see if `mark-active' is less than the
global counter value, and if so, checks the local value of
`deactivate-mark' and perhaps sets mark-active to nil.
IOW, it lazily does the deactivation based on the local value of
deactivate-mark.
Is this too expensive a thing to take place in switch-to-buffer?
> So maybe we should not make it buffer-local but instead make it hold
> a list of buffers whose mark should be deactivated.
> Currently we only use t or nil where t means "current-buffer".
Doesn't that require all the places where deactivate-mark is set to be
changed (in a non-trivial way)? Sounds very annoying for programmers...
[and a maintainance headache]
-Miles
--
P.S. All information contained in the above letter is false,
for reasons of military security.
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, (continued)
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Karl Chen, 2002/09/17
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Richard Stallman, 2002/09/18
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Karl Chen, 2002/09/19
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Karl Chen, 2002/09/19
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Karl Chen, 2002/09/19
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Richard Stallman, 2002/09/19
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Karl Chen, 2002/09/20
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Richard Stallman, 2002/09/21
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Stefan Monnier, 2002/09/22
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Karl Chen, 2002/09/22
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode,
Miles Bader <=
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Miles Bader, 2002/09/22
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Stefan Monnier, 2002/09/23
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Kim F. Storm, 2002/09/23
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Richard Stallman, 2002/09/23
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Richard Stallman, 2002/09/23
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Kim F. Storm, 2002/09/23
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Karl Chen, 2002/09/19
- Re: [cvs] bug when using pc-selection-mode/transient-mark-mode, Richard Stallman, 2002/09/20