BUG: the mark is jumping chaoticly #275

Open
VengadoraVG opened this Issue Dec 14, 2013 · 0 comments

Projects

None yet

1 participant

This bug happens in very selective situations, but lately, it is so annoying.

(you can clone this buggy files from here https://github.com/VengadoraVG/bug-autocomplete.git )

On c++, for example, i finally can reproduce this bug... if you open a file on c++ mode, and write all this.

//#define NDEBUG
#define DEBUG_MODE true

#include<iostream>
#include<vector>
#include<algorithm>
#include<sstream>
#include<fstream>
#include<assert.h>
#include<set>

using namespace std;

typedef long long int ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<string> vs;

void dmes(string message){
      if(DEBUG_MODE)
        cout << message;
}

int main(){

}

void quicksort(int* **type array here**
**white space here**

when you type "ar" the mark will jump to "quicksor" <- here.

I don't know how to fix this, but it is really annoying, lately it has been happening again and again.

i'm also working with yasnippet, predictive, and some another emacs's plugins more... but i removed them, and just left the autocomplete features... and the bug keeps jumping, but this time, it shows up when you type "arra". And the mark will jump into "void quicksort(i" <- here, and everything after mark will be deleted :(

here, i'll paste my .emacs content as well...

;; Autocomplete
(add-to-list 'load-path "/home/vg/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "/home/vg/.emacs.d//ac-dict")
(ac-config-default)

;; Rsense + Autocomplete
(add-hook 'ruby-mode-hook
          (lambda ()
            (add-to-list 'ac-sources 'ac-source-rsense-method)
            (add-to-list 'ac-sources 'ac-source-rsense-constant)))

;; LaTeX math autocomplete ·u· (AUCTex)
(require 'ac-math)
(add-to-list 'ac-modes 'latex-mode)
(defun ac-latex-mode-setup()
  (setq ac-sources
    (append '(ac-source-math-unicode ac-source-math-latex ac-source-latex-commands)
        ac-sources)))
(add-hook 'latex-mode-hook 'ac-latex-mode-setup)

;;LaTeX autocomplete :D
(add-hook 'latex-mode-hook
      (lambda()
        (add-to-list 'ac-sources 'auto-complete-auctex)))

any thoughts on what would be happening? (i understand a little bit of elisp)

i hope this bug can be fixed... i really don't want to remove autocomplete from my add-ons... it's really neat!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment