This is an archive of the discontinued LLVM Phabricator instance.

Completion-related fixes for clang-include-fixer.el
ClosedPublic

Authored by tmarek on Feb 22 2017, 1:16 AM.

Details

Reviewers
klimek
hokein
Summary
  1. Quitting inside a process sentinel is not allowed, but the sentinel invokes completion, where the user is free to hit C-g. By wrapping the call in with-local-quit, the process sentinel invocation can finish without triggering an error
  2. Invoke completing-read instead of ido-completing-read, since this may interfere with user customizations to completing-read-function. The user should use something like ido-ubiquitous if ido completion is wanted
  3. Compare the string returned from completion with string=, since it may be a copy of the original string in the collection

Diff Detail

Event Timeline

tmarek created this revision.Feb 22 2017, 1:16 AM
This revision is now accepted and ready to land.Feb 22 2017, 1:29 AM
klimek closed this revision.Feb 22 2017, 1:33 AM

Thanks. Landed in r295818