unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Vishwajith Singh <vnsblore@gmail.com>
To: 12437@debbugs.gnu.org
Subject: 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 16:04:18 -0700	[thread overview]
Message-ID: <CABL10aZX1+QikbOWYKyBmhRWD2KnCJ7y8w_tu-ZV_318y5UE1Q@mail.gmail.com> (raw)
In-Reply-To: <CABL10aYK65KfEcmkqiJcFxR=tGZTxZu4kz08zxrqiF2WVe+w+w@mail.gmail.com>

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@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@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@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)





  reply	other threads:[~2012-09-13 23:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-13 22:17 bug#12437: 24.2; Edits to buffer does not get written to the file (Issue Does not happen in 23.x version) Vishwajith Singh
2012-09-13 22:32 ` Vishwajith Singh
2012-09-13 22:51 ` Vishwajith Singh
2012-09-13 22:54   ` Vishwajith Singh
2012-09-13 23:04     ` Vishwajith Singh [this message]
2012-09-14  0:57 ` Glenn Morris
2012-09-25  1:22   ` Glenn Morris
     [not found] <mailman.8803.1347574692.855.bug-gnu-emacs@gnu.org>
2018-03-15 11:54 ` jeffmasters443

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CABL10aZX1+QikbOWYKyBmhRWD2KnCJ7y8w_tu-ZV_318y5UE1Q@mail.gmail.com \
    --to=vnsblore@gmail.com \
    --cc=12437@debbugs.gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).