From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 5B48D7F0BA for ; Mon, 29 Aug 2016 22:35:16 +0200 (CEST) IronPort-PHdr: 9a23:VzCjmhFXawStysP+Z6gOYJ1GYnF86YWxBRYc798ds5kLTJ75osqwAkXT6L1XgUPTWs2DsrQf2rOQ7/yrADFZqdbZ6TZZL8wKD0dEwewt3CUeQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2ap42N2uuz45zeZRlTzHr4OOsqbUaAlhjKrsQdnadlL68wzFOJ/ioJKKxqwjZNLE6enV7f4dyx/9Y3rnsO5/l5rZ9KD/WqdP0zFbACUD18PjFq78G060XNZQSK73oYFG4Rl0wbLRLC6UTURBb9MzH7vaJX3zSAdZn4V704VC6j5OFhTwLyoCMONDcz+WeRjMFs2vEI6Cm9rgByltaHKLqeM+BzK+aAJN4= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=frederic.bour@lakaban.net; spf=Pass smtp.mailfrom=frederic.bour@lakaban.net; spf=None smtp.helo=postmaster@mail.lakaban.net Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of frederic.bour@lakaban.net) identity=pra; client-ip=213.251.185.180; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="frederic.bour@lakaban.net"; x-sender="frederic.bour@lakaban.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.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=mail2-smtp-roc.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 (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail.lakaban.net) identity=helo; client-ip=213.251.185.180; receiver=mail2-smtp-roc.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: A0CBBABdm8RX/7S5+9VcHAEBBAEBFwEBBAEBgwoBAQEBAXV8plOFKo4xJIV5AoIYEQEBAQEBAQEBAQEBXSeCMgQBFQWCEQEBBCMdAQEsCwEPCwQUDR0CAiEkEgYTEgmICwMbCq02Z4RHAQEFhyQDCoNLAQEBAQEFAQEBAQEBAQEXCIQjhAuCTYJDgiqCVYJahmcMki00hiCGPoJNgW1OhyCFeoZsgU+ECYN5DyUggieBdm+FDIFAAQEB X-IPAS-Result: A0CBBABdm8RX/7S5+9VcHAEBBAEBFwEBBAEBgwoBAQEBAXV8plOFKo4xJIV5AoIYEQEBAQEBAQEBAQEBXSeCMgQBFQWCEQEBBCMdAQEsCwEPCwQUDR0CAiEkEgYTEgmICwMbCq02Z4RHAQEFhyQDCoNLAQEBAQEFAQEBAQEBAQEXCIQjhAuCTYJDgiqCVYJahmcMki00hiCGPoJNgW1OhyCFeoZsgU+ECYN5DyUggieBdm+FDIFAAQEB X-IronPort-AV: E=Sophos;i="5.30,252,1470693600"; d="scan'208,217";a="234449047" Received: from pepper.lakaban.net (HELO mail.lakaban.net) ([213.251.185.180]) by mail2-smtp-roc.national.inria.fr with ESMTP; 29 Aug 2016 22:35:15 +0200 Received: from [192.168.235.62] (unknown [80.177.151.42]) (Authenticated sender: defre@ygg-drasil.fr) by mail.lakaban.net (Postfix) with ESMTPSA id 78A038A1D89; Mon, 29 Aug 2016 20:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lakaban.net; s=default; t=1472502842; bh=SWuw1V8YIvI+FVCyDS/Lz0gI317LtzZXwr4c5LjbCH0=; h=Date:From:Subject:To:Cc:In-Reply-To:References:From; b=ocskjYpKAdl/1Yj77+e3CQK19PQx2hxDvlMkXeK+8FirFFeOZazkau7fNlvq0BGyy igQsVhl/NOA0DXerGrjk0qTPw75m6Ryent36PPBUbFtZAA5TFNrTkETTqAmYb5JHrr eAfM3MphYypSc/dllzqPa0udnypbID+6Ax7yGbek= Date: Mon, 29 Aug 2016 21:35:42 +0100 From: =?iso-8859-1?b?RnLpZOlyaWM=?= Bour To: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com> Cc: OCaml Mailing List Message-Id: <1472502942.2752.0@mail.lakaban.net> In-Reply-To: <18de7085-d85d-bc6b-ce85-3b6c546ee8f1@gmail.com> References: <18de7085-d85d-bc6b-ce85-3b6c546ee8f1@gmail.com> X-Mailer: geary/0.11.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=-+JPKknGq7FSnAid++Zba" Subject: Re: [Caml-list] merlin and TAB characters --=-+JPKknGq7FSnAid++Zba Content-Type: text/plain; charset=utf-8; format=flowed Evaluating this (to update the definition that merlin mode uses) should fix your problem: (defun merlin/unmake-point (point) "Destruct POINT to line / col." (save-excursion (goto-char point) (beginning-of-line) `((assoc . nil) (line . ,(line-number-at-pos nil)) (col . ,(- point (point)))))) We will ship this fix in the next version. On Mon, Aug 29, 2016 at 6:50 PM, Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com> wrote: > Dear all, > > I use Merlin for displaying types of terms or for jumping to the > definition of various terms/types. > This normally works as long as a given identifier/term is not > preceded by TAB characters. > If there are some TAB characters, Merlin's usability is degraded. > > As a non-invasive solution, is there a way how I could tell Merlin > how my Emacs interprets TAB characters so that it interprets it in a > consistent way? > (i.e. it will assume that TAB character moves the cursor by 8, not 1, > positions to the right). > > Thank you in advance for help. > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa.inria.fr/sympa/arc/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs --=-+JPKknGq7FSnAid++Zba Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Evaluating this (to update the definition that merlin mode uses) shoul= d fix your problem:

(defun merlin/unmake-point= (point)
  "Destruct POINT to line / col."=
  (save-excursion
    (goto-char point)
  &nb= sp; (beginning-of-line)
    `((assoc = . nil) (line . ,(line-number-at-pos nil)) (col . ,(- point (point))))))

We will ship this fix in the next = version.

On Mon, Aug 29, 2016 at 6:50 PM, Matej Kosik <5764c029b= 688c1c0d24a2e97cd764f@gmail.com> wrote:
Dear all, I use Merlin for displaying types of terms or for jumping to the definition= of various terms/types. This normally works as long as a given identifier/term is not preceded by T= AB characters. If there are some TAB characters, Merlin's usability is degraded. As a non-invasive solution, is there a way how I could tell Merlin how my E= macs interprets TAB characters so that it interprets it in a consistent way? (i.e. it will assume that TAB character moves the cursor by 8, not 1, posit= ions to the right). Thank you in advance for help.
--=20
Caml-list mailing list. Subscription management and archives: https://sympa.inria.= fr/sympa/arc/caml-list Beginner's list: = http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inr= ia.fr/bin/caml-bugs
= --=-+JPKknGq7FSnAid++Zba--