[PATCH]: ':marks' implementation

Frank Fischer frank-fischer at shadow-soft.de
Mon Feb 3 08:11:06 CET 2014


Am 02.02.2014 21:48, schrieb Sanel Zukan:
> Attached is updated patch: done small formatting fixes and added
> sorting mark characters.

Thanks. I'm not sure if your implementation does the same as Vim's.
AFAIK only capital letters denote global marks and the :marks command
should only show those marks that are accessible from the current
buffer, i.e. local marks set in the current buffer and global marks.

Your implementation collects all marks from all buffers. This means if
one has a large number of open buffers then the list would be cluttered
with a lot of marks that are local to each buffer, e.g. the '^' mark.
Furthermore you do not show global marks at all.

I've adapted your patch accordingly and hope it does the right thing.
But please check again and change whatever you like ;)

You may even consider to support the (optional) ex argument (using
(interactive "<a>"), which restricts the list of marks to be shown.

Best regards,
Frank

-------------- next part --------------
A non-text attachment was scrubbed...
Name: show-marks.patch
Type: text/x-patch
Size: 2247 bytes
Desc: not available
Url : https://lists.ourproject.org/pipermail/implementations-list/attachments/20140203/36f096a6/attachment-0001.bin 


More information about the implementations-list mailing list