bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#4452: marked as done (23.1; sh-learn-buffer-indent unexpectedly disp


From: Emacs bug Tracking System
Subject: bug#4452: marked as done (23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer)
Date: Sat, 19 Sep 2009 19:40:15 +0000

Your message dated Sat, 19 Sep 2009 15:36:49 -0400
with message-id <87bpl6bub2.fsf@cyd.mit.edu>
and subject line Re: bug#4452: 23.1; sh-learn-buffer-indent unexpectedly 
displays *indent* buffer
has caused the Emacs bug report #4452,
regarding 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4452: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4452
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems
--- Begin Message --- Subject: 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer Date: Wed, 16 Sep 2009 20:11:34 +0200 User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux)
Hi,

when sh-learn-buffer-indent it t, an *indent* buffer is displayed
unexpectedly in certain situations.

To reproduce:

- Start `emacs -Q'

- M-: (add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent) RET

- Do `M-x cvs-update RET' on a working directory with some *.sh file.

- Do `=' (cvs-mode-diff)

- The window layout is now:

  +-------------+        
  | *cvs*       |  
  |             |  
  +-------------+
  | *cvs-diff*  |
  |             |  
  +-------------+

- Do `C-x o' (other-window) to jump to the *cvs-diff* buffer.

- Move around to the first diff hunk, hit `C-c C-c' (diff-goto-source)

- Expected behavior:

  +-------------+        
  | foo.sh      |  
  |             |  
  +-------------+
  | *cvs-diff*  |
  |             |  
  +-------------+

- Actual behavior (Bug):

  +-------------+        
  | *indent*    |  
  |             |  
  +-------------+
  | foo.sh      |
  |             |  
  +-------------+

- Content of *indent* (Occur mode):

| Indentation values for buffer foo.sh.
| 5 indentation variables have different values:
| 
| 61: Variable sh-indent-for-continuation was set to 0
| 60:   but was previously set to 7
| 62: Variable sh-indent-for-continuation was set to 4
| 61:   but was previously set to 0
| 91: Variable sh-indent-for-continuation was set to 2
| 62:   but was previously set to 4
| 99: Variable sh-indent-for-continuation was set to 4
| 91:   but was previously set to 2
| 100: Variable sh-indent-for-continuation was set to 2
| 99:   but was previously set to 4
| 
| Comments follow default indentation.
| 
| Initial value of sh-basic-offset: 4
| Suggested sh-basic-offset:  2
| 
| Learned variable settings:
|   sh-indent-for-case-label 0
|   sh-indent-after-function 2
|   sh-indent-after-if 2
|   sh-indent-for-else 0
|   sh-indent-for-fi 0
|   sh-indent-after-loop-construct 2
|   sh-indent-for-continuation 2
|   sh-indent-for-done 0
|   sh-indent-after-open 2
|   sh-indent-comment t

In GNU Emacs 23.1.1 (i386-mingw-nt6.0.6001)
 of 2009-07-30 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 6.0.6001
configured using `configure --with-gcc (4.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: DEU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  diff-auto-refine-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> C-x 
5 f . e <tab> m <tab> i n i <tab> . <tab> <return> 
<help-echo> C-s s h - C-a <down-mouse-1> <mouse-movement> 
<mouse-movement> <drag-mouse-1> <switch-frame> <down-mouse-1> 
<mouse-1> M-x i e <tab> <return> <S-insert> <return> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> M-x c v s - u <tab> <return> 
<up> <up> <up> <left> <end> <home> C-k <switch-frame> 
<down-mouse-1> <mouse-movement> <mouse-1> <help-echo> 
<help-echo> <switch-frame> <down-mouse-1> <mouse-1> 
<down-mouse-1> <mouse-1> <S-insert> <return> <help-echo> 
<help-echo> <down-mouse-1> <mouse-1> <end> <left> <up> 
<return> C-x b * c v <tab> <return> <up> <up> <up> 
<up> = <down-mouse-1> <mouse-1> C-c C-c M-x C-g C-g 
C-x 5 b s c r <home> * <end> <tab> <return> M-x r e 
p o <tab> r <tab> <return>

Recent messages:
line 109
line 110
line 111
line 112
line 113
basic-offset is probably 2
Mark set
Hunk already applied
Quit [2 times]
Making completion list...

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



--- End Message ---
--- Begin Message --- Subject: Re: bug#4452: 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer Date: Sat, 19 Sep 2009 15:36:49 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Reiner Steib <reinersteib+gmane@imap.cc> writes:

> $ cd /path/to/trunk/emacs
> $ cp -p autogen.sh autogen.sh.bak 
> $ head -n730 config.guess >> autogen.sh 
> $ emacs-23-1 -Q \
>    --eval "(add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent)" \
>    -f cvs-update
>
> - Hit RET (to confirm cvs directory)
> - Move to the line with autogen.sh and do `=' (cvs-mode-diff)
> - The window layout is *cvs* / *cvs-diff* (upper / lower window)
> - Do `C-x o' (other-window) to jump to the *cvs-diff* buffer.
> - Do `M->'
> - Hit `C-c C-c' (diff-goto-source)
> - The window layout is *indent* / autogen.sh (upper / lower window)

Thanks, I've checked in a fix.

--- End Message ---

reply via email to

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