From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 13:01:07 2010 Received: (at submit) by debbugs.gnu.org; 26 May 2010 17:01:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHJyc-0000TY-Er for submit@debbugs.gnu.org; Wed, 26 May 2010 13:01:06 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHJya-0000T9-PG for submit@debbugs.gnu.org; Wed, 26 May 2010 13:01:05 -0400 Received: from lists.gnu.org ([199.232.76.165]:36652) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OHJyW-0002u8-2N for submit@debbugs.gnu.org; Wed, 26 May 2010 13:01:00 -0400 Received: from [140.186.70.92] (port=45687 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHJyU-0001Bl-K8 for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 13:00:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHJuF-00077h-Iu for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 12:56:36 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:52263) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHJuF-00077Q-Ff for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 12:56:35 -0400 Received: by gyg4 with SMTP id 4so4336286gyg.0 for ; Wed, 26 May 2010 09:56:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=6mgzZtwL2f4tWrIhyg18mVJCsFqL2URi8gkbbnPtdm0=; b=wvSYXcQSKRT/M9mFKcqHCOwPivpAgXbNV9tS6iRw4gqEfyoxaOWM75Y+RoknIx7Ayu COF4FBPfxgNa3Kr94E38IBe7OHJUZoq7htA43S2UddnmspdgMV++Roqgoqg0v1AhTsYX QCSXLq1ITZu4TetUzpGXXy38E/wtTPxjna2CU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=fg6191/o736LEIMd5PYpIwOIG+UGl7sifvliqJqGZ4cowEVnoFzoYlKyPmqV4bTu5X hg8rGpBF6BxhWnZjNfyFEvDPM24RjWye1iO9BdGdU/KKKIpMncWyzvUeCR4TsTFygBLd n8abrJu/3BAI4HV1VIizpt6hco9fj35Pdd2mQ= Received: by 10.101.158.19 with SMTP id k19mr11316263ano.220.1274892993671; Wed, 26 May 2010 09:56:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.177.20 with HTTP; Wed, 26 May 2010 09:56:13 -0700 (PDT) From: Lennart Borgman Date: Wed, 26 May 2010 18:56:13 +0200 Message-ID: Subject: Could indent-tabs-mode etc be made minor modes? To: Emacs Bugs Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) I just saw on EmacsWiki a list of minor modes that do not have a command for turning them on, for example indent-tabs-mode. This is instead a defcustom. Could this be turned into a global minor mode, for example with something l= ike (define-minor-mode indent-tabs-mode "test" :global t :variable indent-tabs-mode) If so then I think it should be done, because the current situation is a bit confusing. The minor modes without commands to turn them on that was mentioned was: =E2=80=98adaptive-fill-mode=E2=80=99 =E2=80=98auto-hscroll-mode=E2=80=99 =E2=80=98indent-tabs-mode=E2=80=99 =E2=80=98shift-select-mode=E2=80=99 =E2=80=98ediff-word-mode=E2=80=99 From debbugs-submit-bounces@debbugs.gnu.org Mon May 31 16:32:58 2010 Received: (at 6276) by debbugs.gnu.org; 31 May 2010 20:32:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJBfO-00080a-B9 for submit@debbugs.gnu.org; Mon, 31 May 2010 16:32:58 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJBfN-00080U-Dt for 6276@debbugs.gnu.org; Mon, 31 May 2010 16:32:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGK5A0xMCpdY/2dsb2JhbACeKXK/T4UWBIxM X-IronPort-AV: E=Sophos;i="4.53,335,1272859200"; d="scan'208";a="66435059" Received: from 76-10-151-88.dsl.teksavvy.com (HELO pastel.home) ([76.10.151.88]) by ironport2-out.pppoe.ca with ESMTP; 31 May 2010 16:32:55 -0400 Received: by pastel.home (Postfix, from userid 20848) id 2257B81F8; Mon, 31 May 2010 16:32:55 -0400 (EDT) From: Stefan Monnier To: Lennart Borgman Subject: Re: bug#6276: Could indent-tabs-mode etc be made minor modes? Message-ID: References: Date: Mon, 31 May 2010 16:32:55 -0400 In-Reply-To: (Lennart Borgman's message of "Wed, 26 May 2010 18:56:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 6276 Cc: 6276@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) > I just saw on EmacsWiki a list of minor modes that do not have a > command for turning them on, for example indent-tabs-mode. This is > instead a defcustom. > Could this be turned into a global minor mode, for example with > something like Sounds OK to me. > (define-minor-mode indent-tabs-mode > "test" > :global t > :variable indent-tabs-mode) I'd rather keep the :variable uses to a minimum. In the case of indent-tabs-mode, maybe the better course of action is to move `indent-to' and `indent-tabs-mode' from C to Lisp. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon May 31 17:09:44 2010 Received: (at 6276) by debbugs.gnu.org; 31 May 2010 21:09:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJCEx-0008Gi-Us for submit@debbugs.gnu.org; Mon, 31 May 2010 17:09:44 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJCEw-0008Gd-3j for 6276@debbugs.gnu.org; Mon, 31 May 2010 17:09:42 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4VL9bfl029464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 31 May 2010 21:09:39 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4VKRQMQ001179; Mon, 31 May 2010 21:09:37 GMT Received: from abhmt008.oracle.com by acsmt355.oracle.com with ESMTP id 311492341275340115; Mon, 31 May 2010 14:08:35 -0700 Received: from dradamslap1 (/10.175.236.222) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 31 May 2010 14:08:35 -0700 From: "Drew Adams" To: "'Stefan Monnier'" , "'Lennart Borgman'" References: Subject: RE: bug#6276: Could indent-tabs-mode etc be made minor modes? Date: Mon, 31 May 2010 14:08:24 -0700 Message-ID: <3DE8428A0A0C4D5F87318D0E092E61CB@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcsBA+6dgT8i/r8jQXSDa7OYpYBzUwAAUsSQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090205.4C042594.0017:SCFMA922111,ss=1,fgs=0 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 6276 Cc: 6276@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) > > (define-minor-mode indent-tabs-mode "test" :global t > > :variable indent-tabs-mode) > > I'd rather keep the :variable uses to a minimum. > In the case of indent-tabs-mode, maybe the better course of > action is to move `indent-to' and `indent-tabs-mode' from C to Lisp. However you decide to do it, please make sure that this, in many people's .emacs, still works (across versions): (setq-default indent-tabs-mode nil) From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 09:23:05 2021 Received: (at 6276) by debbugs.gnu.org; 18 Jul 2021 13:23:05 +0000 Received: from localhost ([127.0.0.1]:55437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m56l7-0004c0-8Q for submit@debbugs.gnu.org; Sun, 18 Jul 2021 09:23:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m56l5-0004bG-Uv for 6276@debbugs.gnu.org; Sun, 18 Jul 2021 09:23:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zYXDg54217SP+0943aTvNNeosS573uDPIpOg2bFVlOI=; b=jntPz7n3v0up5G4bJ3kf8wA2FK putZw9gS1gyK0IMtHYUXqoE6W5QznoMibYouI9WtrX9FDtCL3ciLvCPfB6VOogTUzBcef3AVZMECP oCor2G4oxgMuh6HiAyGdtjQFUxF4yc+0jrx66qRba0RAYq1CkMUNYB6EO/JVf/peujhE=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m56kv-0000vd-W0; Sun, 18 Jul 2021 15:22:56 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#6276: Could indent-tabs-mode etc be made minor modes? References: X-Now-Playing: Suicide's _Suicide_: "Cheree" Date: Sun, 18 Jul 2021 15:22:53 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 31 May 2010 16:32:55 -0400") Message-ID: <87mtqjrc2a.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: >> I just saw on EmacsWiki a list of minor modes that do not have a >> command for turning them on, for example indent-tabs-mode. This is >> instead a defcustom. > >> Could this be turned into a globa [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 6276 Cc: Lennart Borgman , 6276@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >> I just saw on EmacsWiki a list of minor modes that do not have a >> command for turning them on, for example indent-tabs-mode. This is >> instead a defcustom. > >> Could this be turned into a global minor mode, for example with >> something like > > Sounds OK to me. > >> (define-minor-mode indent-tabs-mode >> "test" >> :global t >> :variable indent-tabs-mode) > > I'd rather keep the :variable uses to a minimum. > In the case of indent-tabs-mode, maybe the better course of action is to > move `indent-to' and `indent-tabs-mode' from C to Lisp. I see the charm of moving `indent-to' to Lisp, but it's a function that used a lot and should remain as quick as possible, I think. So I just went ahead with Lennart's suggestion to add the trivial minor mode instead. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 18 09:23:09 2021 Received: (at control) by debbugs.gnu.org; 18 Jul 2021 13:23:09 +0000 Received: from localhost ([127.0.0.1]:55440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m56lB-0004cG-Hl for submit@debbugs.gnu.org; Sun, 18 Jul 2021 09:23:09 -0400 Received: from quimby.gnus.org ([95.216.78.240]:34142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m56l9-0004bt-M4 for control@debbugs.gnu.org; Sun, 18 Jul 2021 09:23:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+MCI34Xw5ZBBkMu13jfEdCgRAS1Bfdd2WWFffL8kM60=; b=pCo/0oVnLWPnfoIaYpcrvbzijV pjuVXznHUxmrJaYCuKTeCYVFPxv+flH/Uar27vbWpZuq0Xb7V4crRqrdvfcOeP44X1WvzuKLIXp3o ie844pFnvkBnnP3bNxpEfjMBS30qPHOR8CC0IyDOfBXYchTmigqEnk5CNPy8X7JU2ZrU=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m56l2-0000vl-5e for control@debbugs.gnu.org; Sun, 18 Jul 2021 15:23:02 +0200 Date: Sun, 18 Jul 2021 15:22:59 +0200 Message-Id: <87lf63rc24.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #6276 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 6276 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 6276 28.1 quit From unknown Tue Jun 17 20:29:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 16 Aug 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator