1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00

* lisp/emacs-lisp/smie.el (smie-indent--hanging-p): Don't bother matching

comment-start-skip, since it fails when that uses submatch 1.

Fixes: debbugs:16041
This commit is contained in:
Stefan Monnier 2013-12-11 10:59:27 -05:00
parent 5a80236fc8
commit 7ae3ae3963
3 changed files with 11 additions and 1 deletions

View file

@ -247,6 +247,13 @@ You can pick the name of the function and the variables with `C-x 4 a'.
* Changes in Specialized Modes and Packages in Emacs 24.4
** CUA-mode
CUA-mode was changed to make use of delete-selection-mode and
shift-select-mode. So you can now enable it independently from
transient-mark-mode, delete-selection-mode, and shift-select-mode.
As a result, cua-highlight-region-shift-only is obsolete
(you can disable transient-mark-mode to get the same result).
** `delete-selection-mode' can be used without transient-mark-mode.
** prolog-use-smie has been removed, along with the non-SMIE indentation code.

View file

@ -1,5 +1,8 @@
2013-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/smie.el (smie-indent--hanging-p): Don't bother matching
comment-start-skip, since it fails when that uses submatch 1 (bug#16041).
* emulation/cua-base.el (cua-paste): Add `delete-selection' property
instead of deleting the selection "by hand" (bug#16098).
Rely on insert-for-yank to yank rectangles.

View file

@ -1165,7 +1165,7 @@ the beginning of a line."
(forward-char 1))
(skip-chars-forward " \t")
(or (eolp)
(and (looking-at comment-start-skip)
(and ;; (looking-at comment-start-skip) ;(bug#16041).
(forward-comment (point-max))))
(point))))))