Consider the following Rust program:
fn main() {
let s = String::new();
s.ext|
}
When at the cursor (indicated with the |), invoking M-x counsel-company will insert the text extend after ext i.e., the third line becomes s.extextend.
The same behaviour happens in the following C program, but with a slightly different result: the prefix pu is replaced with pput.
#include <stdio.h>
int main(void) {
pu|
}
- Emacs 25.2
- Ivy 9.1 (mepla-stable channel) and 20170416 (melpa channel)
- Rust-mode, racer-mode, and cargo-mode from melpa (20170411, 20170218, 20170203)
- Built-in cc-mode
- company from melpa (20170328)
Consider the following Rust program:
When at the cursor (indicated with the
|), invokingM-x counsel-companywill insert the textextendafterexti.e., the third line becomess.extextend.The same behaviour happens in the following C program, but with a slightly different result: the prefix
puis replaced withpput.