Re: edit-and-execute-command (C-xC-e) doesn't use FCEDIT env variable

2008-08-25 Thread Francis Moreau
On Sun, Aug 24, 2008 at 8:46 AM, Pierre Gaston <[EMAIL PROTECTED]> wrote: > On Sat, 23 Aug 2008, Francis Moreau wrote: > >> I think I won't use VISUAL but start emacs in sh-mode if the file name >> argument matches "*bash-fc-*" pattern. It should be safe. >> > > adding the following in your .emacs

Re: edit-and-execute-command (C-xC-e) doesn't use FCEDIT env variable

2008-08-24 Thread Pierre Gaston
On Sat, 23 Aug 2008, Francis Moreau wrote: I think I won't use VISUAL but start emacs in sh-mode if the file name argument matches "*bash-fc-*" pattern. It should be safe. adding the following in your .emacs should do the trick: (add-to-list 'auto-mode-alist '("^/tmp/bash-fc" . sh-mode))

Re: edit-and-execute-command (C-xC-e) doesn't use FCEDIT env variable

2008-08-23 Thread Francis Moreau
On Sat, Aug 23, 2008 at 12:53 AM, Chet Ramey <[EMAIL PROTECTED]> wrote: > Francis Moreau wrote: >> hmm why not fixing the command instead ? > > It's not broken. Well, if you consider the man page correct, the command is, isn't it ? >> VISUAL can be used to visualize a file, so can be set to 'les

Re: edit-and-execute-command (C-xC-e) doesn't use FCEDIT env variable

2008-08-22 Thread Chet Ramey
Francis Moreau wrote: On 8/22/08, Chet Ramey <[EMAIL PROTECTED]> wrote: Good catch. The command executed is actually fc -e "${VISUAL:-${EDITOR:-emacs}}" It's the same command for vi and emacs editing modes, though the default for vi editing mode is `vi' instead of `emacs'. The documentation

Re: edit-and-execute-command (C-xC-e) doesn't use FCEDIT env variable

2008-08-22 Thread Francis Moreau
On 8/22/08, Chet Ramey <[EMAIL PROTECTED]> wrote: > Good catch. The command executed is actually > > fc -e "${VISUAL:-${EDITOR:-emacs}}" > > It's the same command for vi and emacs editing modes, though the default > for vi editing mode is `vi' instead of `emacs'. The documentation needs > to be u

Re: edit-and-execute-command (C-xC-e) doesn't use FCEDIT env variable

2008-08-22 Thread Chet Ramey
Francis Moreau wrote: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALED