Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support wrap backwards from end of buffer #380

Merged
merged 1 commit into from
Oct 21, 2022
Merged

Conversation

qingshuizheng
Copy link
Contributor

Original func fails to wrap backwards from the end of buffer
while n is negative.

Paving infrastructure for the implementation of following commands:

(defun telega-root-prev-unread ()
    "Move point to the previous chat with unread message."
    (interactive)
    (telega-root-next-unread -1))

(defun telega-root-prev-important()
    "Move point to the previous important chat."
    (interactive)
    (telega-root-next-important -1))

(defun telega-root-prev-mention()
    "Move point to the previous chat with mention."
    (interactive)
    (telega-root-next-mention -1))

(defun telega-root-prev-reaction ()
    "Move point to the previous chat with unread reaction."
    (interactive)
    (telega-root-next-reaction -1))

Paving infrastructure for the implementation of following commands:

(defun telega-root-prev-unread ()
    "Move point to the previous chat with unread message."
    (interactive)
    (telega-root-next-unread -1))

(defun telega-root-prev-important()
    "Move point to the previous important chat."
    (interactive)
    (telega-root-next-important -1))

(defun telega-root-prev-mention()
    "Move point to the previous chat with mention."
    (interactive)
    (telega-root-next-mention -1))

(defun telega-root-prev-reaction ()
    "Move point to the previous chat with unread reaction."
    (interactive)
    (telega-root-next-reaction -1))
@zevlg zevlg merged commit af40bf3 into zevlg:master Oct 21, 2022
@zevlg
Copy link
Owner

zevlg commented Oct 21, 2022

Merged in, thanks for the contribution!

@qingshuizheng qingshuizheng deleted the patch-1 branch October 21, 2022 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants