From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Line wrap reconsidered Date: Tue, 26 May 2020 23:01:33 +0800 Message-ID: <871rn67naq.fsf@localhost> References: <92FF4412-04FB-4521-B6CE-52B08526E4E5@gmail.com> <83r1v7vmwy.fsf@gnu.org> <87imgjpihp.fsf@localhost> <83k10yvjlx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="111417"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue May 26 17:06:50 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 1jdbAI-000SuZ-43 for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 17:06:50 +0200 Original-Received: from localhost ([::1]:44276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdbAH-0005Qc-5F for ged-emacs-devel@m.gmane-mx.org; Tue, 26 May 2020 11:06:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdb9i-0004zV-Lv for emacs-devel@gnu.org; Tue, 26 May 2020 11:06:14 -0400 Original-Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:34679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdb9h-00007g-2g; Tue, 26 May 2020 11:06:14 -0400 Original-Received: by mail-pl1-x634.google.com with SMTP id d3so8802367pln.1; Tue, 26 May 2020 08:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=9vTPZgKGy7XFU+OAAMe2YF1UsjlejqoLgFemrv6rqTU=; b=VzOkq/1chXHXa213fgY/2ZyUi00Yu8i/cpAUCq5aLvp2gxH98nr1dY2MvAtOMnykHH mD/urDtgtHUgmrYQNE2PTnN+3gWQKw3vKJBfZluxdzMpYi2dfVm1GvILGv7O1oEPXrdm Zw7rdMTCR0jbX59I0aQ4mPkz5DFT7+TBeEc7EJpUWCDZRtAwe48worIroo1Nm/B1Uzrc WwmjD4ylYcciqUaylLr6UBHNaCaIy9+KX2ronnR7lQkkabB0Q6c5KdQ/MVICsU0QO4eM 5d/yMQSFYmtiaSbNKbCoHC8oFxTkD5Y65s6gHvFmaDsQTmIwwyOKij/0iWeIOwZJ8mWT HFSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=9vTPZgKGy7XFU+OAAMe2YF1UsjlejqoLgFemrv6rqTU=; b=EvZC2Ki6OfcYCMol956dhkYcTeLbHKQoVSvXsJPwsj8nhI7VIFiFc6hjNPZouZhSbF VPsZKPbNRd8ABUmakYKFkMFDFa8CJ/rqNEwSgcm2WIqDTeM0j4aTE5uoxYa2pEPsRbfp ysBNwOfE6HYWqf9/Xm2sYh6R9bhK0qUtfoJXGyC7inKqy+Vpxy0etQYzY8DRX8oowngK Cdji9TS08mWaatYBZ5xVd3dp1hLdlCG+r5mUvwHV+1/zrL0wDnFe+ymlicV/qpFaq8Ym Q8JR0FR+5CRSyCkF/kekwb70ObG+U+b//EUc84CgUGL0yYdEMlLA0A9Ck8WcIWawn3mS +dJA== X-Gm-Message-State: AOAM530sPXg3xkU2a32TzegMT8hsRsP3sF/xZ66rTkKJ1Svkasvdy5lI nvuGPZSEEWoFXU0LXp6nRKTNnjemJLGI2aWs X-Google-Smtp-Source: ABdhPJxYqqrRHn5u/NlxwPMmtszfNBW0S55U9Ha/bXIszRJrhUTj2AWzHuBDLVvB3+WGx2SgxKRLwA== X-Received: by 2002:a17:90b:360c:: with SMTP id ml12mr24729743pjb.205.1590505571072; Tue, 26 May 2020 08:06:11 -0700 (PDT) Original-Received: from localhost (97.151-89-23.rdns.scalabledns.com. [23.89.151.97]) by smtp.gmail.com with ESMTPSA id y65sm15820248pfb.76.2020.05.26.08.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 08:06:10 -0700 (PDT) In-Reply-To: <83k10yvjlx.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=yantar92@gmail.com; helo=mail-pl1-x634.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: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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:251455 Archived-At: > I don't understand what you mean by "not wrap the table". If > truncate-lines is nil, then long lines _will_ be wrapped. The Emacs > display simply don't have a third possibility: either long lines are > truncated or they are wrapped. Preventing wrapping can cause it to > wrap the line at some other place, but wrap it will. > > So I don't think I understand the request, and therefore don't see how > tables could be another relevant use case. Can you elaborate? I imagine 'cannot_wrap text property. Emacs would never wrap text at the character with 'cannot_wrap property set to non-nil. All the text in table can have this 'cannot_wrap property set to t. Then, all the lines in the table will never be wrapped, even when truncate-lines is set to nil. Best, Ihor Eli Zaretskii writes: >> From: Ihor Radchenko >> Cc: emacs-devel@gnu.org >> Date: Tue, 26 May 2020 09:55:46 +0800 >> >> The table becomes completely unreadable with line wrapping. It would >> make sense to have an option not to wrap the table even when lines are >> not truncated. > > I don't understand what you mean by "not wrap the table". If > truncate-lines is nil, then long lines _will_ be wrapped. The Emacs > display simply don't have a third possibility: either long lines are > truncated or they are wrapped. Preventing wrapping can cause it to > wrap the line at some other place, but wrap it will. > > So I don't think I understand the request, and therefore don't see how > tables could be another relevant use case. Can you elaborate? -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg