From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Ligatures Date: Tue, 19 May 2020 10:35:50 -0400 Message-ID: <9a15030d-5e30-6a22-b1a7-43456ee30475@gmail.com> References: <20200517124125.000013a4@web.de> <97C7EAB7-10AB-4702-ABC8-EB6C1C50ABDB@gnu.org> <20200517165953.000044d2@web.de> <83lflqblp0.fsf@gnu.org> <83ftbybio3.fsf@gnu.org> <83zha69xs2.fsf@gnu.org> <83367x9qeq.fsf@gnu.org> <83y2pp88lw.fsf@gnu.org> <83pnb182ce.fsf@gnu.org> <65807546-ed40-a175-640d-9da7a1548d8a@gmail.com> <83o8qk8xv6.fsf@gnu.org> <26ede471-3881-43e3-1253-6b21658343e9@gmail.com> <83lflo81qh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="124756"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 19 16:36:42 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jb3MF-000WI8-90 for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 16:36:39 +0200 Original-Received: from localhost ([::1]:35408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb3ME-0007zI-7i for ged-emacs-devel@m.gmane-mx.org; Tue, 19 May 2020 10:36:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb3LX-0006dL-MU for emacs-devel@gnu.org; Tue, 19 May 2020 10:35:55 -0400 Original-Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:33968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb3LW-0007MO-EZ; Tue, 19 May 2020 10:35:55 -0400 Original-Received: by mail-qt1-x831.google.com with SMTP id a23so5565255qto.1; Tue, 19 May 2020 07:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wp+qwnRy172RjInZxr/KolJkbWxkyTVW3R5CeXvZiok=; b=YRPWUcqX0hgNkc0C8A+LQdKRe4kVAV1Q4cdHdh+5Q0gcLtfGqDvW23we0CuJMoKMXZ ZSzNHEi493PXRAuDZUznbglL2E5oHs2+/xZzCXaPNs9+jnZxSQL6Jyg6URHJDv4pC+SM Bp2fcOuwv6mlZIn6+E8GTnl8ct+SWK9+3isM7SOGM45eZLo06iCSYtaKtVwiutlIMTj/ HlBIxdX7wtCLzlgfL8MR0/RfH2qigHPK/1Svkh5LQLIvEpnKhn8ui69ADM3OifnLetXU 5SP81GiSYCw1uCH3xcYfs1D0E5myZmxjWKhHIjokd+oBf+JD5SjK5JZAo6C1WJUgyYup 072A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wp+qwnRy172RjInZxr/KolJkbWxkyTVW3R5CeXvZiok=; b=JoGYcMQHZHWoUXlTBRlFLKbe0OdOENysquV1R2KGvOOVghlsOnEwCme8ksB1i5+6iR u7e0t005BzusB+L8f9ZKAseMBLiqwG4wsarFGQ0/hTA771wGAic4WIskgNX57Sysj4g0 JitxsxGwB1Jf0FiWkmMTKK3Y5Tj8Dh0FtSKHT2AkswsWTOIGoclx3T9ZIQHMqY8zIQrR 2CH5eprnb3mfYD8SERUmuZ33wiCUsaGDmXz2q9aU6oAFZ17di///K5C5wLtaq/3sOyIg uzGwOCBShKpmgMyxtCEBVI43tmxQflggvLojzbbGyl5Ik6sgTCIWiojQSeL31u9XpZRZ 2hpQ== X-Gm-Message-State: AOAM533Oqe8yrSlUnaK23PaLY8uI7uIhVSFDIsn7qrHbsROE0sQgzaHL +L1DofFIK1fMtdfM7CESWX3SFGVc X-Google-Smtp-Source: ABdhPJyvJvynab0itEKPK0QpPTj0VQWRehDQCSNeEP9V9D44ozoOnhOMv7eFUsWafe5eEbZdsSdehQ== X-Received: by 2002:ac8:19ce:: with SMTP id s14mr15352134qtk.202.1589898952710; Tue, 19 May 2020 07:35:52 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:bda5:ac5c:1de0:b677? ([2601:184:4180:66e7:bda5:ac5c:1de0:b677]) by smtp.googlemail.com with ESMTPSA id h12sm12513840qte.31.2020.05.19.07.35.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 May 2020 07:35:51 -0700 (PDT) In-Reply-To: <83lflo81qh.fsf@gnu.org> Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=cpitclaudel@gmail.com; helo=mail-qt1-x831.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250933 Archived-At: On 19/05/2020 09.59, Eli Zaretskii wrote: >> Cc: emacs-devel@gnu.org >> From: Clément Pit-Claudel >> Date: Mon, 18 May 2020 22:44:27 -0400 >> >>>> In an earlier thread, you mentioned programming font ligatures — wouldn't it be very common to deconstruct such ligatures, like → into ->? >>> >>> No, I don't think so. Why would this be common? >> >> I thought it would be the default. Emacs shows →, and you can put the point either before (|→), in the middle (-|>), or after (→|). > > Doesn't sound as a useful default to me. It could be an optional > feature, though. Do we know of other editors that support ligatures but chose not to support moving through a composed character? If not, that would be a fairly strong signal that it's a reasonable default, I'd expect. >> Here's a fairly common case: when writing html or XML, you may type <, then >, then press C-b and type the tag name; or you may use < and a paredit-like setup that inserts the > automatically. If the font has a ligature for <> and you can't put the point in the middle, this breaks. Same for || — the notation |x| { … } is used for lambdas in some languages; if you type || then try to move the point back inside the composed || glyph it won't work. > > Sounds like a bug or misfeature that needs a solution, not necessarily > the one that's been proposed here. Possibly! But the feature discussed here seems to fit the bill pretty perfectly, so … > For example, how about a special > insert command that would disable ligation with the character it > inserts? Would that command be called automatically, or would it require a different input? I don't think Emacs can guess whether it should enable or disable ligation, so I imagine you mean different input, but that doesn't sound pleasant to use, so maybe I'm misunderstanding?