From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Changing the factor used in universal arugment Date: Sat, 24 Jun 2017 19:49:50 +0200 Message-ID: <86lgohs2bl.fsf@zoho.com> References: <87injle87j.fsf@vicarie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498326639 22908 195.159.176.226 (24 Jun 2017 17:50:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2017 17:50:39 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 24 19:50:33 2017 Return-path: Envelope-to: geh-help-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 1dOpCZ-0005Zt-7B for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jun 2017 19:50:31 +0200 Original-Received: from localhost ([::1]:40040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOpCe-0003Tt-Fn for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Jun 2017 13:50:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOpCD-0003Rw-4d for help-gnu-emacs@gnu.org; Sat, 24 Jun 2017 13:50:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOpCA-00054f-28 for help-gnu-emacs@gnu.org; Sat, 24 Jun 2017 13:50:09 -0400 Original-Received: from [195.159.176.226] (port=44774 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOpC9-00052c-Rn for help-gnu-emacs@gnu.org; Sat, 24 Jun 2017 13:50:05 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dOpBw-0003UV-4S for help-gnu-emacs@gnu.org; Sat, 24 Jun 2017 19:49:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:KQIyJJyu27NDmgQnTriduamApcM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113556 Archived-At: Narendra Joshi wrote: > How can I change the factor by which > universal argument changes on repetition from > 4 to say 2? For say having more > granularity there. 1. Use the source, Luke! First do `C-h k C-u' to find out what function is bound to the key and where it is defined. 2. Open the file: /usr/share/emacs/24.4/lisp/simple.el.gz 3. Copy these functions to some other file: universal-argument universal-argument-more 4. Change the 4s into 2s. [1] 5. Evaluate the functions (or entire new file) to have them overload the previous definitions. 6. Don't do it, Jeff! [1] Hey, same data hard-coded twice - not good! -- underground experts united http://user.it.uu.se/~embe8573