all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17320: 24.3.90.1[pretest]; bug-sourcing design-flaw
@ 2014-04-23  7:43 Andreas Röhler
  2014-04-29 15:47 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Röhler @ 2014-04-23  7:43 UTC (permalink / raw)
  To: 17320

When looking for bug #17247

noticed the following

lisp.el, line 374:

     ;; When comparing point against pos, we want to consider that if
     ;; point was right after the end of the function, it's still
     ;; considered as "in that function".
     ;; E.g. `eval-defun' from right after the last close-paren.
     (unless (bolp)
       (skip-chars-forward " \t")
       (if (looking-at "\\s<\\|\n")
           (forward-line 1)))



;;;;;;;;;

A core function should not do that kind of provisions.
Employing forward-line, point might end up at the beginning of valid code, not at the end.
Thus beginning and end of functions are in risk being mixed.

Suggest to drop that and let `eval-defun' etc. make provisions at their needs.

Thanks,

Andreas

GNU Emacs 24.3.90.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2014-04-21





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#17320: 24.3.90.1[pretest]; bug-sourcing design-flaw
  2014-04-23  7:43 bug#17320: 24.3.90.1[pretest]; bug-sourcing design-flaw Andreas Röhler
@ 2014-04-29 15:47 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2014-04-29 15:47 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 17320

Andreas Röhler wrote:

> lisp.el, line 374:
>
>     ;; When comparing point against pos, we want to consider that if
>     ;; point was right after the end of the function, it's still
>     ;; considered as "in that function".
>     ;; E.g. `eval-defun' from right after the last close-paren.
>     (unless (bolp)
>       (skip-chars-forward " \t")
>       (if (looking-at "\\s<\\|\n")
>           (forward-line 1)))
>
>
>
> ;;;;;;;;;
>
> A core function should not do that kind of provisions.
> Employing forward-line, point might end up at the beginning of valid
> code, not at the end.
> Thus beginning and end of functions are in risk being mixed.


I do not find your argument compelling, so will close this as wontfix in
a few weeks, unless anyone provides a more convincing justification.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-29 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23  7:43 bug#17320: 24.3.90.1[pretest]; bug-sourcing design-flaw Andreas Röhler
2014-04-29 15:47 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.