1. Frank Fischer
  2. evil
  3. Issues
Issue #208 resolved

HTML mode sgml-skip-tag-forward in visual line mode

Anonymous created an issue

sgml-mode.el (the default html mode) defines a function called sgml-skip-tag-forward. This function does not behave properly when using visual line selection mode, the cursor remains in place instead of the expected behaviour of skipping to the closing tag of the tag at point. sgml-skip-tag-forward works as expected in visual selection mode and visual block selection mode.

This behaviour can be reproduced with the following version of emacs:

GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-08-29

Starting emacs with:

emacs -Q

And run:

(add-to-list 'load-path "/path/to/evil")
(require 'evil)
(evil-mode 1)

Steps to reproduce:

  1. Open an html file and move point to an opening tag.

  2. Press C-c C-f to run sgml-skip-tag-forward to observe normal behaviour (C-c C-b to return to opening tag).

  3. Press V to enter visual line selection mode, and then C-c C-f to observe incorrect behaviour.

Comments (4)

  1. Log in to comment