Permalink
Browse files

Error messages now in error.org instead of error.org_archive

Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
  • Loading branch information...
1 parent cf1dfa0 commit 729d732a18eedb3a28a0c0f08741949721829484 @awieser awieser committed May 30, 2012
Showing with 10 additions and 12 deletions.
  1. +6 −8 docs/FAQs_and_Best_Practices.org
  2. +2 −2 memacs/lib/loggingsettings.py
  3. +2 −2 memacs/lib/memacs.py
@@ -1,4 +1,4 @@
-## Time-stamp: <2012-04-16 23:23:13 armin>
+## Time-stamp: <2012-05-30 18:23:28 armin>
## This file is best viewed with GNU Emacs Org-mode: http://orgmode.org/
* Best Practices
@@ -45,7 +45,7 @@ When you specify an outputfile like this:
: memacs-module.py -o /path/to/output.org_archive
Then errors are automatically added to
-: /path/to/error.org_archive
+: /path/to/error.org
- Create the file containing following information:
: ## -*- coding: utf-8 mode: org -*-
@@ -60,11 +60,10 @@ Then errors are automatically added to
: * Memacs error :Memacs:ERROR:
: # start deleting from here:
-- Create a stub file
- : /path/to/error.org
- - open it in emacs and M-x org-agenda-file-to-front
+- Add the file to Org-Agenda:
+ - open the file in emacs and M-x org-agenda-file-to-front
-If an error occurs it will be added to the error.org_archive with an repeating timestamp every day.
+If an error occurs it will be added to the error.org with an repeating timestamp every day.
You have to delete the error manually.
** Autotagging
@@ -190,8 +189,7 @@ generated Memacs Orgmode files:
: /home/user/orgmode/memacs/module1.org_archive
: /home/user/orgmode/memacs/module2.org
: /home/user/orgmode/memacs/module2.org_archive
-: /home/user/orgmode/memacs/error.org <- See Section
-: /home/user/orgmode/memacs/error.org_archive <- Error Handling
+: /home/user/orgmode/memacs/error.org <- See Section Error Handling
** Power Consumption while being on battery
When you are using Memacs on a notebook, you might not want to execute
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-# Time-stamp: <2012-04-11 18:48:26 armin>
+# Time-stamp: <2012-05-30 18:19:27 armin>
import logging
import sys
@@ -28,7 +28,7 @@ def handle_logging(args,
org_file = None
else:
org_error_file = os.path.dirname(org_file) + os.sep + \
- "error.org_archive"
+ "error.org"
memacs_module_filename = os.path.basename(sys.argv[0])
# add file logger
console = logging.FileHandler(org_error_file, 'a', 'utf-8', 0)
View
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Time-stamp: <2012-04-16 23:19:39 armin>
+# Time-stamp: <2012-05-30 18:23:08 armin>
import logging
import traceback
@@ -23,7 +23,7 @@ class Memacs(object):
- verbose
- suppress-messages
* set logging information
- - write error logs to error.org_archive if
+ - write error logs to error.org if
orgfile is specified
use handle_main() to start Memacs

0 comments on commit 729d732

Please sign in to comment.