Skip to content

Fix broken `indent-for-tab-command' when point is 1 #272

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

Merged
merged 1 commit into from
Jan 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## master (unreleased)

### Bugs fixed

* Prevent error when calling `indent-for-tab-command` at the start of
the buffer at end of line.

## 4.0.1 (19/12/2014)

### Bugs fixed
Expand Down
5 changes: 3 additions & 2 deletions clojure-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,9 @@ ENDP and DELIMITER."

(defsubst clojure-in-docstring-p ()
"Check whether point is in a docstring."
(eq (get-text-property (1- (point-at-eol)) 'face)
'font-lock-doc-face))
(unless (bobp)
(eq (get-text-property (1- (point-at-eol)) 'face)
'font-lock-doc-face)))

(defsubst clojure-docstring-fill-prefix ()
"The prefix string used by `clojure-fill-paragraph'.
Expand Down