From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Shahid Newsgroups: gmane.emacs.bugs Subject: bug#30610: clarify linux-mode usage from Lisp Date: Sun, 25 Feb 2018 15:12:54 -0500 Message-ID: <87a7vwkeux.fsf@gmail.com> References: <87d10skfna.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519609810 21915 195.159.176.226 (26 Feb 2018 01:50:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 01:50:10 +0000 (UTC) User-Agent: mu4e 1.0-alpha3; emacs 26.0.91 To: 30610@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 26 02:50:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eq7vZ-00059U-3D for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Feb 2018 02:50:05 +0100 Original-Received: from localhost ([::1]:56739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eq7xb-0002W0-Cj for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Feb 2018 20:52:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eq7xV-0002Vd-1Z for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2018 20:52:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eq7xR-0003wU-Vf for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2018 20:52:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eq7xR-0003wB-QV for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2018 20:52:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eq7xR-0001cT-Ha for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2018 20:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Shahid Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Feb 2018 01:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30610 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15196099186212 (code B ref -1); Mon, 26 Feb 2018 01:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Feb 2018 01:51:58 +0000 Original-Received: from localhost ([127.0.0.1]:60850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eq7xN-0001c7-K9 for submit@debbugs.gnu.org; Sun, 25 Feb 2018 20:51:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eq2fU-0000RX-Pv for submit@debbugs.gnu.org; Sun, 25 Feb 2018 15:13:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eq2fO-0007fH-Q6 for submit@debbugs.gnu.org; Sun, 25 Feb 2018 15:13:03 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53072) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eq2fO-0007f0-MJ for submit@debbugs.gnu.org; Sun, 25 Feb 2018 15:13:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eq2fN-00015x-Nv for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2018 15:13:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eq2fI-0007UE-Q7 for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2018 15:13:01 -0500 Original-Received: from mail-qt0-x233.google.com ([2607:f8b0:400d:c0d::233]:38462) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eq2fI-0007Tk-LT for bug-gnu-emacs@gnu.org; Sun, 25 Feb 2018 15:12:56 -0500 Original-Received: by mail-qt0-x233.google.com with SMTP id k13so16526175qtg.5 for ; Sun, 25 Feb 2018 12:12:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version; bh=VNKyIfckcIKt57FFrFYN3xRHJfdD501z4CCqZuaANy8=; b=qWcIOHIeQuTO6dlvFgTq+x+7Q1n2kGX7cdnrC9RwhkPwpeEI8wwRo98bRNGDUjO+Hg uGHAkOY7Ppd8c+bC0o48Hg3FUd+r9d0xwWvEMyEdMCLsHgj/jwW5eqkTI1F2ZFoV/8Xe J5ILH8fmSMJDqyHvWVTg+FF6B3hrKY3Fg/EwCTA97iDfo1Vl0tFX8pzzl1yoWwKuPdP8 bPpSzkfOgksgAAHmc4uNxmeC+SI+Vnl3UBrDL07uLc1BMR9q66UISuVca8lX8Xfb0TwW MmI/T3Z/sPxbGGKLvSm+wgktemoM1yxUc5JH+x3eS87LwNEZvJ5IOZolTVCjb00pUiHV DSjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject :in-reply-to:date:message-id:mime-version; bh=VNKyIfckcIKt57FFrFYN3xRHJfdD501z4CCqZuaANy8=; b=d0qoOSSkjbgAQsGVVeKjqaKqZ8Thm2uGlnRHBA6qSTmWdP6Fg0N+ezf3FzrOzeAaZZ xLOkzQjsBByXcdu7vCcQh5myZVf+XmH+q2AYL1Ylhk52lJwdtFS+Ff9dRDeuqGnTbEWG KYT06aA7QOIgymQGNcJPPYhA72bKy0itbj18m74yhy+fN+7nXjfAVlE/FZ+3J+YCyBL8 ThAAhlXGUEuhF0Vy+Q9seSePry1YVJNt4gX9pK+67wnpHJQu82v7VAb7g1vN6lOZSKcb Q/kf+z3wBqvxR3X3daSZkcOOhICZDTNBmu458yoEN5qCkT/HdwOF5VCZJxjn1b27Rnmy EYug== X-Gm-Message-State: APf1xPAqmJwIALgipvCDi/31MXJOvwaiDMd2GJb/3tlA9r8TP2nS7+hE RkNGQAiY4IhXBV7MHqSFguSfmd1f X-Google-Smtp-Source: AG47ELtnaVnYUvnEwMJ5+HlZxTWhZQkTTDL48GXXQG/z8FVUKe1oWuCw/ruhRgoAA/TbUCnqb2HBWQ== X-Received: by 10.237.34.205 with SMTP id q13mr13436930qtc.113.1519589575804; Sun, 25 Feb 2018 12:12:55 -0800 (PST) Original-Received: from amun (cpe-184-152-54-116.nyc.res.rr.com. [184.152.54.116]) by smtp.gmail.com with ESMTPSA id h29sm4515302qtk.94.2018.02.25.12.12.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 12:12:55 -0800 (PST) In-reply-to: <87d10skfna.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sun, 25 Feb 2018 20:51:57 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143664 Archived-At: Worth noting that this is my first patch to Emacs. Let me know if there's anything wrong with the way I submitted the patch. cheers, -js John Shahid writes: > From 04d261f836e5b000e8f6ed9e343417feaa8bc273 Mon Sep 17 00:00:00 2001 > From: John Shahid > Date: Sun, 25 Feb 2018 14:33:00 -0500 > Subject: [PATCH] clarifies linum-mode usage from Lisp > > --- > lisp/linum.el | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/lisp/linum.el b/lisp/linum.el > index 9df0c5d023..fa66d62bfe 100644 > --- a/lisp/linum.el > +++ b/lisp/linum.el > @@ -76,8 +76,12 @@ linum-delay > (define-minor-mode linum-mode > "Toggle display of line numbers in the left margin (Linum mode). > With a prefix argument ARG, enable Linum mode if ARG is positive, > -and disable it otherwise. If called from Lisp, enable the mode > -if ARG is omitted or nil. > +and disable it otherwise. > + > +When called from Lisp, toggles the mode if the argument is > +`toggle', disables the mode if the argument is a non-positive > +integer, and enables the mode otherwise (including if the > +argument is omitted or nil or a positive integer). > > Linum mode is a buffer-local minor mode." > :lighter "" ; for desktop.el