Bug 43323

Summary: rpm-spec-mode in emacs-20.7-36 messes up C-u (universal-argument)!
Product: [Retired] Red Hat Raw Hide Reporter: Jonathan Kamens <jik>
Component: emacsAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-06-04 13:34:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 2001-06-03 06:27:52 UTC
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
\C-c\C-k
   (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 13:34:41 UTC
I've sent a message about to the author to ask his opinon.

Comment 2 Trond Eivind Glomsrxd 2001-06-04 21:35:28 UTC
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 14:19:28 UTC
*** Bug 44206 has been marked as a duplicate of this bug. ***