From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo J Buchignani III Subject: Bug: Strange C-o behavior in Org-Mode [7.8.11] Date: Fri, 18 Dec 2015 19:24:58 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0115f538248edc0527362298 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aA6HE-0004kl-Jh for emacs-orgmode@gnu.org; Fri, 18 Dec 2015 20:25:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aA6HD-000642-4I for emacs-orgmode@gnu.org; Fri, 18 Dec 2015 20:25:40 -0500 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]:35019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aA6HC-00063y-Tv for emacs-orgmode@gnu.org; Fri, 18 Dec 2015 20:25:39 -0500 Received: by mail-ig0-x22d.google.com with SMTP id to4so3753145igc.0 for ; Fri, 18 Dec 2015 17:25:38 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e0115f538248edc0527362298 Content-Type: text/plain; charset=UTF-8 * Strange C-o behavior in Org-Mode ** VERSION INFO I am using ErgoEmacs. I cannot tell whether this behavior is due to ErgoEmacs or Org-Mode. GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-28 on MARVIN ErgoEmacs distribution 2.0.0 ** PROBLEM DESCRIPTION Intermittently, C-o will alter its normal behavior. Normally, C-o opens a new blank line. This is apparently what it does for everyone. Occasionally, however, C-o behaves differently. 1. If C-o is executed at the beginning of a line, it pastes a one-line text string and adds a newline at the end 2. If C-o is executed anywhere else, it behaves normally. I suspect the text string is a single line I've previously grabbed with C-k. However, I cannot consistently reproduce via this method. IIRC, the text string is always a recent, familiar piece of text, possibly from the same file. Moreover, this behavior is limited to a single .org file. When one .org file is affected, other .org files do not exhibit the behavior. I do not THINK the behavior occurs except in org-mode, although since I almost always am using org-mode when using Emacs, I cannot say for sure. As a result, once a .org file is "bugged", I have to either avoid using C-o, or kill the unwanted text string every time it appears. A quick search of my .emacs file for "C-o" turns up nothing. I don't recall ever deliberately fiddling with such a setting. ErgoEmacs does generate a lot of funky keybinds. However, I have disabled those, and in any case ErgoEmacs wants C-o to replace C-x C-f, which is unrelated to my problem. I realize that this is not an ideal bug report. I am a non-technical user, and cannot reliably reproduce the bug anyway. Call this a shot in the dark. ** SOLUTION Refreshing org-mode with M-x org-mode eliminates the problem. I just discovered this easy fix, so it's not much of a nuisance anymore. Still, I'm curious, and this is already written! Emacs : GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-28 on MARVIN ErgoEmacs distribution 2.0.0 Package: Org-mode version 7.8.11 current state: ============== (setq org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-src-fontify-natively t org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-custom-commands '(("x" "Agenda sorted by priority first" agenda "" ((org-agenda-sorting-strategy (quote (priority-up)))))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-catch-invisible-edits t org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-export-first-hook '(org-beamer-initialize-open-trackers) org-mode-hook '(er/add-org-mode-expansions #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes soft-wrap-lines) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metadown-hook '(org-babel-pop-to-session-maybe) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-confirm-shell-link-function 'yes-or-no-p ) --089e0115f538248edc0527362298 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* Strange C-o behavior in Org-Mode

** VERSION INFO<= br>
I am using ErgoEmacs. I cannot tell whether this behavior is due to = ErgoEmacs or Org-Mode.

GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of = 2012-08-28 on MARVIN
ErgoEmacs distribution 2.0.0

** PROBLEM DESC= RIPTION

Intermittently, C-o will alter its normal behavior.

= Normally, C-o opens a new blank line. This is apparently what it does for e= veryone.

Occasionally, however, C-o behaves differently.
1. If C= -o is executed at the beginning of a line, it pastes a one-line text string= and adds a newline at the end
2. If C-o is executed anywhere else, it b= ehaves normally.

I suspect the text string is a single line I've= previously grabbed with C-k. However, I cannot consistently reproduce via = this method. IIRC, the text string is always a recent, familiar piece of te= xt, possibly from the same file.

Moreover, this behavior is limited= to a single .org file. When one .org file is affected, other .org files do= not exhibit the behavior.

I do not THINK the behavior occurs excep= t in org-mode, although since I almost always am using org-mode when using = Emacs, I cannot say for sure.

As a result, once a .org file is "= ;bugged", I have to either avoid using C-o, or kill the unwanted text = string every time it appears.

A quick search of my .emacs file for &= quot;C-o" turns up nothing. I don't recall ever deliberately fiddl= ing with such a setting. ErgoEmacs does generate a lot of funky keybinds. H= owever, I have disabled those, and in any case ErgoEmacs wants C-o to repla= ce C-x C-f, which is unrelated to my problem.

I realize that this is= not an ideal bug report. I am a non-technical user, and cannot reliably re= produce the bug anyway. Call this a shot in the dark.

** SOLUTION
Refreshing org-mode with M-x org-mode eliminates the problem. I just d= iscovered this easy fix, so it's not much of a nuisance anymore. Still,= I'm curious, and this is already written!


Emacs=C2=A0 : GNU= Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-28 on MARVIN
ErgoEmacs = distribution 2.0.0
Package: Org-mode version 7.8.11

current state= :
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0org-expor= t-blocks '((src org-babel-exp-src-block nil) (export-comment org-export= -blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil)
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (dot org-export-blocks-format-do= t nil))
=C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-b= abel-execute-safely-maybe)
=C2=A0org-src-fontify-natively t
=C2=A0org= -export-preprocess-before-selecting-backend-code-hook '(org-beamer-sele= ct-beamer-code)
=C2=A0org-tab-first-hook '(org-hide-block-toggle-may= be org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
= =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-= drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-cha= nge)
=C2=A0org-agenda-custom-commands '(("x" "Agenda = sorted by priority first" agenda "" ((org-agenda-sorting-str= ategy (quote (priority-up))))))
=C2=A0org-agenda-before-write-hook '= (org-agenda-add-entry-text)
=C2=A0org-speed-command-hook '(org-speed= -command-default-hook org-babel-speed-command-hook)
=C2=A0org-babel-pre-= tangle-hook '(save-buffer)
=C2=A0org-occur-hook '(org-first-head= line-recenter)
=C2=A0org-export-interblocks '((src org-babel-exp-non= -block-elements))
=C2=A0org-metaup-hook '(org-babel-load-in-session-= maybe)
=C2=A0org-confirm-elisp-link-function 'yes-or-no-p
=C2=A0o= rg-catch-invisible-edits t
=C2=A0org-export-latex-format-toc-function &#= 39;org-export-latex-format-toc-default
=C2=A0org-export-preprocess-befor= e-normalizing-links-hook '(org-remove-file-link-modifiers)
=C2=A0org= -clock-out-hook '(org-clock-remove-empty-clock-drawer)
=C2=A0org-exp= ort-first-hook '(org-beamer-initialize-open-trackers)
=C2=A0org-mode= -hook '(er/add-org-mode-expansions #[nil "\300\301\302\303\304$\20= 7" [org-add-hook change-major-mode-hook org-show-block-all append loca= l] 5]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #[nil "\300\301\302\303\304$\207" = [org-add-hook change-major-mode-hook org-babel-show-result-all append local= ] 5]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-babel-result-hide-spec org-babel-hide-al= l-hashes soft-wrap-lines)
=C2=A0org-export-latex-final-hook '(org-be= amer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-bea= mer-place-default-actions-for-lists)
=C2=A0org-export-latex-after-initia= l-vars-hook '(org-beamer-after-initial-vars)
=C2=A0org-metadown-hook= '(org-babel-pop-to-session-maybe)
=C2=A0org-src-mode-hook '(org= -src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
=C2= =A0org-after-todo-state-change-hook '(org-clock-out-if-current)
=C2= =A0org-confirm-shell-link-function 'yes-or-no-p
=C2=A0)

--089e0115f538248edc0527362298--