From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22813: 24.5; doc string of `apropos-variable' - mention C-u Date: Fri, 26 Feb 2016 16:14:54 +0200 Message-ID: <834mcveext.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456496195 16485 80.91.229.3 (26 Feb 2016 14:16:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2016 14:16:35 +0000 (UTC) Cc: 22813@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 26 15:16:25 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aZJBq-000432-Gu for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 15:16:18 +0100 Original-Received: from localhost ([::1]:50095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZJBk-0005OO-Vh for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 09:16:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZJBe-0005Ne-D6 for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 09:16:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZJBa-0004b2-Cc for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 09:16:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZJBa-0004aq-8n for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 09:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZJBa-0004eP-39 for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 09:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2016 14:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22813 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22813-submit@debbugs.gnu.org id=B22813.145649611817821 (code B ref 22813); Fri, 26 Feb 2016 14:16:02 +0000 Original-Received: (at 22813) by debbugs.gnu.org; 26 Feb 2016 14:15:18 +0000 Original-Received: from localhost ([127.0.0.1]:47052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZJAs-0004dN-MA for submit@debbugs.gnu.org; Fri, 26 Feb 2016 09:15:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58162) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZJAr-0004dA-Cd for 22813@debbugs.gnu.org; Fri, 26 Feb 2016 09:15:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZJAi-0004Sk-BW for 22813@debbugs.gnu.org; Fri, 26 Feb 2016 09:15:12 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZJAi-0004SW-84; Fri, 26 Feb 2016 09:15:08 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2234 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aZJAg-0001GM-1T; Fri, 26 Feb 2016 09:15:06 -0500 In-reply-to: (message from Kaushal Modi on Fri, 26 Feb 2016 08:15:27 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113885 Archived-At: > From: Kaushal Modi > Date: Fri, 26 Feb 2016 08:15:27 -0500 > > --- a/lisp/apropos.el > +++ b/lisp/apropos.el > @@ -505,7 +505,7 @@ apropos-user-option > ;;;###autoload > (defun apropos-variable (pattern &optional do-not-all) > "Show variables that match PATTERN. > -When DO-NOT-ALL is non-nil, show user options only, i.e. behave > +With prefix argument DO-NOT-ALL non-nil, show user options only, i.e. behave > like `apropos-user-option'." Thanks. However, this is not the best way of expressing the behavior wrt prefix arguments. Here's an example of how we do this elsewhere: (defun jump-to-register (register &optional delete) "Move point to location stored in a register. If the register contains a file name, find that file. \(To put a file name in a register, you must use `set-register'.) If the register contains a window configuration (one frame) or a frameset \(all frames), restore that frame or all frames accordingly. First argument is a character, naming the register. Optional second arg non-nil (interactively, prefix argument) says to ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ delete any existing frames that the frameset doesn't mention. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^