emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/ediff-help.el


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/lisp/ediff-help.el
Date: Tue, 04 Feb 2003 06:12:53 -0500

Index: emacs/lisp/ediff-help.el
diff -c emacs/lisp/ediff-help.el:1.7 emacs/lisp/ediff-help.el:1.8
*** emacs/lisp/ediff-help.el:1.7        Mon Jan  7 23:36:01 2002
--- emacs/lisp/ediff-help.el    Tue Feb  4 06:12:53 2003
***************
*** 24,30 ****
  ;;; Commentary:
  
  ;;; Code:
!        
  (provide 'ediff-help)
  
  ;; Compiler pacifier start
--- 24,30 ----
  ;;; Commentary:
  
  ;;; Code:
! 
  (provide 'ediff-help)
  
  ;; Compiler pacifier start
***************
*** 47,55 ****
    "The head of the full help message.")
  (defconst ediff-long-help-message-tail
    
"=====================|===========================|=============================
!     R -show registry |     = -compare regions    |  M   -show session group   
 
!     D -diff output   |     E -browse Ediff manual|  G   -send bug report      
 
!     i -status info   |     ? -help off           |  z/q -suspend/quit         
 
  
-------------------------------------------------------------------------------
  For help on a specific command:  Click Button 2 over it; or
                                         Put the cursor over it and type RET."
--- 47,55 ----
    "The head of the full help message.")
  (defconst ediff-long-help-message-tail
    
"=====================|===========================|=============================
!     R -show registry |     = -compare regions    |  M   -show session group
!     D -diff output   |     E -browse Ediff manual|  G   -send bug report
!     i -status info   |     ? -help off           |  z/q -suspend/quit
  
-------------------------------------------------------------------------------
  For help on a specific command:  Click Button 2 over it; or
                                         Put the cursor over it and type RET."
***************
*** 59,127 ****
    "
  p,DEL -previous diff |     | -vert/horiz split   | xy -copy buf X's region to 
Y
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region  
 
!    gx -goto X's point|                           |  ! -update diff regions    
 
    C-l -recenter      |    ## -ignore whitespace  |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X             
 
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output       
 
      ~ -rotate buffers|     m -wide display       |
  "
    "Help message usually used for 3-way comparison.
  Normally, not a user option.  See `ediff-help-message' for details.")
!   
  (defconst ediff-long-help-message-compare2
    "
  p,DEL -previous diff |     | -vert/horiz split   |a/b -copy A/B's region to 
B/A
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region  
 
!    gx -goto X's point|                           |  ! -update diff regions    
 
    C-l -recenter      |    ## -ignore whitespace  |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X             
 
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output       
 
!     ~ -swap variants |     m -wide display       |  
  "
    "Help message usually used for 2-way comparison.
  Normally, not a user option.  See `ediff-help-message' for details.")
!   
  (defconst ediff-long-help-message-narrow2
    "
  p,DEL -previous diff |     | -vert/horiz split   |a/b -copy A/B's region to 
B/A
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region  
 
!    gx -goto X's point|     % -narrow/widen buffs |  ! -update diff regions    
 
    C-l -recenter      |    ## -ignore whitespace  |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X             
 
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output       
 
!     ~ -swap variants |     m -wide display       |  
  "
    "Help message when comparing windows or regions line-by-line.
  Normally, not a user option.  See `ediff-help-message' for details.")
!   
  (defconst ediff-long-help-message-word-mode
    "
  p,DEL -previous diff |     | -vert/horiz split   | xy -copy buf X's region to 
Y
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |                           |                   
!    gx -goto X's point|     % -narrow/widen buffs |  ! -recompute diffs        
 
    C-l -recenter      |                           |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X             
 
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output       
 
!     ~ -swap variants |     m -wide display       |  
  "
    "Help message when comparing windows or regions word-by-word.
  Normally, not a user option.  See `ediff-help-message' for details.")
!   
  (defconst ediff-long-help-message-merge
    "
  p,DEL -previous diff |     | -vert/horiz split   |  x -copy buf X's region to 
C
  n,SPC -next diff     |     h -hilighting         |  r -restore buf C's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region  
 
!    gx -goto X's point|    ## -ignore whitespace  |  ! -update diff regions    
 
!   C-l -recenter      | #f/#h -focus/hide regions |  + -combine diff regions   
 
!   v/V -scroll up/dn  |     X -read-only in buf X | wx -save buf X             
 
!   </> -scroll lt/rt  |     m -wide display       | wd -save diff output       
 
!     ~ -swap variants |     s -shrink window C    |  / -show ancestor buff     
 
!                      |  $$ -show clashes only    |  & -merge w/new default    
 
                       |  $* -skip changed regions |
  "
    "Help message for merge sessions.
--- 59,127 ----
    "
  p,DEL -previous diff |     | -vert/horiz split   | xy -copy buf X's region to 
Y
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region
!    gx -goto X's point|                           |  ! -update diff regions
    C-l -recenter      |    ## -ignore whitespace  |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output
      ~ -rotate buffers|     m -wide display       |
  "
    "Help message usually used for 3-way comparison.
  Normally, not a user option.  See `ediff-help-message' for details.")
! 
  (defconst ediff-long-help-message-compare2
    "
  p,DEL -previous diff |     | -vert/horiz split   |a/b -copy A/B's region to 
B/A
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region
!    gx -goto X's point|                           |  ! -update diff regions
    C-l -recenter      |    ## -ignore whitespace  |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output
!     ~ -swap variants |     m -wide display       |
  "
    "Help message usually used for 2-way comparison.
  Normally, not a user option.  See `ediff-help-message' for details.")
! 
  (defconst ediff-long-help-message-narrow2
    "
  p,DEL -previous diff |     | -vert/horiz split   |a/b -copy A/B's region to 
B/A
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region
!    gx -goto X's point|     % -narrow/widen buffs |  ! -update diff regions
    C-l -recenter      |    ## -ignore whitespace  |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output
!     ~ -swap variants |     m -wide display       |
  "
    "Help message when comparing windows or regions line-by-line.
  Normally, not a user option.  See `ediff-help-message' for details.")
! 
  (defconst ediff-long-help-message-word-mode
    "
  p,DEL -previous diff |     | -vert/horiz split   | xy -copy buf X's region to 
Y
  n,SPC -next diff     |     h -hilighting         | rx -restore buf X's old 
diff
!     j -jump to diff  |                           |
!    gx -goto X's point|     % -narrow/widen buffs |  ! -recompute diffs
    C-l -recenter      |                           |
!   v/V -scroll up/dn  | #f/#h -focus/hide regions | wx -save buf X
!   </> -scroll lt/rt  |     X -read-only in buf X | wd -save diff output
!     ~ -swap variants |     m -wide display       |
  "
    "Help message when comparing windows or regions word-by-word.
  Normally, not a user option.  See `ediff-help-message' for details.")
! 
  (defconst ediff-long-help-message-merge
    "
  p,DEL -previous diff |     | -vert/horiz split   |  x -copy buf X's region to 
C
  n,SPC -next diff     |     h -hilighting         |  r -restore buf C's old 
diff
!     j -jump to diff  |     @ -auto-refinement    |  * -refine current region
!    gx -goto X's point|    ## -ignore whitespace  |  ! -update diff regions
!   C-l -recenter      | #f/#h -focus/hide regions |  + -combine diff regions
!   v/V -scroll up/dn  |     X -read-only in buf X | wx -save buf X
!   </> -scroll lt/rt  |     m -wide display       | wd -save diff output
!     ~ -swap variants |     s -shrink window C    |  / -show ancestor buff
!                      |  $$ -show clashes only    |  & -merge w/new default
                       |  $* -skip changed regions |
  "
    "Help message for merge sessions.
***************
*** 130,143 ****
  ;; The actual long help message.
  (ediff-defvar-local ediff-long-help-message ""
    "Normally, not a user option.  See `ediff-help-message' for details.")
!   
  (defconst ediff-brief-message-string
    " ? -quick help "
    "Contents of the brief help message.")
  ;; The actual brief help message
  (ediff-defvar-local ediff-brief-help-message ""
    "Normally, not a user option.  See `ediff-help-message' for details.")
!   
  (ediff-defvar-local ediff-brief-help-message-function nil
    "The brief help message that the user can customize.
  If the user sets this to a parameter-less function, Ediff will use it to
--- 130,143 ----
  ;; The actual long help message.
  (ediff-defvar-local ediff-long-help-message ""
    "Normally, not a user option.  See `ediff-help-message' for details.")
! 
  (defconst ediff-brief-message-string
    " ? -quick help "
    "Contents of the brief help message.")
  ;; The actual brief help message
  (ediff-defvar-local ediff-brief-help-message ""
    "Normally, not a user option.  See `ediff-help-message' for details.")
! 
  (ediff-defvar-local ediff-brief-help-message-function nil
    "The brief help message that the user can customize.
  If the user sets this to a parameter-less function, Ediff will use it to
***************
*** 157,163 ****
  Normally, the user shouldn't touch this.  However, if you want Ediff to
  start up with different help messages for different jobs, you can change
  the value of this variable and the variables `ediff-help-message-*' in
! `ediff-startup-hook'.") 
  
  
  ;; the keymap that defines clicks over the quick help regions
--- 157,163 ----
  Normally, the user shouldn't touch this.  However, if you want Ediff to
  start up with different help messages for different jobs, you can change
  the value of this variable and the variables `ediff-help-message-*' in
! `ediff-startup-hook'.")
  
  
  ;; the keymap that defines clicks over the quick help regions
***************
*** 199,210 ****
                              (overlay-get elt 'ediff-help-info))
                            (overlays-at pos))))
       )
!     
      (if (not (stringp cmd))
        (error "Hmm...  I don't see an Ediff command around here..."))
!     
      (ediff-documentation "Quick Help Commands")
!     
      (let (case-fold-search)
        (cond ((string= cmd "?") (re-search-forward "^`\\?'"))
            ((string= cmd "G") (re-search-forward "^`G'"))
--- 199,210 ----
                              (overlay-get elt 'ediff-help-info))
                            (overlays-at pos))))
       )
! 
      (if (not (stringp cmd))
        (error "Hmm...  I don't see an Ediff command around here..."))
! 
      (ediff-documentation "Quick Help Commands")
! 
      (let (case-fold-search)
        (cond ((string= cmd "?") (re-search-forward "^`\\?'"))
            ((string= cmd "G") (re-search-forward "^`G'"))
***************
*** 260,266 ****
        (next-line 1))
      (end-of-line)
      (current-column)))
!     
  
  (defun ediff-indent-help-message ()
    (let* ((shift (/ (max 0 (- (window-width (selected-window))
--- 260,266 ----
        (next-line 1))
      (end-of-line)
      (current-column)))
! 
  
  (defun ediff-indent-help-message ()
    (let* ((shift (/ (max 0 (- (window-width (selected-window))
***************
*** 273,279 ****
        (insert str)
        (beginning-of-line)
        (forward-line 1)))))
!       
  
  ;; compose the help message as a string
  (defun ediff-set-help-message ()
--- 273,279 ----
        (insert str)
        (beginning-of-line)
        (forward-line 1)))))
! 
  
  ;; compose the help message as a string
  (defun ediff-set-help-message ()
***************
*** 282,288 ****
                    (or (symbolp ediff-long-help-message-function)
                        (consp ediff-long-help-message-function)))
               (funcall ediff-long-help-message-function))
!             (ediff-word-mode 
               (concat ediff-long-help-message-head
                       ediff-long-help-message-word-mode
                       ediff-long-help-message-tail))
--- 282,288 ----
                    (or (symbolp ediff-long-help-message-function)
                        (consp ediff-long-help-message-function)))
               (funcall ediff-long-help-message-function))
!             (ediff-word-mode
               (concat ediff-long-help-message-head
                       ediff-long-help-message-word-mode
                       ediff-long-help-message-tail))
***************
*** 290,296 ****
               (concat ediff-long-help-message-head
                       ediff-long-help-message-narrow2
                       ediff-long-help-message-tail))
!             (ediff-merge-job 
               (concat ediff-long-help-message-head
                       ediff-long-help-message-merge
                       ediff-long-help-message-tail))
--- 290,296 ----
               (concat ediff-long-help-message-head
                       ediff-long-help-message-narrow2
                       ediff-long-help-message-tail))
!             (ediff-merge-job
               (concat ediff-long-help-message-head
                       ediff-long-help-message-merge
                       ediff-long-help-message-tail))
***************
*** 298,308 ****
               (concat ediff-long-help-message-head
                       ediff-long-help-message-compare3
                       ediff-long-help-message-tail))
!             (t 
               (concat ediff-long-help-message-head
                       ediff-long-help-message-compare2
                       ediff-long-help-message-tail))))
!   (setq ediff-brief-help-message 
        (cond ((and ediff-brief-help-message-function
                    (or (symbolp ediff-brief-help-message-function)
                        (consp ediff-brief-help-message-function)))
--- 298,308 ----
               (concat ediff-long-help-message-head
                       ediff-long-help-message-compare3
                       ediff-long-help-message-tail))
!             (t
               (concat ediff-long-help-message-head
                       ediff-long-help-message-compare2
                       ediff-long-help-message-tail))))
!   (setq ediff-brief-help-message
        (cond ((and ediff-brief-help-message-function
                    (or (symbolp ediff-brief-help-message-function)
                        (consp ediff-brief-help-message-function)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]