[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 07/14: Use posn-actual-col-row to calculate the row
From: |
Dmitry Gutov |
Subject: |
[elpa] 07/14: Use posn-actual-col-row to calculate the row |
Date: |
Sat, 13 Sep 2014 12:19:01 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit 02940bc930687c8b0705148b3058ba0c46aa68dc
Author: Dmitry Gutov <address@hidden>
Date: Tue Sep 9 04:01:42 2014 +0400
Use posn-actual-col-row to calculate the row
Approximation by `posn-col-row' is not good enough, particularly in the
Log-Edit
buffer.
---
company.el | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/company.el b/company.el
index 17c8815..f9f4b74 100644
--- a/company.el
+++ b/company.el
@@ -775,13 +775,12 @@ means that `company-mode' is always turned on except in
`message-mode' buffers."
(defun company-input-noop ()
(push 31415926 unread-command-events))
-(defun company--posn-col-row (pos)
- (let* ((col-row (posn-col-row pos))
- (col (car col-row))
- (row (cdr col-row)))
- (when (and header-line-format (version< emacs-version "24.3.93.2"))
+(defun company--posn-col-row (posn)
+ (let ((col (car (posn-col-row posn)))
+ (row (cdr (posn-actual-col-row posn))))
+ (when (and header-line-format (version< emacs-version "24.3.93.3"))
;; http://debbugs.gnu.org/18384
- (cl-incf row))
+ (cl-decf row))
(cons (+ col (window-hscroll)) row)))
(defun company--col-row (&optional pos)
- [elpa] branch master updated (2ee393e -> 3c14efe), Dmitry Gutov, 2014/09/13
- [elpa] 04/14: Add test for the previous commit, Dmitry Gutov, 2014/09/13
- [elpa] 07/14: Use posn-actual-col-row to calculate the row,
Dmitry Gutov <=
- [elpa] 08/14: company-complete-number: Make interactive, read the pressed digit, Dmitry Gutov, 2014/09/13
- [elpa] 09/14: company-gtags-modes: Turn into defcustom, Dmitry Gutov, 2014/09/13
- [elpa] 10/14: company-with-candidate-inserted: restore buffer modification status, Dmitry Gutov, 2014/09/13
- [elpa] 06/14: Don't use end-of-buffer-workaround, Dmitry Gutov, 2014/09/13
- [elpa] 13/14: Release 0.8.4, Dmitry Gutov, 2014/09/13
- [elpa] 01/14: company-begin-commands: include some cc-mode commands, Dmitry Gutov, 2014/09/13
- [elpa] 12/14: company--posn-col-row: add comment, Dmitry Gutov, 2014/09/13
- [elpa] 05/14: Adjust for debbugs:18384 being fixed now, Dmitry Gutov, 2014/09/13
- [elpa] 11/14: Only use company-ropemacs when ropemacs-mode is on, Dmitry Gutov, 2014/09/13
- [elpa] 14/14: Merge commit '2ef6263c65a109b4d36503e6484fdbf4cb307d0f' from company, Dmitry Gutov, 2014/09/13