all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System)
To: Chong Yidong <cyd@stupidchicken.com>
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	[thread overview]
Message-ID: <handler.4452.D4452.125338891929661.ackdone@emacsbugs.donarmstrong.com> (raw)
In-Reply-To: 87pr9qzrmx.fsf@marauder.physik.uni-ulm.de

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

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

[-- Attachment #2: Type: message/rfc822, Size: 6660 bytes --]

From: Reiner Steib <reinersteib+gmane@imap.cc>
To: bug-gnu-emacs@gnu.org
Subject: 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer
Date: Wed, 16 Sep 2009 20:11:34 +0200
Message-ID: <87pr9qzrmx.fsf@marauder.physik.uni-ulm.de>

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/



[-- Attachment #3: Type: message/rfc822, Size: 1984 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: 4452-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4452: 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer
Date: Sat, 19 Sep 2009 15:36:49 -0400
Message-ID: <87bpl6bub2.fsf@cyd.mit.edu>

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.

      reply	other threads:[~2009-09-19 19:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87bpl6bub2.fsf@cyd.mit.edu>
2009-09-16 18:11 ` bug#4452: 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer Reiner Steib
2009-09-19 19:40   ` Emacs bug Tracking System [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=handler.4452.D4452.125338891929661.ackdone@emacsbugs.donarmstrong.com \
    --to=owner@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.