-(defun point-in-comment ()
- "Determine if the point is inside a comment"
- (interactive)
- (let ((syn (syntax-ppss)))
- (and (nth 8 syn)
- (not (nth 3 syn)))))
-(defun end-of-code-or-line (arg)
- "Move to end of line, or before start of comments depending on situation.
- Toggle back and forth positions if we are already at one.
- Comments are recognized in any mode that sets syntax-ppss
- properly."
- (interactive "P")
- (when (catch 'bol
- (let ((start (point))
- (bol (save-excursion
- (beginning-of-line)
- (point)))
- (eol (progn (move-end-of-line arg) (point))))
- (while (point-in-comment)
- (backward-char)
- (when (= (point) bol)
- (throw 'bol t)))
- (throw 'bol (and (not (= eol start)) (>= start (point))))))
- (move-end-of-line arg)))
-
-(global-set-key (kbd "<end>") 'end-of-code-or-line)(add-hook 'org-mode-hook (lambda () (define-key org-mode-map (kbd "<end>") 'org-end-of-line)))
+;;; doing a test without this set: june 2026
+
+;; (defun point-in-comment ()
+;; "Determine if the point is inside a comment"
+;; (interactive)
+;; (let ((syn (syntax-ppss)))
+;; (and (nth 8 syn)
+;; (not (nth 3 syn)))))
+;; (defun end-of-code-or-line (arg)
+;; "Move to end of line, or before start of comments depending on situation.
+;; Toggle back and forth positions if we are already at one.
+;; Comments are recognized in any mode that sets syntax-ppss
+;; properly."
+;; (interactive "P")
+;; (when (catch 'bol
+;; (let ((start (point))
+;; (bol (save-excursion
+;; (beginning-of-line)
+;; (point)))
+;; (eol (progn (move-end-of-line arg) (point))))
+;; (while (point-in-comment)
+;; (backward-char)
+;; (when (= (point) bol)
+;; (throw 'bol t)))
+;; (throw 'bol (and (not (= eol start)) (>= start (point))))))
+;; (move-end-of-line arg)))
+;;(global-set-key (kbd "<end>") 'end-of-code-or-line)
+;;; orig key for testing
+;;(global-set-key (kbd "<end>") 'move-end-of-line)
+(add-hook 'org-mode-hook (lambda () (define-key org-mode-map (kbd "<end>") 'org-end-of-line)))