From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tyler Grinn Newsgroups: gmane.emacs.bugs Subject: bug#51041: 28.0.60; toggle-truncate-lines should not print message Date: Tue, 05 Oct 2021 13:39:43 -0400 Message-ID: <8735pf1icg.fsf@tyler-hp.tygr.info> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4761"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) To: 51041@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 05 20:19:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mXp1x-00011A-9J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 20:19:09 +0200 Original-Received: from localhost ([::1]:45410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXp1l-0004vI-F8 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 14:19:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXomN-0007VS-NV for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 14:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXomM-0004QO-Tu for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 14:03:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXomL-0006Fk-Pi for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 14:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tyler Grinn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Oct 2021 18:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51041 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163345694323984 (code B ref -1); Tue, 05 Oct 2021 18:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Oct 2021 18:02:23 +0000 Original-Received: from localhost ([127.0.0.1]:41866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXolf-0006Ei-Ko for submit@debbugs.gnu.org; Tue, 05 Oct 2021 14:02:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXoZk-0005vD-H3 for submit@debbugs.gnu.org; Tue, 05 Oct 2021 13:50:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXoZj-0000hp-QP for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 13:50:00 -0400 Original-Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:42548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXoZh-00042n-Uq for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 13:49:59 -0400 Original-Received: by mail-qv1-xf34.google.com with SMTP id z3so163267qvl.9 for ; Tue, 05 Oct 2021 10:49:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=IfvqKx3cUUx+FvAQ+lLy4QPQ2IAL2p+YtEXOwKr+Tkg=; b=QtKUyc7Gn1ylJQac2UYAVDtgKNmBbgHt2tqMAA1Z5DfRVTUBZRdWLyhzK9z0lXx+js SwAsJ1zargrfB9ZfMuADx9FaahUOP1OHW/jqlcg5g7UyO5Vzqbk0jmCU85leNGcCT4u5 HuhiL4OFr0Fq1yMSeFQu0+P2DOoeRkFByH0XscngWICSni2h32Q6tpbtfaNfHrYaisCo 5yr5cUK4qBsaPxb6gYXIOlVJyylaQxVYbEx3ZOBf80Xk5c4Ys0S5c0O+ictfauCVcnO6 e7ownWgGeNLXTt4IBInXX72lFPFtAivtr4H672+qoubquV/yjHNcYQKGUEeOaH9mrlA5 TW/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=IfvqKx3cUUx+FvAQ+lLy4QPQ2IAL2p+YtEXOwKr+Tkg=; b=YDnSd/z2fJaQFBXMOiLyMrgQ01XNGGG2WvJuFuQt8mS6K2qz9tAzwxZN/dMZ/i95sB VsyIdTc51ASRc2uzrPE6HbrdbzJotdr5KCLoKeL8unR+FM1mRwk5Itjg12SJ2arL1O0g y4Oc3zRZm2HGSjs4vHcHaJi6gmYQqKIv6hfxqP8hM7+ADoHelahnuIcabOYdioq8h93i JEWjBlgUGthat8LcZKwP+U3AW3CaBpGz+fzXOqaNUqCwsGaxJz2r6Nmwpy8eNAD0joJ3 c04XPn+NKTDrPdiubB2A8xhLXCZMza76yThtqbVfwADvarf+1gSj7uam3eLp9hswj2tD 0IqA== X-Gm-Message-State: AOAM532CqUtBgyfQWYJRh095DApU2fZ0y57Hnh3CgCDTEjjMf2RdyaY9 iGVliLWPihGmXSC5BVtGpifRSawFCIqx4Q== X-Google-Smtp-Source: ABdhPJz57RYUzc/V8sFwEib0Uo58T7Ktb4CyDjPSQ5vtABxItCXjekH65j5KoJ8dTM+GrbF0psy5Yw== X-Received: by 2002:a0c:cc84:: with SMTP id f4mr30296645qvl.14.1633456196441; Tue, 05 Oct 2021 10:49:56 -0700 (PDT) Original-Received: from tyler-hp ([2601:410:4301:3e90::7c4]) by smtp.gmail.com with ESMTPSA id c139sm9938768qkg.2.2021.10.05.10.49.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 10:49:55 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::f34; envelope-from=tylergrinn@gmail.com; helo=mail-qv1-xf34.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 05 Oct 2021 14:02:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216483 Archived-At: --=-=-= Content-Type: text/plain (toggle-truncate-lines t) Prints the message "Truncate long lines enabled". When called from elisp, this message should be ignored. If called interactively, the message should be displayed. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=grinn-1.diff Content-Description: toggle truncate lines patch diff --git a/lisp/simple.el b/lisp/simple.el index 3695415163..0df66ab8a8 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8313,13 +8313,14 @@ toggle-truncate-lines (if (eq buffer (window-buffer window)) (set-window-hscroll window 0))) nil t))) - (message "Truncate long lines %s%s" - (if truncate-lines "enabled" "disabled") - (if (and truncate-lines visual-line-mode) - (progn - (visual-line-mode -1) - (format-message " and `visual-line-mode' disabled")) - ""))) + (let ((disable-vlm (and truncate-lines visual-line-mode))) + (if disable-vlm (visual-line-mode -1)) + (if (called-interactively-p 'any) + (message "Truncate long lines %s%s" + (if truncate-lines "enabled" "disabled") + (if disable-vlm + (format-message " and `visual-line-mode' disabled") + ""))))) (defun toggle-word-wrap (&optional arg) "Toggle whether to use word-wrapping for continuation lines. --=-=-= Content-Type: text/plain In GNU Emacs 28.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-10-04 built on tyler-hp Repository revision: 3a9d5f04fb23cc89797f5d5102607c790440201e Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-mailutils --with-cairo --with-native-compilation --with-json --with-modules --with-gnutls --with-harfbuzz --with-xwidgets --prefix=/home/tyler/code/emacs 'CFLAGS=-O3 -mtune=native -march=native -fomit-frame-pointer'' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 70085 8512) (symbols 48 6642 0) (strings 32 19589 1584) (string-bytes 1 672318) (vectors 16 14113) (vector-slots 8 298530 14069) (floats 8 22 31) (intervals 56 331 1) (buffers 992 11)) --=-=-=--