Procházet zdrojové kódy

Removed the ability to open in emacs

Samuel W. Flint před 7 roky
rodič
revize
4b22509a7d
1 změnil soubory, kde provedl 2 přidání a 13 odebrání
  1. 2 13
      library

+ 2 - 13
library

@@ -6,18 +6,17 @@ GIT=detect
 
 # help-message, /home/swflint/org/library.org
 if [[ $# -eq 0 ]] ; then
-    echo "library [ help | query | add | emacs | git | bulk-add | report | edit | loan | do-return | init ]"
+    echo "library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]"
     exit
 fi
 
 function display-help {
     cat <<EOF
-library [ help | query | add | emacs | git | bulk-add | report | edit | loan | do-return | init ]
+library [ help | query | add | git | bulk-add | report | edit | loan | do-return | init ]
 
 help:       Display this help message.
 query:      Query Library Database.
 add:        Add a singular book record.
-emacs:      View records in emacs.
 git:        Run a git command.
 bulk-add:   Add a specified number of records.
 report:     Run a report.
@@ -217,12 +216,6 @@ EOF
 }
 # initialize-database ends here
 
-# view-in-emacs, /home/swflint/org/library.org
-function view-in-emacs {
-    emacsclient --alternate-editor="" -n ${LIBRARYFILE}
-}
-# view-in-emacs ends here
-
 # loan, /home/swflint/org/library.org
 function do-loan {
     if [[ $# -lt 2 ]] ; then
@@ -295,10 +288,6 @@ case ${COMMAND} in
         do-report $@
         exit
         ;;
-    emacs)
-        view-in-emacs
-        exit
-        ;;
     edit)
         do-edit $@
         exit