all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs and beginning of lines
Date: Mon, 8 Sep 2014 11:17:36 +0200	[thread overview]
Message-ID: <20140908111736.6be35f87@aga-netbook> (raw)
In-Reply-To: <87lhpvglqu.fsf@debian.uxu>

Dnia 2014-09-07, o godz. 23:32:25
Emanuel Berg <embe8573@student.uu.se> napisał(a):

> Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
> 
> > BTW: back-to-indentation seems to be broken with
> > visual-line-mode; it doesn't take into consideration,
> > well, /visual/ lines. One might argue that it is a
> > feature, but I think this is a bug: I guess that
> > visual-line-mode is primarily useful for editing
> > texts in natural languages
> 
> Yes, primarily that, like in plain text files. (Tho I
> would recommend filling for that as well, as said.)

If you use a VCS and look at a diff from time to time, filling might
be a bad idea.  (Though visual-line-mode is not helpful then, either.)

> > (or markup languages, like LaTeX in my case)
> 
> Secondarily that, but for a .tex file you might as well
> use auto-fill-mode as when you compile it (into a PDF)
> that will be treated as unbroken lines.

As above.

> The second complication is that in the .pdf, it may
> look like this "My friends told me" - say you want to
> change that to "My associates" or whatever - and you
> make a search for "My friends" - no hit! Because in the
> source, it appears at the end of a line and there is a
> "source line break" (but not PDF line break) right
> after "My". A regexp search would do it, but it is
> nothing I would like to do habitually and I wouldn't
> intuitively think of that right away. Could be
> automatized, perhaps...

I vaguely remember reading somewhere that Emacs 24.4 solves this...

> Searching for stuff in LaTeX source can actually be
> tedious for this reason, but on a larger scale as well,
> because of the markup in general. But for words that
> are bold, for example, you see they are bold instantly
> (in the .pdf), but for line breaks it doesn't show that
> way.

True.

> Is there a LaTeX submode for hiding markup or search
> function to disregard it?

That would be cool.  Hiding is much easier, AFAIK AUCTeX supports
that.  Searching might be tricky, though.  (If all you need is
searching for a sequence of /words/, it would probably make it
easier.  Also, you could have a second buffer with all your document
"detexified" and somehow link it to the main one...  A bit of overhead
with updating it, but probably doable.)

> Those and other reasons is why I always stick to plain
> text unless for really ambitious documents like thesis
> and books/manuals that are intended for printing. It is
> just so much more overhead than the simple and sweet
> science of putting together plain text files and
> messages. It is also more honest: if you are a moron,
> it'll show. There is just no where to hide between
> fancy markup.

Fair enough.  OTOH, some things are easier to mark up (at least for
me) in LaTeX than, say, in Org-mode.  But it might be the question of
experience and my habits...

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



  reply	other threads:[~2014-09-08  9:17 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-06  9:59 emacs and beginning of lines Jude DaShiell
2014-09-06 11:03 ` Teemu Likonen
2014-09-07  0:17   ` Jude DaShiell
     [not found]   ` <mailman.8378.1410049068.1147.help-gnu-emacs@gnu.org>
2014-09-07 18:35     ` Emanuel Berg
2014-09-07 20:47   ` Marcin Borkowski
     [not found]   ` <mailman.8416.1410122851.1147.help-gnu-emacs@gnu.org>
2014-09-07 21:32     ` Emanuel Berg
2014-09-08  9:17       ` Marcin Borkowski [this message]
2014-09-08 11:31         ` Yuri Khan
2014-09-08 11:34         ` Yuri Khan
2014-09-08 12:21           ` Marcin Borkowski
2014-09-08 12:34             ` Stefan Monnier
     [not found]             ` <mailman.8453.1410179680.1147.help-gnu-emacs@gnu.org>
2014-09-08 22:14               ` Emanuel Berg
     [not found]       ` <mailman.8445.1410167872.1147.help-gnu-emacs@gnu.org>
2014-09-08 22:10         ` Emanuel Berg
2014-09-09  7:58           ` Marcin Borkowski
     [not found]           ` <mailman.8505.1410249559.1147.help-gnu-emacs@gnu.org>
2014-09-09 20:02             ` more LaTeX (was: Re: emacs and beginning of lines) Emanuel Berg
2014-09-10  0:12               ` Marcin Borkowski
     [not found]               ` <mailman.8575.1410307953.1147.help-gnu-emacs@gnu.org>
2014-09-10  1:12                 ` Emanuel Berg
2014-09-10  9:23                   ` Marcin Borkowski
     [not found]                   ` <mailman.8603.1410341031.1147.help-gnu-emacs@gnu.org>
2014-09-10 21:55                     ` Emanuel Berg
2014-09-10 23:42                       ` Marcin Borkowski

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=20140908111736.6be35f87@aga-netbook \
    --to=mbork@wmi.amu.edu.pl \
    --cc=help-gnu-emacs@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.