all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#52208: Changing `csv-separators' in `csv-mode' does not work
@ 2021-11-30 21:17 Tor Kringeland
  2021-11-30 21:39 ` Stephen Berman
  0 siblings, 1 reply; 3+ messages in thread
From: Tor Kringeland @ 2021-11-30 21:17 UTC (permalink / raw)
  To: 52208

Changing the value of `csv-separators' /e.g./ to

  (setq csv-separators '(";"))

(from it's default value) while in an Emacs session does not have any
effect.  Putting this in a config and re-starting Emacs works, though.

When using `csv-align-mode' it's prudent to have just one "CSV
separator", otherwise things will look ugly if you happen to have
another separator character in the file.  If one wants to switch between
a CSV file whose delimiter is `;' and another whose delimiter is `,',
one would have to change the value of `csv-separators', which isn't so
bad, but restarting Emacs for this to take effect is vexing.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52208: Changing `csv-separators' in `csv-mode' does not work
  2021-11-30 21:17 bug#52208: Changing `csv-separators' in `csv-mode' does not work Tor Kringeland
@ 2021-11-30 21:39 ` Stephen Berman
  2021-12-01  4:03   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Berman @ 2021-11-30 21:39 UTC (permalink / raw)
  To: Tor Kringeland; +Cc: 52208

On Tue, 30 Nov 2021 22:17:28 +0100 Tor Kringeland <tor.a.s.kringeland@ntnu.no> wrote:

> Changing the value of `csv-separators' /e.g./ to
>
>   (setq csv-separators '(";"))
>
> (from it's default value) while in an Emacs session does not have any
> effect.  Putting this in a config and re-starting Emacs works, though.
>
> When using `csv-align-mode' it's prudent to have just one "CSV
> separator", otherwise things will look ugly if you happen to have
> another separator character in the file.  If one wants to switch between
> a CSV file whose delimiter is `;' and another whose delimiter is `,',
> one would have to change the value of `csv-separators', which isn't so
> bad, but restarting Emacs for this to take effect is vexing.

If you use `M-x customize-option' instead of setq, it takes effect in
the current Emacs session.

Steve Berman





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#52208: Changing `csv-separators' in `csv-mode' does not work
  2021-11-30 21:39 ` Stephen Berman
@ 2021-12-01  4:03   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-01  4:03 UTC (permalink / raw)
  To: Stephen Berman; +Cc: Tor Kringeland, 52208

Stephen Berman <stephen.berman@gmx.net> writes:

> If you use `M-x customize-option' instead of setq, it takes effect in
> the current Emacs session.

Yup.  You can also use `set-variable', so I've now mentioned that in the
`csv-separators' doc string.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-01  4:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-30 21:17 bug#52208: Changing `csv-separators' in `csv-mode' does not work Tor Kringeland
2021-11-30 21:39 ` Stephen Berman
2021-12-01  4:03   ` Lars Ingebrigtsen

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.