Skip to content

Commit

Permalink
The help on edit mode is generated by using `substitute-command-keys'.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-edit-setup-help): generate help
message by using `substitute-command-keys'.
  • Loading branch information
cvmat committed May 3, 2010
1 parent 5f69b29 commit 2c745b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2010-05-03 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-edit-setup-help): generate help
message by using `substitute-command-keys'.

2010-05-01 Immad Naseer <immad.naseer@gmail.com>

* twittering-mode.el: New interactive functions for direct
Expand Down
13 changes: 7 additions & 6 deletions twittering-mode.el
Expand Up @@ -2062,14 +2062,15 @@ been initialized yet."
(let* ((item (if (twittering-timeline-spec-is-direct-messages-p spec)
(format "a direct message to %s" username)
"a tweet"))
(help-str (format "Keymap:
C-c C-c: send %s
C-c C-k: cancel %s
M-n : next history element
M-p : previous history element
(help-str (format (substitute-command-keys "Keymap:
\\[twittering-edit-post-status]: send %s
\\[twittering-edit-cancel-status]: cancel %s
\\[twittering-edit-next-history]: next history element
\\[twittering-edit-previous-history]: previous history element
\\[twittering-edit-replace-at-point]: shorten URL at point
---- text above this line is ignored ----
" item item))
") item item))
(help-overlay
(or twittering-help-overlay
(make-overlay 1 1 nil nil nil))))
Expand Down

0 comments on commit 2c745b9

Please sign in to comment.