all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dhruva <dhruvakm@gmail.com>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Customizing the VC backend order
Date: Sat, 11 Aug 2007 10:34:44 +0530	[thread overview]
Message-ID: <e3f230850708102204j507b947qdc1cf83c344d07f7@mail.gmail.com> (raw)
In-Reply-To: <jwv643o7x73.fsf-monnier+emacs@gnu.org>

Hi,

On 8/10/07, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> > No, it does not work. I get a message "No other backend to switch to"
>
> So the problem is not the ordering but the fact that vc-hg.el doesn't
> recognize the file as being under Hg's control.

Thank you for all the help. I had made the following mistake in my
windows setup. I have mercurial built as an executable and added that
folder in the PATH variable (as required). The mistake was enclosing
the folder in double quotes.

- I have mercurial installed under: E:/Program Files/hg (yes, folder
with a space!)
- I added in the PATH as: set PATH="E:/Program Files/hg";%PATH%
- From the command shell, I am able to invoke mercurial. Implies that
it is in path
- I use "which.exe" (from MinGW), it fails to find the "hg.exe"!
- I am not setting the path with out the double quotes and "which.exe" finds it
- Mercurial now works as required. The order in the vc-handled-backend
list is honored

I thought of putting in the details here as someone else may stumble
upon the same problem!
Also, I modified my dotemacs (eliminating nconc):
(setq vc-handled-backends (cons 'Hg (delq 'Hg vc-handled-backends)))

Not so important/relavent: I went through the 'C' implementation of
'nconc'. I find it concatenates 2'nd to the 1'st, 3'rd to the 2'nd...
N'th to the (N-1)'st and returns the 1'st list. I wonder how it can
get into an infinite loop. Any clarification here would help me
understand 'nconc' and 'C' better (as I find this a natural way to
concatenate lists. I would have probably done in the reverse order and
could eliminate the need for storing the first argument in the
function and just return the first argument)

with best regards,
dhruva

-- 
Dhruva Krishnamurthy
Contents reflect my personal views only!

  reply	other threads:[~2007-08-11  5:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-10  3:06 Customizing the VC backend order dhruva
2007-08-10  3:23 ` Stefan Monnier
2007-08-10  4:24   ` Stephen J. Turnbull
2007-08-10  4:33     ` Stefan Monnier
2007-08-10  5:07   ` dhruva
2007-08-10  5:24     ` Stefan Monnier
2007-08-10  5:44       ` dhruva
2007-08-10  5:53         ` Stefan Monnier
2007-08-11  5:04           ` dhruva [this message]
2007-08-11  9:11             ` Andreas Schwab
2007-08-11  9:22               ` David Kastrup
     [not found]                 ` <e3f230850708110327p285424cxd45f5393005a39bf@mail.gmail.com>
     [not found]                   ` <85ir7mwdkr.fsf@lola.goethe.zz>
     [not found]                     ` <e3f230850708110400v19e127c4i91f10f8e39934041@mail.gmail.com>
2007-08-11 12:05                       ` David Kastrup
2007-08-11 13:08                         ` dhruva
2007-08-10  5:32     ` David Kastrup
2007-08-10  5:44       ` David Kastrup
2007-08-10 14:59         ` Vinicius Jose Latorre
2007-08-10 17:40       ` Johan Bockgård

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e3f230850708102204j507b947qdc1cf83c344d07f7@mail.gmail.com \
    --to=dhruvakm@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.