Closed alienbogart closed 4 years ago
Please attempt to reproduce this with emacs -Q
and M-x load-file RET [PATH TO FILE]
That works! I have no idea what might be cause this, though. The issue persists even if I remove all my fountain configurations.
Looks like you're using company
? How'd you get this to work with fountain-mode
?
Apply this patch and let me know if it works:
diff --git a/fountain-mode.el b/fountain-mode.el
index 51192d3..53641eb 100644
--- a/fountain-mode.el
+++ b/fountain-mode.el
@@ -1165,17 +1165,13 @@ important."
contd-character (car scene-characters)
rest-characters (cddr scene-characters)
scene-characters nil)
- (when rest-characters
- (setq scene-characters rest-characters))
- (when contd-character
- (setq scene-characters
- (cons contd-character scene-characters)))
- (when alt-character
- (setq scene-characters
- (cons alt-character scene-characters)))
- (append scene-characters
- fountain-completion-additional-characters
- fountain--completion-characters)))
+ (when rest-characters (setq scene-characters rest-characters))
+ (when contd-character (push contd-character scene-characters))
+ (when alt-character (push alt-character scene-characters))
+ (delete-dups
+ (append scene-characters
+ fountain-completion-additional-characters
+ (mapcar 'car fountain--completion-characters)))))
(defun fountain-completion-at-point ()
"\\<fountain-mode-map>Return completion table for entity at point.
Looks like you're using
company
? How'd you get this to work withfountain-mode
?Apply this patch and let me know if it works:
diff --git a/fountain-mode.el b/fountain-mode.el index 51192d3..53641eb 100644 --- a/fountain-mode.el +++ b/fountain-mode.el @@ -1165,17 +1165,13 @@ important." contd-character (car scene-characters) rest-characters (cddr scene-characters) scene-characters nil) - (when rest-characters - (setq scene-characters rest-characters)) - (when contd-character - (setq scene-characters - (cons contd-character scene-characters))) - (when alt-character - (setq scene-characters - (cons alt-character scene-characters))) - (append scene-characters - fountain-completion-additional-characters - fountain--completion-characters))) + (when rest-characters (setq scene-characters rest-characters)) + (when contd-character (push contd-character scene-characters)) + (when alt-character (push alt-character scene-characters)) + (delete-dups + (append scene-characters + fountain-completion-additional-characters + (mapcar 'car fountain--completion-characters))))) (defun fountain-completion-at-point () "\\<fountain-mode-map>Return completion table for entity at point.
Company is not enabled for Fountain Mode. But I'll try your solution and give feedback.
What's giving you the dropdown completion candidates in your screenshot?
What's giving you the dropdown completion candidates in your screenshot?
Tab
My Environment
Issue
Whenever a character has more than one line in a script, using
fountain-dwim
(viaTAB
) to complete it (after typing one or two letters) will render a bunch of identical completions.So with this text:
I get this:![fountain_shot](https://user-images.githubusercontent.com/36245777/76211005-0e629180-61e4-11ea-9f4d-2223cf8c62a4.png)
Since they're identical, the completion should only display a single option.