Bug 43323 - rpm-spec-mode in emacs-20.7-36 messes up C-u (universal-argument)!
rpm-spec-mode in emacs-20.7-36 messes up C-u (universal-argument)!
Product: Red Hat Raw Hide
Classification: Retired
Component: emacs (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Aaron Brown
: 44206 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2001-06-03 02:27 EDT by Jonathan Kamens
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-06-04 09:34:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jonathan Kamens 2001-06-03 02:27:52 EDT
This line in rpm-spec-mode.el:

  (define-key rpm-spec-mode-map "\C-u\C-c\C-i" 'rpm-change-tag)

Makes C-u stop working properly as a universal argument when editing spec
files.  This is now what you need to do here.  What you need to do here is
something like this:

--- rpm-spec-mode.el	2001/06/03 06:30:17	1.1
+++ rpm-spec-mode.el	2001/06/03 06:29:47
@@ -325,7 +325,6 @@
   (define-key rpm-spec-mode-map "\C-cxt" 'rpm-toggle-test)
   ;;May be better to have movement commands on \C-ck, and build on
   (define-key rpm-spec-mode-map "\C-c\C-i" 'rpm-insert-tag)
-  (define-key rpm-spec-mode-map "\C-u\C-c\C-i" 'rpm-change-tag)
   (define-key rpm-spec-mode-map "\C-c\C-n" 'rpm-forward-section)
   (define-key rpm-spec-mode-map "\C-c\C-p" 'rpm-backward-section)
   (define-key rpm-spec-mode-map "\C-c\C-t" 'rpm-insert-true-prefix)
@@ -659,9 +658,11 @@
       (message "Group tag not found..."))))
 (defun rpm-insert-tag (&optional arg)
-  "Insert a tag."
+  "Insert or change a tag."
   (interactive "p")
-  (rpm-insert))
+  (if current-prefix-arg
+      (rpm-change)
+    (rpm-insert)))
 (defun rpm-change-tag (&optional arg)
   "Change a tag."
Comment 1 Trond Eivind Glomsrxd 2001-06-04 09:34:41 EDT
I've sent a message about to the author to ask his opinon.
Comment 2 Trond Eivind Glomsrxd 2001-06-04 17:35:28 EDT
New rpm-spec-mode.el included in xemacs-21.1.14-11
 and emacs-20.7-37
Comment 3 Trond Eivind Glomsrxd 2001-06-12 10:19:28 EDT
*** Bug 44206 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.