GNU bug report logs - #12437
24.2; Edits to buffer does not get written to the file (Issue Does not happen in 23.x version)

Previous Next

Package: emacs;

Reported by: Vishwajith Singh <vnsblore <at> gmail.com>

Date: Thu, 13 Sep 2012 22:19:01 UTC

Severity: normal

Tags: moreinfo, notabug

Found in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12437 in the body.
You can then email your comments to 12437 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12437; Package emacs. (Thu, 13 Sep 2012 22:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vishwajith Singh <vnsblore <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 13 Sep 2012 22:19:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vishwajith Singh <vnsblore <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; Edits to buffer does not get written to the file (Issue Does
	not happen in 23.x version)
Date: Thu, 13 Sep 2012 15:17:18 -0700
Issue: 24.2; Edits to buffer does not get written to the file whereas
the same file can be edited in emacs-23.3 without issues.

Here's what happens -

emacs 24.2
==========
1) Open a file with permissions "-rwxrwxrwx".
        The modeline shows "---" indicating that the file is writable.
2) Edit the file
        The modeline show "**-"
3) Save the file...
        The modebuffer shows "Saving file..."
        The modeline still shows "**-"
3)  Now try quitting the buffer.
       The modeline shows "Changes made to the file, quit anyway..."
   Strange message since the changes were saved in step 2.
   If you quit, the changes  are lost.

emacs 23.x
==========
1) OPen the same file in older emacs 23.X version and go thourgh the
same steps. No issues and the changes are savsed and the buffer can be
quit...

Why is this happening in 24.2?


==================================================================
In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-09-11 on lca-700s
Windowing system distributor `Hummingbird - Open Text', version 11.0.13800
Configured using:
 `configure '--prefix=/usr/local/emacs-24.2''

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: C
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Shell

Minor modes in effect:
  dirtrack-mode: t
  show-paren-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<backspace> 9 C-s C-s C-s C-s C-x C-s M-k C-g C-x C-s
M-k y l s SPC - l SPC <return> c d SPC - <return> l
s SPC - l SPC <return> c d SPC - <return> C-x <escape>
<escape> <return> <return> C-x C-s M-k y l s SPC -
l SPC h s <tab> s <tab> <return> l s SPC - a l <return>
C-x C-f h s _ a s <tab> <return> C-s C-s C-s <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <backspace> 9 C-x C-s M-k y <help-echo> <help-echo>
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-5>
<mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5>
<triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
<triple-down-mouse-5> <triple-mouse-5> <down-mouse-5>
<mouse-5> <down-mouse-1> <mouse-1> w h i c h SPC e
m a c s <return> n e d i t SPC h s <tab> a a <backspace>
<tab> <return> <down-mouse-1> <mouse-1> C-s C-s C-x
C-f M-p <return> C-s C-s C-s C-s C-x C-s <return> <backspace>
<return> C-x C-s M-k <backspace> <down-mouse-1> <mouse-1>
<down-mouse-1> <mouse-movement> <mouse-1> M-k y <f11>
<f12> e <backspace> a SPC | SPC g r e p SPC e m a c
s <return> <down-mouse-1> <mouse-movement> <mouse-1>
$ E M A S <backspace> C S _ O L D <return> <down-mouse-1>
<mouse-1> M-x r e p o <tab> r t <tab> - <tab> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <tab> <tab> <tab>
<tab> <tab> <tab> <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<tab> <tab> <return>

Recent messages:
Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
scroll-up: End of buffer
Mark saved where search started [2 times]
(No changes need to be saved)
Saving file /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler/hs_async_scheduler.v...
Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  n
Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
Mark set
/proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler
Making completion list... [2 times]

Load-path shadows:
None found.

Features:
(shadow mail-extr emacsbug message rfc822 mml mml-sec mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils executable tabify
verilog-mode skeleton compile diff ffap misearch multi-isearch make-mode
help-mode view pcmpl-unix autoinsert sunrise-commander tramp
tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr
password-cache format-spec tramp-loaddefs esh-var esh-io esh-cmd esh-ext
esh-proc esh-arg eldoc esh-groups eshell esh-util esh-module esh-mode
dired-aux desktop term ehelp electric sort hl-line find-dired disp-table
enriched dired-x dired derived jka-compr protbuf dirtrack vc-hg linum
paren cus-start cus-load ediff-trees ediff-merg ediff-diff ediff-wind
ediff-help ediff-util ediff-mult ediff-init ediff breadcrumb byte-opt
warnings bytecomp byte-compile cconv macroexp shell-command shell
pcomplete comint regexp-opt ansi-color ring column-marker color-theme cl
recentf tree-widget wid-edit easymenu tabbar easy-mmode hide-lines
hide-region advice help-fns advice-preload setnu ibs edmacro kmacro
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dynamic-setting font-render-setting x-toolkit x
multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12437; Package emacs. (Thu, 13 Sep 2012 22:34:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vishwajith Singh <vnsblore <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 24.2; Edits to buffer does not get written to the file (Issue
	Does not happen in 23.x version)
Date: Thu, 13 Sep 2012 15:32:00 -0700
There seems to be a subtle difference in the message between emacs
24.2 and emacs 23.3

When you try saving the file in emacs 24.2 the message is "Saving the file...."
But of course the changes do not get saved...

In emacs 23.3, the message is "Wrote file..."
And the changes get saved.

- V

On Thu, Sep 13, 2012 at 3:17 PM, Vishwajith Singh <vnsblore <at> gmail.com> wrote:
> Issue: 24.2; Edits to buffer does not get written to the file whereas
> the same file can be edited in emacs-23.3 without issues.
>
> Here's what happens -
>
> emacs 24.2
> ==========
> 1) Open a file with permissions "-rwxrwxrwx".
>         The modeline shows "---" indicating that the file is writable.
> 2) Edit the file
>         The modeline show "**-"
> 3) Save the file...
>         The modebuffer shows "Saving file..."
>         The modeline still shows "**-"
> 3)  Now try quitting the buffer.
>        The modeline shows "Changes made to the file, quit anyway..."
>    Strange message since the changes were saved in step 2.
>    If you quit, the changes  are lost.
>
> emacs 23.x
> ==========
> 1) OPen the same file in older emacs 23.X version and go thourgh the
> same steps. No issues and the changes are savsed and the buffer can be
> quit...
>
> Why is this happening in 24.2?
>
>
> ==================================================================
> In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
>  of 2012-09-11 on lca-700s
> Windowing system distributor `Hummingbird - Open Text', version 11.0.13800
> Configured using:
>  `configure '--prefix=/usr/local/emacs-24.2''
>
> 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: C
>   value of $XMODIFIERS: nil
>   locale-coding-system: nil
>   default enable-multibyte-characters: t
>
> Major mode: Shell
>
> Minor modes in effect:
>   dirtrack-mode: t
>   show-paren-mode: t
>   shell-dirtrack-mode: t
>   recentf-mode: t
>   tooltip-mode: t
>   mouse-wheel-mode: t
>   tool-bar-mode: t
>   menu-bar-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   blink-cursor-mode: t
>   auto-composition-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>   column-number-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>
> Recent input:
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <backspace> 9 C-s C-s C-s C-s C-x C-s M-k C-g C-x C-s
> M-k y l s SPC - l SPC <return> c d SPC - <return> l
> s SPC - l SPC <return> c d SPC - <return> C-x <escape>
> <escape> <return> <return> C-x C-s M-k y l s SPC -
> l SPC h s <tab> s <tab> <return> l s SPC - a l <return>
> C-x C-f h s _ a s <tab> <return> C-s C-s C-s <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <backspace> 9 C-x C-s M-k y <help-echo> <help-echo>
> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-5>
> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5>
> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
> <triple-down-mouse-5> <triple-mouse-5> <down-mouse-5>
> <mouse-5> <down-mouse-1> <mouse-1> w h i c h SPC e
> m a c s <return> n e d i t SPC h s <tab> a a <backspace>
> <tab> <return> <down-mouse-1> <mouse-1> C-s C-s C-x
> C-f M-p <return> C-s C-s C-s C-s C-x C-s <return> <backspace>
> <return> C-x C-s M-k <backspace> <down-mouse-1> <mouse-1>
> <down-mouse-1> <mouse-movement> <mouse-1> M-k y <f11>
> <f12> e <backspace> a SPC | SPC g r e p SPC e m a c
> s <return> <down-mouse-1> <mouse-movement> <mouse-1>
> $ E M A S <backspace> C S _ O L D <return> <down-mouse-1>
> <mouse-1> M-x r e p o <tab> r t <tab> - <tab> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <tab> <tab> <tab>
> <tab> <tab> <tab> <tab> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <tab> <tab> <return>
>
> Recent messages:
> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
> scroll-up: End of buffer
> Mark saved where search started [2 times]
> (No changes need to be saved)
> Saving file /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler/hs_async_scheduler.v...
> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  n
> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
> Mark set
> /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler
> Making completion list... [2 times]
>
> Load-path shadows:
> None found.
>
> Features:
> (shadow mail-extr emacsbug message rfc822 mml mml-sec mm-decode
> mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
> sendmail rfc2047 rfc2045 ietf-drums mail-utils executable tabify
> verilog-mode skeleton compile diff ffap misearch multi-isearch make-mode
> help-mode view pcmpl-unix autoinsert sunrise-commander tramp
> tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr
> password-cache format-spec tramp-loaddefs esh-var esh-io esh-cmd esh-ext
> esh-proc esh-arg eldoc esh-groups eshell esh-util esh-module esh-mode
> dired-aux desktop term ehelp electric sort hl-line find-dired disp-table
> enriched dired-x dired derived jka-compr protbuf dirtrack vc-hg linum
> paren cus-start cus-load ediff-trees ediff-merg ediff-diff ediff-wind
> ediff-help ediff-util ediff-mult ediff-init ediff breadcrumb byte-opt
> warnings bytecomp byte-compile cconv macroexp shell-command shell
> pcomplete comint regexp-opt ansi-color ring column-marker color-theme cl
> recentf tree-widget wid-edit easymenu tabbar easy-mmode hide-lines
> hide-region advice help-fns advice-preload setnu ibs edmacro kmacro
> time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
> tool-bar dnd fontset image fringe lisp-mode register page menu-bar
> rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
> facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
> tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
> czech european ethiopic indian cyrillic chinese case-table epa-hook
> jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
> cus-face files text-properties overlay sha1 md5 base64 format env
> code-pages mule custom widget hashtable-print-readable backquote
> make-network-process dynamic-setting font-render-setting x-toolkit x
> multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12437; Package emacs. (Thu, 13 Sep 2012 22:53:02 GMT) Full text and rfc822 format available.

Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vishwajith Singh <vnsblore <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 24.2; Edits to buffer does not get written to the file (Issue
	Does not happen in 23.x version)
Date: Thu, 13 Sep 2012 15:51:03 -0700
Is is possible that emacs 24.2 is not honoring the umask setting...?



On Thu, Sep 13, 2012 at 3:17 PM, Vishwajith Singh <vnsblore <at> gmail.com> wrote:
> Issue: 24.2; Edits to buffer does not get written to the file whereas
> the same file can be edited in emacs-23.3 without issues.
>
> Here's what happens -
>
> emacs 24.2
> ==========
> 1) Open a file with permissions "-rwxrwxrwx".
>         The modeline shows "---" indicating that the file is writable.
> 2) Edit the file
>         The modeline show "**-"
> 3) Save the file...
>         The modebuffer shows "Saving file..."
>         The modeline still shows "**-"
> 3)  Now try quitting the buffer.
>        The modeline shows "Changes made to the file, quit anyway..."
>    Strange message since the changes were saved in step 2.
>    If you quit, the changes  are lost.
>
> emacs 23.x
> ==========
> 1) OPen the same file in older emacs 23.X version and go thourgh the
> same steps. No issues and the changes are savsed and the buffer can be
> quit...
>
> Why is this happening in 24.2?
>
>
> ==================================================================
> In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
>  of 2012-09-11 on lca-700s
> Windowing system distributor `Hummingbird - Open Text', version 11.0.13800
> Configured using:
>  `configure '--prefix=/usr/local/emacs-24.2''
>
> 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: C
>   value of $XMODIFIERS: nil
>   locale-coding-system: nil
>   default enable-multibyte-characters: t
>
> Major mode: Shell
>
> Minor modes in effect:
>   dirtrack-mode: t
>   show-paren-mode: t
>   shell-dirtrack-mode: t
>   recentf-mode: t
>   tooltip-mode: t
>   mouse-wheel-mode: t
>   tool-bar-mode: t
>   menu-bar-mode: t
>   file-name-shadow-mode: t
>   global-font-lock-mode: t
>   font-lock-mode: t
>   blink-cursor-mode: t
>   auto-composition-mode: t
>   auto-encryption-mode: t
>   auto-compression-mode: t
>   column-number-mode: t
>   line-number-mode: t
>   transient-mark-mode: t
>
> Recent input:
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <backspace> 9 C-s C-s C-s C-s C-x C-s M-k C-g C-x C-s
> M-k y l s SPC - l SPC <return> c d SPC - <return> l
> s SPC - l SPC <return> c d SPC - <return> C-x <escape>
> <escape> <return> <return> C-x C-s M-k y l s SPC -
> l SPC h s <tab> s <tab> <return> l s SPC - a l <return>
> C-x C-f h s _ a s <tab> <return> C-s C-s C-s <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <left> <left> <left> <left> <left> <left> <left>
> <left> <backspace> 9 C-x C-s M-k y <help-echo> <help-echo>
> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-5>
> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5>
> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
> <triple-down-mouse-5> <triple-mouse-5> <down-mouse-5>
> <mouse-5> <down-mouse-1> <mouse-1> w h i c h SPC e
> m a c s <return> n e d i t SPC h s <tab> a a <backspace>
> <tab> <return> <down-mouse-1> <mouse-1> C-s C-s C-x
> C-f M-p <return> C-s C-s C-s C-s C-x C-s <return> <backspace>
> <return> C-x C-s M-k <backspace> <down-mouse-1> <mouse-1>
> <down-mouse-1> <mouse-movement> <mouse-1> M-k y <f11>
> <f12> e <backspace> a SPC | SPC g r e p SPC e m a c
> s <return> <down-mouse-1> <mouse-movement> <mouse-1>
> $ E M A S <backspace> C S _ O L D <return> <down-mouse-1>
> <mouse-1> M-x r e p o <tab> r t <tab> - <tab> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <tab> <tab> <tab>
> <tab> <tab> <tab> <tab> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <backspace> <backspace> <backspace> <backspace> <backspace>
> <tab> <tab> <return>
>
> Recent messages:
> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
> scroll-up: End of buffer
> Mark saved where search started [2 times]
> (No changes need to be saved)
> Saving file /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler/hs_async_scheduler.v...
> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  n
> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
> Mark set
> /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler
> Making completion list... [2 times]
>
> Load-path shadows:
> None found.
>
> Features:
> (shadow mail-extr emacsbug message rfc822 mml mml-sec mm-decode
> mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
> sendmail rfc2047 rfc2045 ietf-drums mail-utils executable tabify
> verilog-mode skeleton compile diff ffap misearch multi-isearch make-mode
> help-mode view pcmpl-unix autoinsert sunrise-commander tramp
> tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr
> password-cache format-spec tramp-loaddefs esh-var esh-io esh-cmd esh-ext
> esh-proc esh-arg eldoc esh-groups eshell esh-util esh-module esh-mode
> dired-aux desktop term ehelp electric sort hl-line find-dired disp-table
> enriched dired-x dired derived jka-compr protbuf dirtrack vc-hg linum
> paren cus-start cus-load ediff-trees ediff-merg ediff-diff ediff-wind
> ediff-help ediff-util ediff-mult ediff-init ediff breadcrumb byte-opt
> warnings bytecomp byte-compile cconv macroexp shell-command shell
> pcomplete comint regexp-opt ansi-color ring column-marker color-theme cl
> recentf tree-widget wid-edit easymenu tabbar easy-mmode hide-lines
> hide-region advice help-fns advice-preload setnu ibs edmacro kmacro
> time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
> tool-bar dnd fontset image fringe lisp-mode register page menu-bar
> rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
> facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
> tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
> czech european ethiopic indian cyrillic chinese case-table epa-hook
> jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
> cus-face files text-properties overlay sha1 md5 base64 format env
> code-pages mule custom widget hashtable-print-readable backquote
> make-network-process dynamic-setting font-render-setting x-toolkit x
> multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12437; Package emacs. (Thu, 13 Sep 2012 22:56:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vishwajith Singh <vnsblore <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 24.2; Edits to buffer does not get written to the file (Issue
	Does not happen in 23.x version)
Date: Thu, 13 Sep 2012 15:54:34 -0700
I found another user complaining about the same issue here -
http://forums.gentoo.org/viewtopic-p-7139116.html

But I am unable to figure out whether any hooks are getting executed
when I do a save-buffer


On Thu, Sep 13, 2012 at 3:51 PM, Vishwajith Singh <vnsblore <at> gmail.com> wrote:
> Is is possible that emacs 24.2 is not honoring the umask setting...?
>
>
>
> On Thu, Sep 13, 2012 at 3:17 PM, Vishwajith Singh <vnsblore <at> gmail.com> wrote:
>> Issue: 24.2; Edits to buffer does not get written to the file whereas
>> the same file can be edited in emacs-23.3 without issues.
>>
>> Here's what happens -
>>
>> emacs 24.2
>> ==========
>> 1) Open a file with permissions "-rwxrwxrwx".
>>         The modeline shows "---" indicating that the file is writable.
>> 2) Edit the file
>>         The modeline show "**-"
>> 3) Save the file...
>>         The modebuffer shows "Saving file..."
>>         The modeline still shows "**-"
>> 3)  Now try quitting the buffer.
>>        The modeline shows "Changes made to the file, quit anyway..."
>>    Strange message since the changes were saved in step 2.
>>    If you quit, the changes  are lost.
>>
>> emacs 23.x
>> ==========
>> 1) OPen the same file in older emacs 23.X version and go thourgh the
>> same steps. No issues and the changes are savsed and the buffer can be
>> quit...
>>
>> Why is this happening in 24.2?
>>
>>
>> ==================================================================
>> In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
>>  of 2012-09-11 on lca-700s
>> Windowing system distributor `Hummingbird - Open Text', version 11.0.13800
>> Configured using:
>>  `configure '--prefix=/usr/local/emacs-24.2''
>>
>> 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: C
>>   value of $XMODIFIERS: nil
>>   locale-coding-system: nil
>>   default enable-multibyte-characters: t
>>
>> Major mode: Shell
>>
>> Minor modes in effect:
>>   dirtrack-mode: t
>>   show-paren-mode: t
>>   shell-dirtrack-mode: t
>>   recentf-mode: t
>>   tooltip-mode: t
>>   mouse-wheel-mode: t
>>   tool-bar-mode: t
>>   menu-bar-mode: t
>>   file-name-shadow-mode: t
>>   global-font-lock-mode: t
>>   font-lock-mode: t
>>   blink-cursor-mode: t
>>   auto-composition-mode: t
>>   auto-encryption-mode: t
>>   auto-compression-mode: t
>>   column-number-mode: t
>>   line-number-mode: t
>>   transient-mark-mode: t
>>
>> Recent input:
>> <left> <left> <left> <left> <left> <left> <left> <left>
>> <left> <left> <left> <left> <left> <left> <left> <left>
>> <backspace> 9 C-s C-s C-s C-s C-x C-s M-k C-g C-x C-s
>> M-k y l s SPC - l SPC <return> c d SPC - <return> l
>> s SPC - l SPC <return> c d SPC - <return> C-x <escape>
>> <escape> <return> <return> C-x C-s M-k y l s SPC -
>> l SPC h s <tab> s <tab> <return> l s SPC - a l <return>
>> C-x C-f h s _ a s <tab> <return> C-s C-s C-s <left>
>> <left> <left> <left> <left> <left> <left> <left> <left>
>> <left> <left> <left> <left> <left> <left> <left> <left>
>> <left> <left> <left> <left> <left> <left> <left> <left>
>> <left> <backspace> 9 C-x C-s M-k y <help-echo> <help-echo>
>> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-5>
>> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5>
>> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
>> <triple-down-mouse-5> <triple-mouse-5> <down-mouse-5>
>> <mouse-5> <down-mouse-1> <mouse-1> w h i c h SPC e
>> m a c s <return> n e d i t SPC h s <tab> a a <backspace>
>> <tab> <return> <down-mouse-1> <mouse-1> C-s C-s C-x
>> C-f M-p <return> C-s C-s C-s C-s C-x C-s <return> <backspace>
>> <return> C-x C-s M-k <backspace> <down-mouse-1> <mouse-1>
>> <down-mouse-1> <mouse-movement> <mouse-1> M-k y <f11>
>> <f12> e <backspace> a SPC | SPC g r e p SPC e m a c
>> s <return> <down-mouse-1> <mouse-movement> <mouse-1>
>> $ E M A S <backspace> C S _ O L D <return> <down-mouse-1>
>> <mouse-1> M-x r e p o <tab> r t <tab> - <tab> <backspace>
>> <backspace> <backspace> <backspace> <backspace> <backspace>
>> <backspace> <backspace> <backspace> <backspace> <backspace>
>> <backspace> <backspace> <backspace> <backspace> <backspace>
>> <backspace> <backspace> <backspace> <tab> <tab> <tab>
>> <tab> <tab> <tab> <tab> <backspace> <backspace> <backspace>
>> <backspace> <backspace> <backspace> <backspace> <backspace>
>> <backspace> <backspace> <backspace> <backspace> <backspace>
>> <backspace> <backspace> <backspace> <backspace> <backspace>
>> <backspace> <backspace> <backspace> <backspace> <backspace>
>> <tab> <tab> <return>
>>
>> Recent messages:
>> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
>> scroll-up: End of buffer
>> Mark saved where search started [2 times]
>> (No changes need to be saved)
>> Saving file /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler/hs_async_scheduler.v...
>> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  n
>> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
>> Mark set
>> /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler
>> Making completion list... [2 times]
>>
>> Load-path shadows:
>> None found.
>>
>> Features:
>> (shadow mail-extr emacsbug message rfc822 mml mml-sec mm-decode
>> mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
>> sendmail rfc2047 rfc2045 ietf-drums mail-utils executable tabify
>> verilog-mode skeleton compile diff ffap misearch multi-isearch make-mode
>> help-mode view pcmpl-unix autoinsert sunrise-commander tramp
>> tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr
>> password-cache format-spec tramp-loaddefs esh-var esh-io esh-cmd esh-ext
>> esh-proc esh-arg eldoc esh-groups eshell esh-util esh-module esh-mode
>> dired-aux desktop term ehelp electric sort hl-line find-dired disp-table
>> enriched dired-x dired derived jka-compr protbuf dirtrack vc-hg linum
>> paren cus-start cus-load ediff-trees ediff-merg ediff-diff ediff-wind
>> ediff-help ediff-util ediff-mult ediff-init ediff breadcrumb byte-opt
>> warnings bytecomp byte-compile cconv macroexp shell-command shell
>> pcomplete comint regexp-opt ansi-color ring column-marker color-theme cl
>> recentf tree-widget wid-edit easymenu tabbar easy-mmode hide-lines
>> hide-region advice help-fns advice-preload setnu ibs edmacro kmacro
>> time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
>> tool-bar dnd fontset image fringe lisp-mode register page menu-bar
>> rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
>> facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
>> tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
>> czech european ethiopic indian cyrillic chinese case-table epa-hook
>> jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
>> cus-face files text-properties overlay sha1 md5 base64 format env
>> code-pages mule custom widget hashtable-print-readable backquote
>> make-network-process dynamic-setting font-render-setting x-toolkit x
>> multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12437; Package emacs. (Thu, 13 Sep 2012 23:06:01 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vishwajith Singh <vnsblore <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 24.2; Edits to buffer does not get written to the file (Issue
	Does not happen in 23.x version)
Date: Thu, 13 Sep 2012 16:04:18 -0700
Debugging...

emacs 23.3
Alt-X ielm
ELISP> (save_buffer)
The mode buffer prompts as "File to save in: ~/"

emacs 24.2
Alt-X ielm
ELISP (save-buffer)
nil

The issue seems to be with the save-buffer function or any hooks..? (Which...?)

Can anyone help me with any clues...



On Thu, Sep 13, 2012 at 3:54 PM, Vishwajith Singh <vnsblore <at> gmail.com> wrote:
> I found another user complaining about the same issue here -
> http://forums.gentoo.org/viewtopic-p-7139116.html
>
> But I am unable to figure out whether any hooks are getting executed
> when I do a save-buffer
>
>
> On Thu, Sep 13, 2012 at 3:51 PM, Vishwajith Singh <vnsblore <at> gmail.com> wrote:
>> Is is possible that emacs 24.2 is not honoring the umask setting...?
>>
>>
>>
>> On Thu, Sep 13, 2012 at 3:17 PM, Vishwajith Singh <vnsblore <at> gmail.com> wrote:
>>> Issue: 24.2; Edits to buffer does not get written to the file whereas
>>> the same file can be edited in emacs-23.3 without issues.
>>>
>>> Here's what happens -
>>>
>>> emacs 24.2
>>> ==========
>>> 1) Open a file with permissions "-rwxrwxrwx".
>>>         The modeline shows "---" indicating that the file is writable.
>>> 2) Edit the file
>>>         The modeline show "**-"
>>> 3) Save the file...
>>>         The modebuffer shows "Saving file..."
>>>         The modeline still shows "**-"
>>> 3)  Now try quitting the buffer.
>>>        The modeline shows "Changes made to the file, quit anyway..."
>>>    Strange message since the changes were saved in step 2.
>>>    If you quit, the changes  are lost.
>>>
>>> emacs 23.x
>>> ==========
>>> 1) OPen the same file in older emacs 23.X version and go thourgh the
>>> same steps. No issues and the changes are savsed and the buffer can be
>>> quit...
>>>
>>> Why is this happening in 24.2?
>>>
>>>
>>> ==================================================================
>>> In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
>>>  of 2012-09-11 on lca-700s
>>> Windowing system distributor `Hummingbird - Open Text', version 11.0.13800
>>> Configured using:
>>>  `configure '--prefix=/usr/local/emacs-24.2''
>>>
>>> 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: C
>>>   value of $XMODIFIERS: nil
>>>   locale-coding-system: nil
>>>   default enable-multibyte-characters: t
>>>
>>> Major mode: Shell
>>>
>>> Minor modes in effect:
>>>   dirtrack-mode: t
>>>   show-paren-mode: t
>>>   shell-dirtrack-mode: t
>>>   recentf-mode: t
>>>   tooltip-mode: t
>>>   mouse-wheel-mode: t
>>>   tool-bar-mode: t
>>>   menu-bar-mode: t
>>>   file-name-shadow-mode: t
>>>   global-font-lock-mode: t
>>>   font-lock-mode: t
>>>   blink-cursor-mode: t
>>>   auto-composition-mode: t
>>>   auto-encryption-mode: t
>>>   auto-compression-mode: t
>>>   column-number-mode: t
>>>   line-number-mode: t
>>>   transient-mark-mode: t
>>>
>>> Recent input:
>>> <left> <left> <left> <left> <left> <left> <left> <left>
>>> <left> <left> <left> <left> <left> <left> <left> <left>
>>> <backspace> 9 C-s C-s C-s C-s C-x C-s M-k C-g C-x C-s
>>> M-k y l s SPC - l SPC <return> c d SPC - <return> l
>>> s SPC - l SPC <return> c d SPC - <return> C-x <escape>
>>> <escape> <return> <return> C-x C-s M-k y l s SPC -
>>> l SPC h s <tab> s <tab> <return> l s SPC - a l <return>
>>> C-x C-f h s _ a s <tab> <return> C-s C-s C-s <left>
>>> <left> <left> <left> <left> <left> <left> <left> <left>
>>> <left> <left> <left> <left> <left> <left> <left> <left>
>>> <left> <left> <left> <left> <left> <left> <left> <left>
>>> <left> <backspace> 9 C-x C-s M-k y <help-echo> <help-echo>
>>> <down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-5>
>>> <mouse-5> <double-down-mouse-5> <double-mouse-5> <triple-down-mouse-5>
>>> <triple-mouse-5> <triple-down-mouse-5> <triple-mouse-5>
>>> <triple-down-mouse-5> <triple-mouse-5> <down-mouse-5>
>>> <mouse-5> <down-mouse-1> <mouse-1> w h i c h SPC e
>>> m a c s <return> n e d i t SPC h s <tab> a a <backspace>
>>> <tab> <return> <down-mouse-1> <mouse-1> C-s C-s C-x
>>> C-f M-p <return> C-s C-s C-s C-s C-x C-s <return> <backspace>
>>> <return> C-x C-s M-k <backspace> <down-mouse-1> <mouse-1>
>>> <down-mouse-1> <mouse-movement> <mouse-1> M-k y <f11>
>>> <f12> e <backspace> a SPC | SPC g r e p SPC e m a c
>>> s <return> <down-mouse-1> <mouse-movement> <mouse-1>
>>> $ E M A S <backspace> C S _ O L D <return> <down-mouse-1>
>>> <mouse-1> M-x r e p o <tab> r t <tab> - <tab> <backspace>
>>> <backspace> <backspace> <backspace> <backspace> <backspace>
>>> <backspace> <backspace> <backspace> <backspace> <backspace>
>>> <backspace> <backspace> <backspace> <backspace> <backspace>
>>> <backspace> <backspace> <backspace> <tab> <tab> <tab>
>>> <tab> <tab> <tab> <tab> <backspace> <backspace> <backspace>
>>> <backspace> <backspace> <backspace> <backspace> <backspace>
>>> <backspace> <backspace> <backspace> <backspace> <backspace>
>>> <backspace> <backspace> <backspace> <backspace> <backspace>
>>> <backspace> <backspace> <backspace> <backspace> <backspace>
>>> <tab> <tab> <return>
>>>
>>> Recent messages:
>>> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
>>> scroll-up: End of buffer
>>> Mark saved where search started [2 times]
>>> (No changes need to be saved)
>>> Saving file /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler/hs_async_scheduler.v...
>>> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  n
>>> Buffer hs_async_scheduler.v modified; kill anyway? (y or n)  y
>>> Mark set
>>> /proj/sycmr0/wa/vsingh/tmp/vault/ip_design/usb3_host_core/August_6_2012/mrvl_host_vpp/asic_release/src/xhci/transaction_scheduler
>>> Making completion list... [2 times]
>>>
>>> Load-path shadows:
>>> None found.
>>>
>>> Features:
>>> (shadow mail-extr emacsbug message rfc822 mml mml-sec mm-decode
>>> mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
>>> sendmail rfc2047 rfc2045 ietf-drums mail-utils executable tabify
>>> verilog-mode skeleton compile diff ffap misearch multi-isearch make-mode
>>> help-mode view pcmpl-unix autoinsert sunrise-commander tramp
>>> tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr
>>> password-cache format-spec tramp-loaddefs esh-var esh-io esh-cmd esh-ext
>>> esh-proc esh-arg eldoc esh-groups eshell esh-util esh-module esh-mode
>>> dired-aux desktop term ehelp electric sort hl-line find-dired disp-table
>>> enriched dired-x dired derived jka-compr protbuf dirtrack vc-hg linum
>>> paren cus-start cus-load ediff-trees ediff-merg ediff-diff ediff-wind
>>> ediff-help ediff-util ediff-mult ediff-init ediff breadcrumb byte-opt
>>> warnings bytecomp byte-compile cconv macroexp shell-command shell
>>> pcomplete comint regexp-opt ansi-color ring column-marker color-theme cl
>>> recentf tree-widget wid-edit easymenu tabbar easy-mmode hide-lines
>>> hide-region advice help-fns advice-preload setnu ibs edmacro kmacro
>>> time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
>>> tool-bar dnd fontset image fringe lisp-mode register page menu-bar
>>> rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
>>> facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
>>> tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
>>> czech european ethiopic indian cyrillic chinese case-table epa-hook
>>> jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
>>> cus-face files text-properties overlay sha1 md5 base64 format env
>>> code-pages mule custom widget hashtable-print-readable backquote
>>> make-network-process dynamic-setting font-render-setting x-toolkit x
>>> multi-tty emacs)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12437; Package emacs. (Fri, 14 Sep 2012 00:59:02 GMT) Full text and rfc822 format available.

Message #20 received at 12437 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Vishwajith Singh <vnsblore <at> gmail.com>
Cc: 12437 <at> debbugs.gnu.org
Subject: Re: bug#12437: 24.2;
	Edits to buffer does not get written to the file (Issue Does not
	happen in 23.x version)
Date: Thu, 13 Sep 2012 20:57:37 -0400
> Why is this happening in 24.2?

Because of something in your .emacs, or other local settings.
It works fine here.

Repeat your tests using

emacs -Q

which ignores .emacs, and see that it works fine for you too.

Then investigate your .emacs to see where the problem is. A standard
procedure is to comment out half the file, restart, see if the problem
still happens, if yes you know the problem is somewhere in that half,
comment out half the remainder, repeat until you narrow down the piece
causing the problem.




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 25 Sep 2012 01:25:01 GMT) Full text and rfc822 format available.

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Tue, 25 Sep 2012 01:25:02 GMT) Full text and rfc822 format available.

Notification sent to Vishwajith Singh <vnsblore <at> gmail.com>:
bug acknowledged by developer. (Tue, 25 Sep 2012 01:25:02 GMT) Full text and rfc822 format available.

Message #27 received at 12437-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 12437-done <at> debbugs.gnu.org
Subject: Re: bug#12437: 24.2;
	Edits to buffer does not get written to the file (Issue Does not
	happen in 23.x version)
Date: Mon, 24 Sep 2012 21:22:06 -0400
tags 12437 notabug
stop

I'm closing this since I don't think there is any Emacs bug here.
Feel free to followup with more details if you disagree.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Oct 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.