all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Roehler <andreas.roehler@online.de>
To: emacs-pretest-bug@gnu.org
Subject: bug#5304: Subject: 23.1.91; comment-start in fundamental-mode
Date: Sun, 03 Jan 2010 21:09:50 +0100	[thread overview]
Message-ID: <4B40F98E.6040309@online.de> (raw)


Hi,

after emacs -q
`comment-start' is available in fundamental mode as a global variable.
Once set, it retains its value for other buffers.

IMO `comment-start' should not exist in fundamental mode,
also it should be buffer local from the very beginning.

Below a recipe to reproduce the bug:

emacs -q
scratch-buffer
M-x fundamental-mode
\C-h v comment-start

==>

comment-start is a variable defined in `newcomment.el'.
Its value is nil

  This variable is safe as a file local variable if its value
  satisfies the predicate `string-or-null-p'.

Documentation:
*String to insert to start a new comment, or nil if no comment syntax.

;;;;;;;;;;;;

(setq comment-start "abc")
\C-h v comment-start

==>

comment-start is a variable defined in `newcomment.el'.
Its value is "abc"

...

;;;;;;;;;;;;;

Now kill buffer, ask again: same result.
`comment-start' is remembered throughout buffers as "abc".

So far, thanks all

Andreas

BTW emacs-pretest-bug@gnu.org still active, think it should be deactivated(?)

--
https://code.launchpad.net/s-x-emacs-werkstatt/

;;;;;;;;;;;;;;;;;;;;;;;;

In GNU Emacs 23.1.91.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0)
 of 2010-01-01
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
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: de_DE.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  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
  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:
C-h v c o m m e n t - s r <backspace> t a r t <return>
M-x f u n d a m e n t a l - m o <tab> <return> C-h
v <up> <return> M-x r e p o r t - e m a c s - b u <tab>
<return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Type C-x 1 to delete the help window.

Load-path shadows:
None found.

Features:
(shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml
mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse
rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util
netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock
sha1 hex-util hashcash mail-utils emacsbug pp find-func help-mode
easymenu view help-fns tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag 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 loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs)






             reply	other threads:[~2010-01-03 20:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-03 20:09 Andreas Roehler [this message]
2010-01-05 15:01 ` bug#5304: Subject: 23.1.91; comment-start in fundamental-mode Stefan Monnier
2010-01-06  9:03   ` Andreas Roehler

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=4B40F98E.6040309@online.de \
    --to=andreas.roehler@online.de \
    --cc=5304@debbugs.gnu.org \
    --cc=emacs-pretest-bug@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 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.