Skip to content
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

Completion caching (simplified) #148

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
35fc573
Improved prompt regexp, can match at bol
jdtsmith May 24, 2019
be932f2
lua-shell-temp-file: temp file for sending long commands to lua
jdtsmith May 24, 2019
0591197
Custom variables for completion query
jdtsmith May 24, 2019
6b126e9
lua-send-command-output-to-buffer-and-wait: new send modality
jdtsmith May 24, 2019
9dfbb12
lua-start-of-expression: written
jdtsmith May 24, 2019
1d9f69e
lua process querying caching completion framework
jdtsmith May 24, 2019
424b130
lua-start-process: process buffer-locality and send redirection
jdtsmith May 24, 2019
6aadffa
Clean up after comint-redirect
jdtsmith May 24, 2019
f2cd92d
Makefile: Switch from sed to perl for better portability
jdtsmith May 24, 2019
fa1013e
test-completion: testing framework added
jdtsmith May 24, 2019
54d1528
README: describe new completion capability
jdtsmith May 24, 2019
316d0c2
Drop support for Emacs 24.3 and add 26.2
jdtsmith May 24, 2019
c038e78
Increment version string
jdtsmith May 24, 2019
eb29c18
emacs_lua_complete: Add spaces for clarity
jdtsmith May 25, 2019
0c59a28
Setup scripts/ directory for lua scripts
jdtsmith May 25, 2019
c618207
emacs_lua_complete: Add spaces for clarity [TOSQUASH]
jdtsmith May 25, 2019
9085997
Setup scripts/ directory for lua scripts [TOSQUASH]
jdtsmith May 25, 2019
a678055
Be explicit about function symbol [TOSQUASH]
jdtsmith May 25, 2019
b713a31
Merge branch 'completion-caching-simplified' of github.com:jdtsmith/l…
jdtsmith May 25, 2019
1d928e1
Remove superfluous comint-redirect [TOSQUASH]
jdtsmith Jun 10, 2019
e307d61
maximum-command-length -> maximum-sent-length [TOSQUASH]
jdtsmith Jun 10, 2019
863e9df
Removed unused lua-shell-last-command [TOSQUASH]
jdtsmith Jun 10, 2019
623642d
Don't use REGEXP search for parts match, and allow _ starting [TOSQUASH]
jdtsmith Jun 12, 2019
5697ea8
prefer ipairs for looping over parts [TOSQUASH]
jdtsmith Jun 14, 2019
0045b51
Document limit better, and whitespace
jdtsmith Jun 14, 2019
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
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ addons:
packages:
- lua5.2
env:
- EVM_EMACS=emacs-24.3-travis
- EVM_EMACS=emacs-24.4-travis
- EVM_EMACS=emacs-24.5-travis
- EVM_EMACS=emacs-25.1-travis
- EVM_EMACS=emacs-25.2-travis
- EVM_EMACS=emacs-25.3-travis
- EVM_EMACS=emacs-26.2-travis
# - EVM_EMACS=emacs-git-snapshot-travis
before_install:
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > travis.sh && source ./travis.sh
- evm install "$EVM_EMACS" --use --skip
install:
- cask install
script:
- make
- make test
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makefile for lua-mode

VERSION="$(shell sed -nre '/^;; Version:/ { s/^;; Version:[ \t]+//; p }' lua-mode.el)"
VERSION="$(shell perl -ne 'if(s/^;; Version:[ \t]+(.*)/$$1/){print; exit}' lua-mode.el)"
DISTFILE = lua-mode-$(VERSION).zip

# EMACS value may be overridden
Expand All @@ -10,8 +10,12 @@ LUA_MODE_ELC=lua-mode.$(EMACS_MAJOR_VERSION).elc

EMACS_BATCH=$(EMACS) --batch -Q

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
mkfile_dir := $(dir $(mkfile_path))
export LUA_PATH = $(mkfile_dir)test/?.lua

default:
@echo version is $(VERSION)
@echo version is $(VERSION), LUA_PATH is $(LUA_PATH)

%.$(EMACS_MAJOR_VERSION).elc: %.elc
mv $< $@
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ hash-bang line (`#!/usr/bin/lua`). Putting this snippet to `.emacs` should be en
- documentation lookup (using online/offline reference manual, e.g. [string.find](http://www.lua.org/manual/5.1/manual.html#pdf-string.find))
- [imenu](http://www.gnu.org/software/emacs/manual/html_node/emacs/Imenu.html) integration
- [HideShow](http://www.gnu.org/software/emacs/manual/html_node/emacs/Hideshow.html) integration
- using `completion-at-point` queries active Lua subprocess for completion targets

## CUSTOMIZATION

Expand All @@ -56,6 +57,7 @@ The following variables are available for customization (see more via `M-x custo
- Var `lua-mode-hook`: list of functions to execute when lua-mode is initialized
- Var `lua-documentation-url` (default `"http://www.lua.org/manual/5.1/manual.html#pdf-"`): base URL for documentation lookup
- Var `lua-documentation-function` (default `browse-url`): function used to show documentation (`eww` is a viable alternative for Emacs 25)
- Var `lua-local-require-completions` (default `t`): set to `nil` to prevent completion attempting to load local libraries for current file for completion targets

## LUA SUBPROCESS CREATION

Expand Down
Loading