[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 8ae3c7a 032/140: Add a space in before export
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor 8ae3c7a 032/140: Add a space in before export command to avoid polluting HISTFILE |
Date: |
Fri, 6 Aug 2021 12:51:14 -0400 (EDT) |
branch: elpa/with-editor
commit 8ae3c7aed92842f5988671c1b3350c65c58857e0
Author: Mario Rodas <marsam@users.noreply.github.com>
Commit: Mario Rodas <marsam@users.noreply.github.com>
Add a space in before export command to avoid polluting HISTFILE
When `with-editor-export-editor` is added to `shell-mode-hook` the export
command is needlessly added to $HISTFILE, adding a space character before
the
command doesn't save the command in the history list. This works given that
usually most of Linux distributions usually ship with
HISTCONTROL=ignoreboth.
---
with-editor.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/with-editor.el b/with-editor.el
index 546c119..40a8363 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -566,7 +566,7 @@ This works in `shell-mode', `term-mode' and `eshell-mode'."
(filter (process-filter process)))
(goto-char (process-mark process))
(process-send-string
- process (format "export %s=%s\n" envvar
+ process (format " export %s=%s\n" envvar
(shell-quote-argument with-editor-sleeping-editor)))
(while (accept-process-output process 0.1))
(set-process-filter process filter)
- [nongnu] elpa/with-editor 9fc0477 040/140: with-editor-output-filter: don't use tramp-make-tramp-file-name, (continued)
- [nongnu] elpa/with-editor 9fc0477 040/140: with-editor-output-filter: don't use tramp-make-tramp-file-name, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ae405e9 052/140: with-editor-export-editor: remove unnecessary leftovers, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 216ee34 056/140: Build on Travis, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b37d94b 035/140: with-editor-debug: fix old reference to magit in output, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 706c8ce 011/140: instruct users to use term-exec-hook, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 07bb67b 010/140: remove with-editor-export-editor from hook for shell-command, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 6f41998 017/140: with-editor-export-editor: fix doc-string, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 0a8d9ce 039/140: manual: set version in Org source, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1a6c49b 023/140: update list of contributors, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b2d9d6b 024/140: stop using "BEGIN_EXPORT texinfo" to support Org v9.0, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 8ae3c7a 032/140: Add a space in before export command to avoid polluting HISTFILE,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor ebf6ee4 034/140: with-editor-debug: don't run emacsclientw.exe, it makes popup windows, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 3385ffd 037/140: Revert "Use when-let instead of macros from dash", Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 229e80f 038/140: manual: regenerate using updated Org and Ox-Texinfo+, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 5851e76 043/140: Adapt to bug fixes in ox-texinfo and changes in ox-texinfo+ v2, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 5cddefa 044/140: Use remacsclient when using remacs, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1343935 045/140: Fix doc-string typos, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 8d73358 046/140: Provide actual url when mentioning old Magit issue numbers, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 890f923 048/140: Drop dependency on dash, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 2417261 051/140: Guard against nonexistent default directory, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ae23243 053/140: Cosmetics and typo fixes, Jonas Bernoulli, 2021/08/06