[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Buffer-local variables affect general-purpose functions
From: |
Stefan Monnier |
Subject: |
Re: Buffer-local variables affect general-purpose functions |
Date: |
Thu, 27 Mar 2014 17:04:45 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> Paul seemed to say something more broad: that _all_ behaviors specific
> to unibyte buffers should go away. Do you agree?
Too broad to answer. I think this needs to be decided on a case-by-case basis.
> Anyway, what should replace those hacks? Arbitrarily interpreting raw
> bytes as Latin characters is not TRT, IMO.
I think it is: char-equal compares *chars*, not *bytes*. IOW it's a bug
to pass bytes to it.
> Maybe so, but something like
> (with-buffer-defaults BODY)
> might be the solution, and should be easy enough to implement.
> Or maybe some other way of telling primitives: don't apply
> buffer-specific behavior to this code.
That might be a valid option, but in any case it's incompatible and the
incompatibility will have different consequences for different uses, so
we're back to "case-by-case basis".
Stefan
Re: Buffer-local variables affect general-purpose functions, Stefan Monnier, 2014/03/27
- Re: Buffer-local variables affect general-purpose functions, Eli Zaretskii, 2014/03/27
- Re: Buffer-local variables affect general-purpose functions,
Stefan Monnier <=
- Re: Buffer-local variables affect general-purpose functions, Eli Zaretskii, 2014/03/28
- Re: Buffer-local variables affect general-purpose functions, Paul Eggert, 2014/03/28
- Re: Unibyte characters, strings and buffers, Eli Zaretskii, 2014/03/28
- Re: Unibyte characters, strings and buffers, Paul Eggert, 2014/03/28
- Re: Unibyte characters, strings and buffers, Eli Zaretskii, 2014/03/28
- Re: Unibyte characters, strings and buffers, Paul Eggert, 2014/03/28
- Re: Unibyte characters, strings and buffers, Eli Zaretskii, 2014/03/29
- Re: Unibyte characters, strings and buffers, Paul Eggert, 2014/03/29
- Re: Unibyte characters, strings and buffers, Eli Zaretskii, 2014/03/29
Re: Unibyte characters, strings and buffers, Stefan Monnier, 2014/03/28