:e# works at first, but not after using :ls

Frank Fischer frank-fischer at shadow-soft.de
Wed Feb 12 20:55:18 CET 2014


Am 12.02.2014 16:58, schrieb gregrwm:
> i have emacs 24.3.1 and evil-20131220.342.
> 
> :e# works at first, but, after using :ls, :e# no longer works.
> 

Actually, :e# does not work after any command that opens a (temporary)
buffer (as :ls does). The reason is that the buffer # refers to is the
buffer returned by `other-buffer`. Maybe another rule would be more
appropriate, e.g. the most recent buffer that has an associated file?
The attached patch implements this behaviour. Please check if this comes
closer to the desired behaviour (it will never be the same as in Vim
because Emacs and Vim buffer handling have some fundamental differences).

Best regards,
Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: edit-sharp.patch
Type: text/x-patch
Size: 1085 bytes
Desc: not available
Url : https://lists.ourproject.org/pipermail/implementations-list/attachments/20140212/89e4d588/attachment.bin 


More information about the implementations-list mailing list