* origin/pull/24: Optionally use ido to prompt for directory.
* origin/pull/25: fixed no results listed in windows, per #23
Emacs already provides `shell-quote-argument` to quote shell arguments correctly.
…esting Closes #20 * origin/better-ack-exit-messages: Do not claim ack exited abnormally when no matches were found
Add a Code section marker, and remove lint warnings about function descriptions.
While ack does exit non-zero when there are no matches found, this is not actually exiting "abnormally". Instead, lets behave a bit closer to what grep.el does, and actually look at what ack did to see if we should be claiming that it exited abnormally, or adjusting the message to inform the user that there weren't any matches. Addresses issue #20.
Turns out that the "(require 'ack-and-a-half)" method of loading was always working, and we don't actually have to individually load the specific functions.
Simão pointed out that ack-and-a-half's handling of the compilation buffer name was problematic for reasonable, and common work-flows (GitHub issue #17).
Ack-and-a-half should now play much more nicely with other commands and things that wish to use the compilation buffer. This closes #17. * temporarily-set-compilation-buffer-name: Set compilation-buffer-name-function temporarily when running ack
Rather than clobbering the buffer local setting of compilation-buffer-name-function whenever we run ack, we now restore the previous value of compilation-buffer-name-function. By doing this, we no longer interfere with people that are using the "normal" "*compilation*" buffer for other purposes.
* scala-and-buffer-name: Add Derek Chen-Becker to the list of authors Set Ack to use a custom buffer name Added scala major mode "same" type
Prevents it from stepping on other compilation mode buffers, allows for customization of the name.
Originally the pattern to search for was part of the extra "arguments" parameter which didn't play nice with the change to be able to search for patterns that began with a dash. This came up, specifically, when trying to use ack-and-a-half-same, since arguments would be something like "--type elisp 'ack-and-a-half'", which would be placed after the end-of-arguments marker. We now pass the pattern to search for separately from additional arguments to be able to reliably combine everything in the proper order, with additional arguments before the end-of-arguments marker, and the pattern after it. Thanks to Diep Pham Van for noticing this.
Instead of surprising the user by changing default-directory out from underneath them, we now localize default-directory to the scope of running ack-and-a-half-run (similar to how ack-and-a-half-list-files already handled this). By doing this, default-directory is preserved to what the user had before they ran ack-and-a-half.
* Include a URL header pointing to the GitHub repository. * De-obfuscate my email address since Marmalade strips it out and this is what spam filters are for. * Try indenting the sample code to see if Marmalade handles it properly.
Without the end-of-arguments argument ("--"), Ack would think that the search term was another argument. This closes #9.
This adds support for defaulting the Ack pattern to be the symbol-at-point when the user invokes ack-and-a-half. Closes #6. * autofill-word-at-point: improve defaults for based on code from full-ack.el by Nikolaj Schumacher switch to symbol-at-point auto-fill word-at-point when reading pattern from minibuffer