Hi,

upstream edbrowse recently introduced a new 'bfl' (buffer list) command,
which shows the list of open edit and browse sessions.  Could I tempt you
to include it in a new Debian release?

thanks,
Serge

diff -Nru edbrowse-3.6.0.1/debian/changelog edbrowse-3.6.0.1/debian/changelog
--- edbrowse-3.6.0.1/debian/changelog   2015-12-29 11:20:38.000000000 -0600
+++ edbrowse-3.6.0.1/debian/changelog   2016-04-17 15:07:33.000000000 -0500
@@ -1,3 +1,9 @@
+edbrowse (3.6.0.1-1ubuntu2~ppa1) xenial; urgency=medium
+
+  * Add patch to show all buffers.
+
+ -- Serge Hallyn <[email protected]>  Sun, 17 Apr 2016 02:09:37 -0500
+
 edbrowse (3.6.0.1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru 
edbrowse-3.6.0.1/debian/patches/0001-Buffer-list-command-show-all-edbrowse-sessions-and-t.patch
 
edbrowse-3.6.0.1/debian/patches/0001-Buffer-list-command-show-all-edbrowse-sessions-and-t.patch
--- 
edbrowse-3.6.0.1/debian/patches/0001-Buffer-list-command-show-all-edbrowse-sessions-and-t.patch
     1969-12-31 18:00:00.000000000 -0600
+++ 
edbrowse-3.6.0.1/debian/patches/0001-Buffer-list-command-show-all-edbrowse-sessions-and-t.patch
     2016-04-17 02:09:31.000000000 -0500
@@ -0,0 +1,57 @@
+From ad8461c9a69a1ed59205c65f034006bd6aebf949 Mon Sep 17 00:00:00 2001
+From: Karl Dahlke <[email protected]>
+Date: Fri, 15 Apr 2016 22:31:17 -0400
+Subject: [PATCH 1/1] Buffer list command - show all edbrowse sessions and
+ their filenames.
+
+---
+ doc/usersguide.html |  4 ++++
+ src/buffers.c       | 13 +++++++++++++
+ 2 files changed, 17 insertions(+)
+
+Index: edbrowse-3.6.0.1/doc/usersguide.html
+===================================================================
+--- edbrowse-3.6.0.1.orig/doc/usersguide.html
++++ edbrowse-3.6.0.1/doc/usersguide.html
+@@ -490,6 +490,7 @@ f&nbsp; print the name of the current fi
+ <br>w/&nbsp; write to the lass component of the filename
+ <br>e ~/projects/edbrowse/src/buf*.c&nbsp; expand wildcards if exactly one 
match
+ <br>e $EBSRC/buf*.c&nbsp; variable expansion
++<br>bfl : buffer list, all edbrowse sessions and their file names
+ <br>bd&nbsp; binary detection on files (toggle)
+ <br>iu&nbsp; automatically convert between iso8859 and utf8 (toggle)
+ <P>
+@@ -963,6 +964,9 @@ but it is trickier than it seems, so I h
+ Make sure everything is copacetic before you switch to another session.
+ 
+ <P>
++Use the bfl (buffer list) command to see a list of all the editing sessions 
that are currently open.
++
++<P>
+ Let's run through a cut&amp;paste example.&nbsp;
+ You are editing file foo in session 1, and you realize
+ that a paragraph from file bar would fit perfectly right here.&nbsp;
+Index: edbrowse-3.6.0.1/src/buffers.c
+===================================================================
+--- edbrowse-3.6.0.1.orig/src/buffers.c
++++ edbrowse-3.6.0.1/src/buffers.c
+@@ -3612,6 +3612,19 @@ et_go:
+               return true;
+       }
+ 
++      if (stringEqual(line, "bfl")) {
++              for (n = 1; n < MAXSESSION; ++n) {
++                      struct ebWindow *lw = sessionList[n].lw;
++                      if (!lw)
++                              continue;
++                      printf("%d: ", n);
++                      if (lw->fileName)
++                              printf("%s", lw->fileName);
++                      nl();
++              }
++              return true;
++      }
++
+       if (stringEqual(line, "iu")) {
+               iuConvert ^= 1;
+               if (helpMessagesOn || debugLevel >= 1)
diff -Nru edbrowse-3.6.0.1/debian/patches/series 
edbrowse-3.6.0.1/debian/patches/series
--- edbrowse-3.6.0.1/debian/patches/series      2015-12-29 11:16:02.000000000 
-0600
+++ edbrowse-3.6.0.1/debian/patches/series      2016-04-17 02:08:34.000000000 
-0500
@@ -1,3 +1,4 @@
 ssl_certs
 nomake
 tidy
+0001-Buffer-list-command-show-all-edbrowse-sessions-and-t.patch

Reply via email to