D18509: Fixed Bug Which Caused Infinite Loop While Highlighting Kconfig Files

2019-01-24 Thread Nibaldo González
nibags added reviewers: Framework: Syntax Highlighting, cullmann, dhaumann.

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D18509

To: jwilbee, #framework_syntax_highlighting, cullmann, dhaumann
Cc: nibags, shubham, kwrite-devel, kde-frameworks-devel, hase, michaelh, 
ngraham, bruns, demsking, cullmann, sars, dhaumann


D18509: Fixed Bug Which Caused Infinite Loop While Highlighting Kconfig Files

2019-01-24 Thread Nibaldo González
nibags added a comment.


  The bug is identical to D17891  ! 
  Please, also put `#pop!error` in `fallthroughContext="error"`, on lines 238 
and 363. 
  And increase the file version

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D18509

To: jwilbee
Cc: nibags, shubham, kwrite-devel, kde-frameworks-devel, hase, michaelh, 
ngraham, bruns, demsking, cullmann, sars, dhaumann


D18509: Fixed Bug Which Caused Infinite Loop While Highlighting Kconfig Files

2019-01-24 Thread Jason Wilbee
jwilbee retitled this revision from "Fixed bug where typing menu or menuconfig 
while editng a kconfig file would cause the loop at abstracthighlighter.cpp:299 
to get stuck in an inite loop. This would occur because the config_entry_start 
and menu_entry contexts would push an error..." to "Fixed Bug Which Caused 
Infinite Loop While Highlighting Kconfig Files".
jwilbee edited the summary of this revision.

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D18509

To: jwilbee
Cc: shubham, kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, 
bruns, demsking, cullmann, sars, dhaumann


D18509: Fixed bug where typing menu or menuconfig while editng a kconfig file would cause the loop at abstracthighlighter.cpp:299 to get stuck in an inite loop. This would occur because the config_ent

2019-01-24 Thread Shubham
shubham added a comment.


  Thanks jwilbe for the patch, but please don't make the title , a summary, 
keep it short to the point.

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D18509

To: jwilbee
Cc: shubham, kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, 
bruns, demsking, cullmann, sars, dhaumann


D18509: Fixed bug where typing menu or menuconfig while editng a kconfig file would cause the loop at abstracthighlighter.cpp:299 to get stuck in an inite loop. This would occur because the config_ent

2019-01-24 Thread Jason Wilbee
jwilbee created this revision.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
jwilbee requested review of this revision.

REVISION SUMMARY
  ...line end context and the error line end context would pop back to the 
config_entry or menu_entry contexts.
  
  There should probably also be a loop counter or something in that loop to keep
  the end application from dying due to a bad definition.

TEST PLAN
  Open up a kconfig file in a text editor and attempt to type "menu", "config", 
or "menuconfig"

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  kconfig-freeze-fix (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D18509

AFFECTED FILES
  data/syntax/kconfig.xml

To: jwilbee
Cc: kwrite-devel, kde-frameworks-devel, hase, michaelh, ngraham, bruns, 
demsking, cullmann, sars, dhaumann


D18434: exiv2extractor: add support for bmp, gif, webp, tga

2019-01-24 Thread Friedrich W. H. Kossebau
kossebau added a reviewer: Dolphin.

REPOSITORY
  R286 KFileMetaData

REVISION DETAIL
  https://phabricator.kde.org/D18434

To: kossebau, #baloo, #dolphin
Cc: kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, 
bruns, abrahams


D18507: Add Activities KCM icon

2019-01-24 Thread Noah Davis
ndavis added a comment.


  The icon the KCM currently uses is `preferences-activities`. It's kind of odd 
that it isn't `preferences-desktop-activities`.

REPOSITORY
  R266 Breeze Icons

REVISION DETAIL
  https://phabricator.kde.org/D18507

To: ndavis, #vdg
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D18507: Add Activities KCM icon

2019-01-24 Thread Noah Davis
ndavis edited the test plan for this revision.

REPOSITORY
  R266 Breeze Icons

REVISION DETAIL
  https://phabricator.kde.org/D18507

To: ndavis, #vdg
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D18507: Add Activities KCM icon

2019-01-24 Thread Noah Davis
ndavis created this revision.
ndavis added a reviewer: VDG.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
ndavis requested review of this revision.

REPOSITORY
  R266 Breeze Icons

BRANCH
  preferences-desktop (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D18507

AFFECTED FILES
  icons-dark/preferences/32/preferences-activities.svg
  icons/preferences/32/preferences-activities.svg

To: ndavis, #vdg
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread René J . V . Bertin
rjvbb updated this revision to Diff 50205.
rjvbb added a comment.


  Use qobject_cast.

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D18380?vs=50084=50205

REVISION DETAIL
  https://phabricator.kde.org/D18380

AFFECTED FILES
  src/filewidgets/kdiroperatordetailview.cpp

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: cfeck, dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, 
bruns


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread René J . V . Bertin
rjvbb set the repository for this revision to R241 KIO.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: cfeck, dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, 
bruns


D17693: DocumentPrivate: Treat some chars also as "auto bracket" only when we have a selection

2019-01-24 Thread loh tar
loh.tar added a comment.


  > If you want to get this behavior for Markdown
  
  Even I had mentioned Markdown as example, I would prefer to have this as 
general  behavior. Not only because I don't know anything about that highlight 
stuff and can't implement it this way.
  
  I often write some text in "Normal" mode and may miss then that. I tend to 
add some option for that as @cullmann suggested. BTW  he was not annoyed while 
testing it (well, with an earlier version) So it may less annoying than 
thought. I can remember I was also sometimes annoyed by the normal auto-bracket 
feature, it may only need some familiarization.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D17693

To: loh.tar, #ktexteditor, cullmann, mwolff
Cc: mwolff, cullmann, sars, kwrite-devel, kde-frameworks-devel, #ktexteditor, 
hase, michaelh, ngraham, bruns, demsking, dhaumann


D17949: ViewPrivate: Make 'Apply Word Wrap' more comfortable

2019-01-24 Thread Milian Wolff
mwolff requested changes to this revision.
mwolff added a comment.
This revision now requires changes to proceed.


  please look at the existing tests and expand that. There's e.g. 
`KateDocumentTest::testWordWrap` in 
`ktexteditor/autotests/src/katedocument_test.cpp`
  
  also don't change the behavior of wordwrapping that is used by the view 
compared to what we would get by calling wordwrap on the document directly

INLINE COMMENTS

> kateview.cpp:2346
>  {
> -if (selection()) {
> -doc()->wrapText(selectionRange().start().line(), 
> selectionRange().end().line());
> -} else {
> -doc()->wrapText(0, doc()->lastLine());
> +doc()->editStart();
> +int first = selectionRange().start().line();

all of this functionality needs to go into the document, it shouldn't depend on 
the view.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D17949

To: loh.tar, #ktexteditor, mwolff
Cc: dhaumann, cullmann, mwolff, kwrite-devel, kde-frameworks-devel, 
#ktexteditor, hase, michaelh, ngraham, bruns, demsking, sars


D17693: DocumentPrivate: Treat some chars also as "auto bracket" only when we have a selection

2019-01-24 Thread Milian Wolff
mwolff requested changes to this revision.
mwolff added a comment.
This revision now requires changes to proceed.


  Ok, that behavior you describe is bad. I would get annoyed by that, esp. 
since the list of chars that you use are totally language specific.
  
  If you want to get this behavior for Markdown, then we need to store that 
data in the syntax file and make it accessible at this position. in the 
`` section we already define how single/multiline comments are 
handled. We would need something similar for this feature, e.g. add something 
like the following and make it accessible through the syntax-highlighting API:
  

  































  

  
  Of course the initial, common, brackets should be the implicit default when 
no `` group is specified in a language file. And then we probably 
need more meta data that specified that some of the brackets above only should 
be added when we have a selection. Just add a `requiresSelection` or similar 
attribute?

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D17693

To: loh.tar, #ktexteditor, cullmann, mwolff
Cc: mwolff, cullmann, sars, kwrite-devel, kde-frameworks-devel, #ktexteditor, 
hase, michaelh, ngraham, bruns, demsking, dhaumann


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread René J . V . Bertin
rjvbb added a comment.


  >   As far as I know, using qobject_cast is faster than comparing class 
names, because it only compares metaclass pointers. Additionally, it allows 
subclasses.
  
  Purely academic: that would be true for an ObjC-like construct like  
`isKindOfClass` but doesn't it qobject_cast also  do additional work as part of 
the casting?
  Allowing subclasses could be good here, but it could also defeat the purpose, 
that'd depend on what the subclass changes w.r.t. KFileWidget.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: cfeck, dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, 
bruns


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread Christoph Feck
cfeck added a comment.


  As far as I know, using qobject_cast is faster than comparing class names, 
because it only compares metaclass pointers. Additionally, it allows subclasses.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: cfeck, dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, 
bruns


D17693: DocumentPrivate: Treat some chars also as "auto bracket" only when we have a selection

2019-01-24 Thread Christoph Cullmann
cullmann added a comment.


  Either one would need to expose more info from the xml highlighting 
definitions or as poor mans fix provide some config entry to allow people 
themself to specify which () ""  pairs the want to have handled globall 
with minimal defaults.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D17693

To: loh.tar, #ktexteditor, cullmann
Cc: mwolff, cullmann, sars, kwrite-devel, kde-frameworks-devel, #ktexteditor, 
hase, michaelh, ngraham, bruns, demsking, dhaumann


D17693: DocumentPrivate: Treat some chars also as "auto bracket" only when we have a selection

2019-01-24 Thread loh tar
loh.tar added a comment.


  There is an `enum KSyntaxHighlighting::Theme::TextStyle::Operator` but I 
can't find a function to test for that. 
  Beside that I guess it would not work anyway. If it's an operator or not need 
a call to some "update highlight" to investigate the context.
  
  Ideas?

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D17693

To: loh.tar, #ktexteditor, cullmann
Cc: mwolff, cullmann, sars, kwrite-devel, kde-frameworks-devel, #ktexteditor, 
hase, michaelh, ngraham, bruns, demsking, dhaumann


D18499: [KCM Controls GridView] Add remove animation

2019-01-24 Thread Kai Uwe Broulik
This revision was automatically updated to reflect the committed changes.
Closed by commit R296:d8505b807d55: [KCM Controls GridView] Add remove 
animation (authored by broulik).

REPOSITORY
  R296 KDeclarative

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D18499?vs=50188=50190

REVISION DETAIL
  https://phabricator.kde.org/D18499

AFFECTED FILES
  src/qmlcontrols/kcmcontrols/qml/GridView.qml

To: broulik, #plasma, mart, davidedmundson
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D18499: [KCM Controls GridView] Add remove animation

2019-01-24 Thread David Edmundson
davidedmundson accepted this revision.
This revision is now accepted and ready to land.

REPOSITORY
  R296 KDeclarative

REVISION DETAIL
  https://phabricator.kde.org/D18499

To: broulik, #plasma, mart, davidedmundson
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D18499: [KCM Controls GridView] Add remove animation

2019-01-24 Thread Kai Uwe Broulik
broulik created this revision.
broulik added reviewers: Plasma, mart.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
broulik requested review of this revision.

REVISION SUMMARY
  This is what all the grid KCMs have been doing, so it makes sense to put it 
into the component for consistency and maintainability.
  It makes for a much nicer user experience when the view has items that can be 
deleted.

TEST PLAN
  Animation looks exactly the same as it did before in the KCMs but allows us 
to remove 15 lines of boilerplate code from each grid kcm in plasma-desktop

REPOSITORY
  R296 KDeclarative

REVISION DETAIL
  https://phabricator.kde.org/D18499

AFFECTED FILES
  src/qmlcontrols/kcmcontrols/qml/GridView.qml

To: broulik, #plasma, mart
Cc: kde-frameworks-devel, michaelh, ngraham, bruns


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread René J . V . Bertin
rjvbb marked an inline comment as done.
rjvbb added inline comments.

INLINE COMMENTS

> cfeck wrote in kdiroperatordetailview.cpp:54
> Can we use qobject_cast here?

Doh, of course.

It's probably more expensive (which shouldn't matter here) but also means we 
have to include `kfilewidget.h`. Is that OK?

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: cfeck, dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, 
bruns


D11236: [KCrash] Establish socket to allow change of ptracer

2019-01-24 Thread Oswald Buddenhagen
ossi accepted this revision.
ossi added a comment.
This revision is now accepted and ready to land.


  here too, it should be "ancestor" not "parent" for extra correctness.
  amending the code comment is optional, too.

INLINE COMMENTS

> kcrash.cpp:662
> +// For now that will be DrKonqi, which may ask to transfer the 
> ptrace scope to
> +// a debugger using a socket.
>  #ifndef PR_SET_PTRACER

you could make it more specific by saying "a debugger it is not an ancestor of 
(because it started it via kdeinit or startDetached())"

REPOSITORY
  R285 KCrash

BRANCH
  ptracer

REVISION DETAIL
  https://phabricator.kde.org/D11236

To: croick, #frameworks, ossi
Cc: dfaure, lepagevalleeemmanuel, kde-frameworks-devel, sitter, michaelh, 
ngraham, bruns


D11235: [DrKonqi] Request change of ptrace scope from KCrash

2019-01-24 Thread Oswald Buddenhagen
ossi accepted this revision.
ossi added a comment.
This revision is now accepted and ready to land.


  note that for extra correctness it should be "ancestor" not "parent".

REPOSITORY
  R871 DrKonqi

BRANCH
  ptracer

REVISION DETAIL
  https://phabricator.kde.org/D11235

To: croick, #plasma_workspaces, #frameworks, ossi
Cc: ossi, lepagevalleeemmanuel, maximilianocuria, adridg, plasma-devel, 
jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol, mart


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread Christoph Feck
cfeck added inline comments.

INLINE COMMENTS

> kdiroperatordetailview.cpp:54
> +}
> +m_isFileWidget = pw ? strcmp(pw->metaObject()->className(), 
> "KFileWidget") == 0 : false;
> +// install the section resize handler

Can we use qobject_cast here?

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: cfeck, dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, 
bruns


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread Dominik Haumann
dhaumann added a comment.


  I'm not against this change, but have the feeling another +2 from someone who 
know this stuff is a good idea.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, bruns


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread René J . V . Bertin
rjvbb added a comment.


  David, Andreas, any idea why the name column all of a sudden jumps to a 
larger width when the widget is used in a side-bar and you're making the view 
narrower and approach the minimum width? It works in our favour here because 
the end result is that the name column becomes about as wide as the view itself 
(and I ensure it won't change size again).
  It just nags me a bit that I haven't been able to figure out why it happens...

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: kwrite-devel, kde-frameworks-devel, michaelh, ngraham, bruns


D18380: KIO: make file dialog columns resizable again (and movable)

2019-01-24 Thread René J . V . Bertin
rjvbb added reviewers: dfaure, ahartmetz.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D18380

To: rjvbb, ngraham, #frameworks, #dolphin, apol, dfaure, ahartmetz
Cc: kwrite-devel, kde-frameworks-devel, michaelh, ngraham, bruns