From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 03FE37F02D for ; Sun, 19 Oct 2014 12:33:09 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of frederic.bour@lakaban.net) identity=pra; client-ip=213.251.185.180; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="frederic.bour@lakaban.net"; x-sender="frederic.bour@lakaban.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of frederic.bour@lakaban.net designates 213.251.185.180 as permitted sender) identity=mailfrom; client-ip=213.251.185.180; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="frederic.bour@lakaban.net"; x-sender="frederic.bour@lakaban.net"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail.lakaban.net) identity=helo; client-ip=213.251.185.180; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="frederic.bour@lakaban.net"; x-sender="postmaster@mail.lakaban.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUEALN/Q1TV+7m0/2dsb2JhbABbFoNIWMwbhww+AoEkAX2EAwEBBAwmAQUIAQE2Ag8LGAkWDwkDAgECAUUGAQwIAQGIPwmqKIV6AQWPEgEBAQcBAQEBARcGkFiES5MMgz+IQzyFfIo5hAGDeWoFgkYBAQE X-IPAS-Result: ArUEALN/Q1TV+7m0/2dsb2JhbABbFoNIWMwbhww+AoEkAX2EAwEBBAwmAQUIAQE2Ag8LGAkWDwkDAgECAUUGAQwIAQGIPwmqKIV6AQWPEgEBAQcBAQEBARcGkFiES5MMgz+IQzyFfIo5hAGDeWoFgkYBAQE X-IronPort-AV: E=Sophos;i="5.04,749,1406584800"; d="scan'208";a="83810190" Received: from pepper.lakaban.net (HELO mail.lakaban.net) ([213.251.185.180]) by mail3-smtp-sop.national.inria.fr with ESMTP; 19 Oct 2014 12:33:08 +0200 Received: from [192.168.1.17] (mtg91-4-78-206-197-34.fbx.proxad.net [78.206.197.34]) (Authenticated sender: defre@ygg-drasil.fr) by mail.lakaban.net (Postfix) with ESMTPSA id 9849D2C15A5; Sun, 19 Oct 2014 10:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lakaban.net; s=default; t=1413713841; bh=OFvN3S0W3CXq/6YLW6ic9IN5IGoPW1QhMx374gk3eds=; h=Date:From:To:Subject:References:In-Reply-To:From; b=ESOVNKYC2LjAsHNFZyslZS9vs9UDNi9jg+xAkzWxYr1jLkrKYWjB8sAPDNc8xjsMO HU4x17hf+4TLX8ZBqdD4ugXGKRqI9IbY8yLoo2FOXHsyyTBrhuwXNvFZMCAgYJ2KeT PU9CJT3MM4Rg1mvHtjtogprHbUf7egXKDvMdN04w= Message-ID: <54439301.1060209@lakaban.net> Date: Sun, 19 Oct 2014 12:31:29 +0200 From: =?ISO-8859-15?Q?Fr=E9d=E9ric_Bour?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: "Vu~ Ngo.c San" , caml-list@inria.fr References: <54421AEA.8050209@gmail.com> <54422A3C.9030300@lakaban.net> <544233C6.8090604@gmail.com> In-Reply-To: <544233C6.8090604@gmail.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] Re: merlin autocomplete : "int" at the end of the line Try loading this file in emacs http://yawdp.com/~def/merlin-keywords.el After that, if you (add-to-list 'ac-sources 'merlin-ac-source-keywords) it will also lists ocaml keywords in completion, so in should take precedence over int. If you think this help, we may integrate something similar in next release. On 18/10/2014 11:32, Vu~ Ngo.c San wrote: > I currently use opam with 4.01.0 (= system) > > do you suggest to change "return" to some other key for autocompletion ? > I fact I don't mind using "return", except in few cases, and "in" is > one of them. Can one impose such exceptions ? > > Le 18/10/2014 10:52, Frédéric Bour a écrit : >> That's just auto-complete default behavior, which you can customize ( >> http://cx4a.org/software/auto-complete/ ). >> >> The current beta of merlin (which you have if you are using 4.02 on >> opam) allows you to (setq merlin-use-auto-complete 'easy) to override >> defaults. >> See >> https://github.com/the-lambda-church/merlin/blob/a015e9aaca6ce997a835c152051d0611885c38dd/emacs/merlin.el#L1918 >> for the corresponding settings. >> >> On 18/10/2014 09:46, Vu~ Ngo.c San wrote: >>> Hello >>> >>> I'm trying the combination tuareg+merlin+ocp-indent to work nicely >>> in my emacs. I'm puzzled by this behavior: >>> suppose you end your line with "in" (which is quite common, right ?) >>> and then type "return": >>> The "in" has been autocompleted to "int". >>> >>> This can't be a default behavior; what do I do wrong ? >>> Following >>> https://github.com/realworldocaml/book/wiki/Installation-Instructions, >>> have in my .emacs: >>> (setq merlin-use-auto-complete-mode t) >>> >>> regards >>> San >>> >>> >> >> >