[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
'C-q C-j' looks ugly in code
From: |
Thorsten Jolitz |
Subject: |
'C-q C-j' looks ugly in code |
Date: |
Fri, 26 Jul 2013 10:25:30 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
Hi List,
assume I write elisp code to replace occurences of "^J" in a string with
the actual line-feeds, i.e. with C-q C-j.
That works, but looks really ugly in the code:
#+begin_src emacs-lisp
(if A
(if B
(if C
;; deeply indented code
(replace-string "^J" "
" nil beg end)
(message "C"))
(message "B"))
(message "A"))
#+end_src
Is there a way to write C-q C-j in source code that does not actually
inserts the line-feeds?
--
cheers,
Thorsten
- 'C-q C-j' looks ugly in code,
Thorsten Jolitz <=