From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: MV via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72306: 29.3; rust-format-buffer doesn't work on rust-ts-mode Date: Fri, 26 Jul 2024 17:43:57 +0200 Message-ID: <6a111964-3fec-4365-a55c-7c8a43684eab@wanadoo.fr> Reply-To: MV Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28060"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 72306@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 18:48:43 2024 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 1sXO7W-0007Al-Nd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 18:48:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXO6n-0000wN-75; Fri, 26 Jul 2024 12:47:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXO6k-0000vk-FG for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 12:47:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXO6k-0005ux-6M for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 12:47:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXO6s-0005WO-PJ for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MV Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 16:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72306 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.172201246121175 (code B ref -1); Fri, 26 Jul 2024 16:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jul 2024 16:47:41 +0000 Original-Received: from localhost ([127.0.0.1]:39933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXO6V-0005VM-Qq for submit@debbugs.gnu.org; Fri, 26 Jul 2024 12:47:41 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXN7D-00017G-5S for submit@debbugs.gnu.org; Fri, 26 Jul 2024 11:44:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXN73-0006NF-FQ for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 11:44:09 -0400 Original-Received: from smtp-66.smtpout.orange.fr ([80.12.242.66] helo=msa.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXN6z-0002r2-Sx for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 11:44:08 -0400 Original-Received: from [192.168.1.2] ([82.66.147.146]) by smtp.orange.fr with ESMTPA id XN6rsO5CEj4pfXN6rsHOFu; Fri, 26 Jul 2024 17:43:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1722008639; bh=fk8nHQAX4VGJhHwAnbglEOQDdzJPMP4mthSA0YQjVT8=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=m+mSzMF6nAGlMqQti7PqoPZYsYf6NgB3b8dgBI1XA/9lEHssSBv0LlykJjbyjp4jc ipnqRqT3ioV8EhnQaGsBdi0UNsBBNfcFH7YV2vcwHI6LXV74ualuRM29LWmJg202sg g6lMlZCLelJtW4Ao+QNbny+fnaLY8v+9kv0uBQaeH/DxFFGWDMXCpInBFUpO4zNMoF kT6kedcZqUOoVmREygrpPfn+Z/N0K1kMEYuGC5CWtcb7NqBDGi4ooKgWjp12lvaVzQ 5ITeoOyU/j9fMh0wcNNZmBwJ0NTx6I7zRJXlPY2npbKZOnViwcr9o1Do3UbR8XdB5L /lF/8EGOLmbFA== X-ME-Helo: [192.168.1.2] X-ME-Auth: bS52aWV5QHdhbmFkb28uZnI= X-ME-Date: Fri, 26 Jul 2024 17:43:59 +0200 X-ME-IP: 82.66.147.146 Content-Language: en-US, fr Autocrypt: addr=m.viey@wanadoo.fr; keydata= xsFNBF44ZvEBEADKjnRoRXFgh0Gu3ntrRX8ZZcNHu1la9UhQY8fj4jod+pyP4lKtPJE+mz5H NqmBgZz1EoVKz7mQhatrYFKIBDHccduil1HPTfVuR5WJZcQ1Ehxw0x/oxceJtf3lKo2EafvP t69R3WMzpj0Yh2ECoDcWmV6WnZ+322/8BkAD89VKUIMaBwqlQRxjep7B9BXkcHk34Uo2ztsS hEMtIMEDCt2cZ3cGItIkDSJrxYZCIr8+ZqRHpnN74B6uO7KAmV7kyn2/wt4YKwIZn/chauXC LQkiU5nLPJ1Zv7uTk7Dq91BK4xwTxGe/W3eTOVtW0KoK6aMxESUslQ0wYcrpwTT2rbckxZZ4 vjdUuNMoLRLVXBtqwigpRZJClwcEOGszfwVQqn2futoDGljH43q9pQUEeSns1HG9o4s5qqAI 45VtSWL0CX07qV3udFnJNUyPgv7N/0wIjEm0Ypr14EpF9kGoSXOLZrbCLwozO7Pp9+FUS96G Ypyc18Nn+jYFPR/Ek28xm62dmvnumskY5tHfTZ2WCUXFXo5kt1fs9sHTZa68WpU4ts5UC5na ngvLI2r+iZEuBQ3rNc51ULRRNKiUqxFj9zfUbKUxPl9Qzi4PURPPZ1o1VaDbim/1WA8148A7 e1PSyZVDvShSrojDcOalxC+JWl6VhwqGM4CNAzE9ET9Q8PQDYwARAQABzTJNLlZpZXkgKENs ZWYgZGUgTWlja2HDq2wgVmlleSkgPG0udmlleUB3YW5hZG9vLmZyPsLBjgQTAQoAOBYhBK3m HYimhcMfH9Oxg7zYnCmuaGh5BQJeOGbxAhsDBQsJC Received-SPF: pass client-ip=80.12.242.66; envelope-from=m.viey@wanadoo.fr; helo=msa.smtpout.orange.fr 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 26 Jul 2024 12:47:35 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289373 Archived-At: --text follows this line-- Hello, On old rust-mode `C-c C-f' run rustmt in the current buffer. On the new rust-ts-mode this command fails with this error: "Wrong type argument: commandp, rust-format-buffer" Should it be possible to have this feature on the new rust-ts-mode ? Or is it possible I make program this command by myself ? I learnt emacs-lisp in the past and my be it's not so hard. In GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) Windowing system distributor 'The X.Org Foundation', version 11.0.12401000 System Description: NixOS 24.05 (Uakari) Configured using:  'configure  --prefix=/nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3  --disable-build-details --with-modules --with-x-toolkit=lucid  --with-cairo --with-xft --with-compress-install  --with-toolkit-scroll-bars --with-native-compilation  --without-imagemagick --with-mailutils --without-small-ja-dic  --with-tree-sitter --with-xinput2 --without-xwidgets --with-dbus  --with-selinux' 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 SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XAW3D XDBE XIM XINPUT2 XPM LUCID ZLIB Important settings:   value of $LC_MONETARY: fr_FR.UTF-8   value of $LC_NUMERIC: fr_FR.UTF-8   value of $LC_TIME: fr_FR.UTF-8   value of $LANG: en_US.UTF-8   locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect:   treemacs-filewatch-mode: t   treemacs-follow-mode: t   treemacs-git-mode: t   treemacs-fringe-indicator-mode: t   straight-use-package-mode: t   straight-package-neutering-mode: t   cua-mode: t   delete-selection-mode: t   tooltip-mode: t   global-eldoc-mode: t   show-paren-mode: t   electric-indent-mode: t   mouse-wheel-mode: t   file-name-shadow-mode: t   global-font-lock-mode: t   font-lock-mode: t   blink-cursor-mode: t   buffer-read-only: t   column-number-mode: t   line-number-mode: t   transient-mark-mode: (only . t)   auto-composition-mode: t   auto-encryption-mode: t   auto-compression-mode: t Load-path shadows: /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/site-lisp/site-start /home/mik/.emacs.d/elpa/transient-20240713.2102/transient hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/transient /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package-core hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package-core /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package-bind-key hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package-bind-key /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package-diminish hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package-diminish /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package-jump hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package-jump /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package-ensure hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package-ensure /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package-lint hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package-lint /home/mik/.emacs.d/elpa/use-package-20230426.2324/use-package-delight hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/use-package-delight /home/mik/.emacs.d/elpa/bind-key-20230203.2004/bind-key hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/use-package/bind-key /run/current-system/sw/share/emacs/site-lisp/mixal-mode hides /nix/store/agacf1wwj86fzywglfk5ja8q7989qlsm-emacs-29.3/share/emacs/29.3/lisp/progmodes/mixal-mode Features: (shadow sort mail-extr emacsbug message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils format-all language-id inheritenv vc-git diff-mode easy-mmode vc-dispatcher face-remap treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-interface treemacs-persistence treemacs-filewatch-mode filenotify treemacs-follow-mode treemacs-rendering treemacs-annotations treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator pulse color treemacs-faces treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils pfuture inline hl-line ht treemacs-logging treemacs-customization treemacs-macros s dash comp comp-cstr warnings icons opam-user-setup tango-dark-theme rstml-ts-mode rust-ts-mode c-ts-common treesit rstml-ts-mode-autoloads use-package-core straight-autoloads cl-extra help-mode straight cua-base delsel dockerfile-mode-autoloads dune-autoloads f-autoloads format-all-autoloads god-mode-autoloads haskell-mode-autoloads inheritenv-autoloads jtsx-autoloads language-id-autoloads magit-autoloads pcase git-commit-autoloads markdown-mode-autoloads magit-section-autoloads rust-mode-autoloads transient-autoloads treemacs-autoloads cfrs-autoloads posframe-autoloads ht-autoloads hydra-autoloads lv-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads dash-autoloads tuareg-autoloads rx caml-autoloads typescript-mode-autoloads web-mode-autoloads with-editor-autoloads info compat-autoloads yaml-mode-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv 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 nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 165149 12948)  (symbols 48 14064 0)  (strings 32 46397 3048)  (string-bytes 1 1636166)  (vectors 16 28778)  (vector-slots 8 561328 15360)  (floats 8 158 202)  (intervals 56 997 0)  (buffers 984 16))