edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: edbrowse-dev@edbrowse.org
Subject: [edbrowse-dev] interdirectory moves, and indent
Date: Tue, 14 Jul 2020 12:49:45 -0400	[thread overview]
Message-ID: <20200614124945.eklhad@comcast.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 2015 bytes --]

Folks, this is too long to send over irc, so I hope you are all subscribed.

The last push is the start of my move command, files from one directory to another.
It is m, just like move in the editor, but it doesn't reorder the lines, and why would you, as soon as you refresh they are back in the order they were in before.
It's not something you should manually change.
Remember the sort commands if you want your listing in something other than alphabetical.
So I don't mind overloading the m operator.

In directory mode, .m3 moves the current file to the directory in session 3.
That session has to be active and has to have a directory.
If the directory is on another file system edbrowse will copy and delete.
I don't "copy" special files or directory trees; those have to move on the same file system.

The file disappears from your current buffer, as it should, but does not yet appear in the other buffer.
I'll do that eventually but it's harder than it first seems.
So if or when you switch to session 3, you have to type rf to see the files.

There are more prints on what is going on when you move files, delete files, or move to your trash can.
These are at debug level 1 or higher.     hth

Pull, and play around with it.

Just before push, I usually use the indenting program in tools/Lindent, to keep the code pretty.
It does it's thing and then I push.
Ok fine, but when I ran this on buffers.c it screwed up a bunch of my block comments.
Yes I'm on a different machine, different distro, different version of indent, but what is the problem?
Spent a couple hours on this.
I whittled it down to a smaller example that illustrates the bug and sent it to
bug-indent@gnu.org
We'll see what they have to say.
Meantime, I either can't use indent, or have to go back to an older version of indent,
or have to manage the indenting manually, all of these being unpleasant.
Probably none of you fiddle with edbrowse code any more,
but if any of you do, this is a heads up.

             reply	other threads:[~2020-07-14 16:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14 16:49 Karl Dahlke [this message]
2020-07-19  5:06 Kevin Carhart

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=20200614124945.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=edbrowse-dev@edbrowse.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.
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 NNTP newsgroup(s).