From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: =?UTF-8?B?UmU6IEJ1ZzogSW5jb25zaXN0ZW5jeSB3aXRoIEMtUy1hIGFuZCBD?= =?UTF-8?B?LVMtZSBbOC4yLjEwIChyZWxlYXNlXzguMi4xMCBAIC91c3IvbG9jYWwvQ2Vs?= =?UTF-8?B?bGFyL2VtYWNzLW1hYy9lbWFjcy0yNC41LXotbWFjLTUuMTUvc2hhcmUvZW1h?= =?UTF-8?B?Y3MvMjQuNS9saXNwL29yZy8pXQ==?= Date: Thu, 28 Apr 2016 19:58:05 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c24af4672ed0053190f2c7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avs4o-00061N-8O for emacs-orgmode@gnu.org; Thu, 28 Apr 2016 15:58:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avs4m-00070Q-FE for emacs-orgmode@gnu.org; Thu, 28 Apr 2016 15:58:18 -0400 Received: from mail-ob0-x233.google.com ([2607:f8b0:4003:c01::233]:35312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avs4m-00070K-8j for emacs-orgmode@gnu.org; Thu, 28 Apr 2016 15:58:16 -0400 Received: by mail-ob0-x233.google.com with SMTP id n10so39324090obb.2 for ; Thu, 28 Apr 2016 12:58:15 -0700 (PDT) In-Reply-To: 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" To: Mathieu Marques , emacs-orgmode@gnu.org --001a11c24af4672ed0053190f2c7 Content-Type: text/plain; charset=UTF-8 Here's the thread and comment for context (the reddit markdown formatting of crossed-out text is lost in the above plain text): https://www.reddit.com/r/emacs/comments/4gcjep/cant_movebeginningofline_while_marking_region_in/d2hyxt6 On Thu, Apr 28, 2016 at 3:50 PM Mathieu Marques wrote: > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ > > In other modes, C-S-a and C-S-e behave as expected that is, move cursor > to the beginning/end of line while marking region. In other words, it > does what C-SPC C-a and C-SPC C-e would do. > > However in org-mode, C-a and C-e are bound to org-beginning-of-line and > org-end-of-line respectively. > In org-mode, C-S-e works as expected. But C-S-a does not. > > I have had these details over a discussion about my issue on /r/emacs: > > The interactive arg for both org-beginning-of-line and > org-end-of-line is "P". So it carries over the raw arguments > received by the command. So ^ is not needed. The reason C-S-e still > works as expected is because of (call-interactively 'end-of-line) in > org-end-of-line, and so the raw args are passed to end-of-line > without any modification. > > ~~Whereas we do not have (call-interactively 'beginning-of-line) in > org-beginning-of-line~~. > *Well, we do have (call-interactively 'move-beginning-of-line)*. > Instead we have goto-char calls to place the point before/after the > stars. > > Let me know if I can be of further help. > > > Emacs : GNU Emacs 24.5.1 (x86_64-apple-darwin15.2.0, Carbon Version 157 > AppKit 1404.34) > of 2015-12-28 on sandman.local > Package: Org-mode version 8.2.10 (release_8.2.10 @ > /usr/local/Cellar/emacs-mac/emacs-24.5-z-mac-5.15/share/emacs/24.5/lisp/org/) > > current state: > ============== > (setq > org-tab-first-hook '(org-hide-block-toggle-maybe > org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe > org-babel-header-arg-expand) > org-speed-command-hook '(org-speed-command-default-hook > org-babel-speed-command-hook) > org-occur-hook '(org-first-headline-recenter) > org-metaup-hook '(org-babel-load-in-session-maybe) > org-src-window-setup 'current-window > org-confirm-shell-link-function 'yes-or-no-p > org-startup-folded nil > org-support-shift-select 'always > org-after-todo-state-change-hook '(org-clock-out-if-current) > org-from-is-user-regexp "\\" > org-src-mode-hook '(org-src-babel-configure-edit-buffer > org-src-mode-configure-edit-buffer) > org-agenda-before-write-hook '(org-agenda-add-entry-text) > org-babel-pre-tangle-hook '(save-buffer) > org-mode-hook '(er/add-org-mode-expansions whitespace-turn-on > turn-on-auto-fill yas-minor-mode > #[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) > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > org-babel-execute-safely-maybe) > org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers > org-cycle-hide-inline-tasks org-cycle-show-empty-lines > org-optimize-window-after-visibility-change) > org-confirm-elisp-link-function 'yes-or-no-p > org-edit-src-content-indentation 0 > org-metadown-hook '(org-babel-pop-to-session-maybe) > org-startup-truncated nil > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > org-src-fontify-natively t > ) > > -- -- Kaushal Modi --001a11c24af4672ed0053190f2c7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here's the thread and comment for context (the reddit = markdown formatting of crossed-out text is lost in the above plain text):= =C2=A0https://www.reddit.com/r/ema= cs/comments/4gcjep/cant_movebeginningofline_while_marking_region_in/d2hyxt6=

On Thu, Apr 28, 2= 016 at 3:50 PM Mathieu Marques <mathieumarques78@gmail.com> wrote:
Remember to cover the basics, that is, = what you expected to happen and
what in fact did happen.=C2=A0 Yo= u don't know how to make a good report?=C2=A0 See

<= div>=C2=A0 =C2=A0 =C2=A0http://orgmode.org/manual/Feedback.html#Feedbac= k

Your bug report will be posted to the Org-mo= de mailing list.
------------------------------------------------= ------------------------

In other modes, C-S-a and= C-S-e behave as expected that is, move cursor
to the beginning/e= nd of line while marking region. In other words, it
does what C-S= PC C-a and C-SPC C-e would do.

However in org-mode= , C-a and C-e are bound to org-beginning-of-line and
org-end-of-l= ine respectively.
In org-mode, C-S-e works as expected. But C-S-a= does not.

I have had these details over a discuss= ion about my issue on /r/emacs:

=C2=A0 =C2=A0 The = interactive arg for both org-beginning-of-line and
=C2=A0 =C2=A0 = org-end-of-line is "P". So it carries over the raw arguments
=C2=A0 =C2=A0 received by the command. So ^ is not needed. The reason= C-S-e still
=C2=A0 =C2=A0 works as expected is because of (call-= interactively 'end-of-line) in
=C2=A0 =C2=A0 org-end-of-line,= and so the raw args are passed to end-of-line
=C2=A0 =C2=A0 with= out any modification.

=C2=A0 =C2=A0 ~~Whereas we d= o not have (call-interactively 'beginning-of-line) in
=C2=A0 = =C2=A0 org-beginning-of-line~~.
=C2=A0 =C2=A0 *Well, we do have (= call-interactively 'move-beginning-of-line)*.
=C2=A0 =C2=A0 I= nstead we have goto-char calls to place the point before/after the
=C2=A0 =C2=A0 stars.

Let me know if I can be of = further help.


Emacs =C2=A0: GNU Ema= cs 24.5.1 (x86_64-apple-darwin15.2.0, Carbon Version 157 AppKit 1404.34)
=C2=A0of 2015-12-28 on sandman.local
Package: Org-mode ve= rsion 8.2.10 (release_8.2.10 @ /usr/local/Cellar/emacs-mac/emacs-24.5-z-mac= -5.15/share/emacs/24.5/lisp/org/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0org-tab-first-hook '(org-hide-block-toggle-maybe org-src-nativ= e-tab-command-maybe org-babel-hide-result-toggle-maybe
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-babe= l-header-arg-expand)
=C2=A0org-speed-command-hook '(org-speed= -command-default-hook org-babel-speed-command-hook)
=C2=A0org-occ= ur-hook '(org-first-headline-recenter)
=C2=A0org-metaup-hook = '(org-babel-load-in-session-maybe)
=C2=A0org-src-window-setup= 'current-window
=C2=A0org-confirm-shell-link-function 'y= es-or-no-p
=C2=A0org-startup-folded nil
=C2=A0org-suppo= rt-shift-select 'always
=C2=A0org-after-todo-state-change-hoo= k '(org-clock-out-if-current)
=C2=A0org-from-is-user-regexp &= quot;\\<Mathieu Marques\\>"
=C2=A0org-src-mode-hook &#= 39;(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)=
=C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-te= xt)
=C2=A0org-babel-pre-tangle-hook '(save-buffer)
= =C2=A0org-mode-hook '(er/add-org-mode-expansions whitespace-turn-on tur= n-on-auto-fill yas-minor-mode
=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-show-block-all append local] 5]
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#[nil &qu= ot;\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=A0org-babel-result-hide-spec org-babel-= hide-all-hashes)
=C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-has= h-at-point org-babel-execute-safely-maybe)
=C2=A0org-cycle-hook &= #39;(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide= -inline-tasks org-cycle-show-empty-lines
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-optimize-window-after-visibility= -change)
=C2=A0org-confirm-elisp-link-function 'yes-or-no-p
=C2=A0org-edit-src-content-indentation 0
=C2=A0org-metad= own-hook '(org-babel-pop-to-session-maybe)
=C2=A0org-startup-= truncated nil
=C2=A0org-clock-out-hook '(org-clock-remove-emp= ty-clock-drawer)
=C2=A0org-src-fontify-natively t
=C2= =A0)

--

--
Kaushal Modi

--001a11c24af4672ed0053190f2c7--