[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tab shuffling in emacs-w3m
From: Katsumi Yamaoka <yamaoka@xxxxxxx> said
Subject: [emacs-w3m:09262] Re: Tab shuffling in emacs-w3m
Message-ID: <b4mmz20dx2m.fsf@xxxxxxx>
Date: Mon, 26 Mar 2007 21:10:57 +0900
> (defun w3m-tab-move-right (&optional n)
> "Move this tab N times to the right (to the left if N is negative)."
> (interactive "p")
> (when (and w3m-use-tab (eq major-mode 'w3m-mode) (not (featurep 'xemacs)))
> (unless n (setq n 1))
> (let* ((buffers (if (> n 0)
> (w3m-list-buffers)
....
> (rename-buffer "*w3m*<0>")
> (w3m-buffer-set-number dest cur)
> (w3m-buffer-set-number (current-buffer) next))
> (w3m-pack-buffer-numbers)))
Good!! but, I have something to add;
(1) Please call w3m-select-buffer-update() after pack-numbers().
(2) I think, this feature is effective in 'NO TAB' environment;
(defun w3m-tab-move-right (&optional n)
"Move this tab N times to the right (to the left if N is negative)."
(interactive "p")
(when (eq major-mode 'w3m-mode)
...
What do you think?
--
Hideyuki SHIRAI (mailto:shirai@xxxxxxxxxxx)