Hi,

On Tue, Feb 13, 2018 at 6:35 AM, lacygoill <vim-dev-git...@256bit.org> wrote:
> vim --version: VIM - Vi IMproved 8.0 Included patches: 1-1515
> Operating system: Ubuntu 16.04.3 LTS
> Terminal emulator: rxvt-unicode v9.22
> Terminal multiplexer: tmux 2.6
> $TERM: tmux-256color
> Shell: zsh 5.3.1
>
> Hello,
>
> from :h getchangelist():
>
> Returns the |changelist| for the buffer {expr}. For the use
> of {expr}, see |bufname()| above.
>

The help text is wrong. It should say see |bufexists()| above.
The use of {expr} for getchangelist() is similar to the
bufexists(), buflisted() and bufloaded() functions. I can change
it to be like bfuname().

- Yegappan

>
> Then, from :h bufname():
>
> "" or "%" can be used for the current buffer, "#" for the
> alternate buffer.
>
> So, I expected the following command to return the changelist for the
> current buffer:
>
> :echo getchangelist('%')
>
> But instead, it returns an empty list.
>
> OTOH, getjumplist() seems to correctly understand '%':
>
> :echo getjumplist('%')
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui