aboutsummaryrefslogtreecommitdiff
path: root/lisp/with-editor.el
AgeCommit message (Collapse)Author
2016-01-28move with-editor to its own repositoryJonas Bernoulli
2016-01-19reset Package-Requires for MelpaJonas Bernoulli
2016-01-19release version 2.4.12.4.1Jonas Bernoulli
2016-01-18fix 26ae1390333e4311e8d1dc03856b7917262e167d #2492Jonas Bernoulli
2016-01-18reset Package-Requires for MelpaJonas Bernoulli
2016-01-18release version 2.4.02.4.0Jonas Bernoulli
2016-01-15with-editor-locate-emacsclient-1: when named emacsclient-snapshotJonas Bernoulli
Fixes #2492.
2016-01-01bump copyright yearsJonas Bernoulli
2015-12-14Fix typos in documentationLele Gaifax
Catched by ispell and ispell-comments-and-strings.
2015-12-09shell-command--shell-command-with-editor-mode: fix sleeping caseJonas Bernoulli
Fix the code-path used when the `with-editor-sleeping-editor' is used. `shell-command' does not return the process as previously assumed, so we have to `get-buffer-process' from the OUTPUT-BUFFER.
2015-12-09use advice-add instead of defadviceJonas Bernoulli
2015-11-26with-editor-post-finish-hook: new hookJonas Bernoulli
2015-11-11reset Package-Requires for MelpaJonas Bernoulli
2015-11-11release version 2.3.12.3.1Jonas Bernoulli
2015-10-28reset Package-Requires for MelpaJonas Bernoulli
2015-10-28release version 2.3.02.3.0Jonas Bernoulli
2015-10-22bump dependenciesJonas Bernoulli
Most importantly depend on a snapshot of `dash', because *any* snapshot is larger than 2.MM.S but we really do need v2.8 at the very least (for `-let'). Actually depend on a snapshot corresponding to v2.12.1 because that fixes magnars/dash.el#130.
2015-10-10with-editor: replace occurrences of "looping" with "sleeping"Jonas Bernoulli
2015-09-29w-ed-emacsclient-version: handle empty outputNoam Postavsky
This avoids throwing an error when trying emacsclientw.exe which displays output in popup dialog boxes instead of stdout.
2015-09-29with-editor-debug: use full pathsNoam Postavsky
This is required if there are paths with-editor-emacsclient-path that are not on exec-path.
2015-09-29with-editor-debug: handle nil server-socket-dirNoam Postavsky
2015-09-29w-ed-locate-emacsclient: don't shell-quote resultNoam Postavsky
Only shell-quote when passing things to shell: i.e. in the `with-editor' macro.
2015-09-21with-editor-return: delete file when canceling without clientsJonas Bernoulli
2015-09-21server-switch-buffer(with-editor): save window configurationJonas Bernoulli
Save the window configuration in the `with-editor' advice to `server-switch-buffer', but only if `with-editor-mode' is enabled. Previously saving the window configuration was left to callers, but by the time they got a change to do so, it was already to late, as the client buffer was already being displayed. Also we only did this for committing but not rebasing. Fixes #2273.
2015-09-03reset Package-Requires for MelpaJonas Bernoulli
2015-09-03release version 2.2.22.2.2Jonas Bernoulli
2015-09-03fix typoBarak A. Pearlmutter
2015-09-02use variable buffer-file-name instead of function by same nameJonas Bernoulli
Where previously the function `buffer-file-name' was called without an argument, instead just use the variable by the same name. Now this is done consistently across the code base.
2015-08-29with-editor-locate-emacsclient-1: match debian alternativesJonas Bernoulli
Fixes #2217.
2015-08-26with-editor-return: use server-done instead of server-editJonas Bernoulli
This fixes #2197. We don't actually want to show the buffer belonging to another client, so we call `server-done' instead of `server-edit'. The latter calls the former and then also tries to select a buffer, using `server-switch-buffer' which favors buffers belonging to another client. This does matter when Emacs was started in daemon mode and the user connects to the instance using the emacsclient and then uses Magit to invoke. When s/he then completes the commit, then their always is another client, the one used to connect to the instance in the first place. Later in `with-editor-return' we restore the window configuration from before `with-editor' was used, so one would think that needlessly showing another buffer before restoring the window configuration would not matter. However the previous window configuration has to be explicitly stored by the caller of `with-editor', so we cannot rely on a configuration being stored and have to fix the above issue anyway. In the case of committing using Magit this should not have made a difference because that does save the previous window configuration, but unfortunately it does it to late, when the configuration has already been modified somewhat. I am not sure if that can be fixed, but in any case that's a different issue.
2015-08-24melpa release dance, part 2Jonas Bernoulli
2015-08-24melpa release dance, part 1Jonas Bernoulli
2015-08-23define remaining hook variables using defvarJonas Bernoulli
Re #2198.
2015-08-16make Melpa snapshots depend on other snapshotsJonas Bernoulli
2015-08-16release version 2.2.02.2.0Jonas Bernoulli
2015-08-16allow users to prevent the use of async-bytecomp-package-modeJonas Bernoulli
Also see #2156 and 2.2.0.txt.
2015-08-16Add debug declare to most defmacroRémi Vanicat
2015-08-08use async-bytecomp to guarantee untainted buildsJonas Bernoulli
When `package.el' is used to update a package whose libraries have already been loaded in the current session, then parts of the loaded version can leak into the new version during byte-compilation. This can be avoided by compiling the libraries in a separate Emacs instance. The library `async-bytecomp', which is part of the package `async', does just that by advising the function `package--compile'. So add `async' as an Elpa dependency, soft-require `async-bytecomp', and if that succeeds, then turn on `async-bytecomp-package-mode' to activate the advice. Because it is undefined which package is updated first, and which library is loaded first, we have to this in both possible candidates `with-editor' and `magit-popup'. Users may update `magit' without updating the dependencies, so we have to further force the updates of all the Elpa packages that are build from the Melpa repository. To do so we depend on "20150808" snapshot versions instead of "2.2.0". When installing Magit manually, then `async-bytecomp' is not required, because Magit is then compiled using the Makefile which already uses a separate, untainted Emacs instance.
2015-06-28fix and extend package metadataJonas Bernoulli
2015-06-23improve package summaries and commentaryJonas Bernoulli
Improve the library summaries of the libraries that are distributed as separate packages, as well as the summary and commentary of `magit.el'.
2015-06-23update elpa package dependenciesJonas Bernoulli
Note that emacs-24.4 implies cl-lib.
2015-06-23clarify copyright lines in library headersJonas Bernoulli
At the beginning of library headers use ;; Copyright (C) YEARS The Magit Project Contributors instead of ;; Copyright (C) YEARS The Magit Project Developers "Developers" might be read as to imply that only the core team hold the copyright. But that is not the case, since nobody assigned their rights to us. Everyone who ever contributed holds the copyright for their contribution(s).
2015-06-23move all libraries to new lisp/ subdirectoryJonas Bernoulli
and move AUTHORS.md to the Documentation/ subdirectory. This also requires extensive changes to the Makefiles and some libraries.