Re: [PATCH 1-2/2] Emacsy buffer.scm fixes, opt argument for `switch-to-buffer'

2019-06-28 Thread Jan Nieuwenhuizen
Amar Singh writes: >>Not yet, let's see. >> >>> -(mru-recall! buffer-stack buffer) >>> +(if recall? (mru-recall! buffer-stack buffer)) >> >>(please use `when' for an if without else clause). >> >>janneke > >>I don't think that's what we want, I'm imagining this helps you to >>achie

Re: [PATCH 1-2/2] Emacsy buffer.scm fixes, opt argument for `switch-to-buffer'

2019-06-26 Thread Amar Singh
On June 26, 2019 6:05:39 PM GMT+05:30, Jan Nieuwenhuizen wrote: >Amar Singh writes: > >> Emacsy's `set-buffer!' does not seem to work > >What are you trying to achieve? Set-buffer! is used eg in with-buffer > >--8<---cut here---start->8--- >(define-syntax with

Re: [PATCH 1-2/2] Emacsy buffer.scm fixes, opt argument for `switch-to-buffer'

2019-06-26 Thread Jan Nieuwenhuizen
Amar Singh writes: > Emacsy's `set-buffer!' does not seem to work What are you trying to achieve? Set-buffer! is used eg in with-buffer --8<---cut here---start->8--- (define-syntax with-buffer (syntax-rules () ((with-buffer buffer e ...) (let ((old

[PATCH 1-2/2] Emacsy buffer.scm fixes, opt argument for `switch-to-buffer'

2019-06-25 Thread Amar Singh
Emacsy's `set-buffer!' does not seem to work, and `switch-to-buffer' does a bit more than just switch to the given buffer(it also re-orders the buffer-stack). Maybe an optional argument to `switch-to-buffer' should be provided if the user also wants to set the current buffer as most recently used