From: "Frédéric Bour" <frederic.bour@lakaban.net>
To: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com>
Cc: OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] merlin and TAB characters
Date: Mon, 29 Aug 2016 21:35:42 +0100 [thread overview]
Message-ID: <1472502942.2752.0@mail.lakaban.net> (raw)
In-Reply-To: <18de7085-d85d-bc6b-ce85-3b6c546ee8f1@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2218 bytes --]
prev parent reply other threads:[~2016-08-29 20:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-29 17:50 Matej Kosik
2016-08-29 20:35 ` Frédéric Bour [this message]
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=1472502942.2752.0@mail.lakaban.net \
--to=frederic.bour@lakaban.net \
--cc=5764c029b688c1c0d24a2e97cd764f@gmail.com \
--cc=caml-list@inria.fr \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox